
    .hr-line{
   width: 60%;
    align-self: center;
    margin: auto;
    margin: 35px auto;
    border-color:var(--firstcolor)
}
  .carousel-container {
      position: relative;
      padding-top: 60px;
    }

    /* Navigation buttons (top right) */
    /* .carousel-control-prev,
    .carousel-control-next {
      width: 40px;
      height: 40px;
      background-color: #8e1837;
      border-radius: 50%;
      opacity: 0.9;
      top: 0;
      transform: translateY(-50%);
    } */
    [dir="rtl"] .carousel-control-prev {
      left: 10px;
      right: auto;
    }
    [dir="rtl"] .carousel-control-next {
      left: 60px;
      right: auto;
    }
    .carousel-control-prev {
      right: 60px;
      left: auto;
    }

    .carousel-control-next {
      right: 10px;
    }

    .carousel-control-prev i,
    .carousel-control-next i {
      color: #fff;
      font-size: 18px;
    }
      .carousel-control-prev, .carousel-control-next {
        border: none;
        min-width: 3rem;
        border-radius: 4px;
        background-color: var(--secoundcolor);
        width: 40px;
        height: 40px;
        opacity: 0.9;
        transform: translateY(-50%);
        position: absolute;
        top: -13%;
    }

    /* Initiative Cards */
    .cours-bx {
      background: #fff;
      /* border-radius: 10px; */
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      overflow: hidden;
      transition: transform 0.3s ease;
    }

    .cours-bx:hover {
      transform: translateY(-5px);
    }

    .action-box img {
      width: 100%;
      height: 200px;
      object-fit: cover;
    }

    .info-bx {
      padding: 15px;
      background: #fff;
    }

    .info-bx h5 a {
      color: #8e1837;
      text-decoration: none;
      font-weight: 600;
    }
/* --- Layout --- */
  /* .about-section {
    padding: 60px 0;
  } */
   h1.title-head.inn-head.InnerPageTitle {
    display: none;
}
  .about-section {
    display: flex;
    flex-wrap: wrap;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: fadeIn 1s ease-in-out;
}
  .about-left {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    border-right: 1px solid #ddd;
    padding-right: 20px;
  }

  .about-left h4 {
    /* font-size: 0.85rem; */
    letter-spacing: 1.5px;
    color: #8e1837;
    font-weight: 600;
    margin: 12px 0;
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
    padding-right: 15px;
    transition: all 0.3s ease;
  }

  .about-left h4::before {
    content: "";
    position: absolute;
    right: -20px;
    top: 0;
    width: 3px;
    height: 100%;
    background: transparent;
    transition: background 0.3s ease;
  }

  .about-left h2.active::before {
    background: #8e1837; /* red bar */
  }

  .about-left h2.active {
    color: #000;
  }

  .about-right {
    padding-left: 40px;
    display: flex;
    align-items: center;
  }

 
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @media (max-width: 768px) {
    .about-left {
      flex-direction: row;
      border-right: none;
      border-bottom: 1px solid #ddd;
      justify-content: center;
    }
    .about-left h2 {
      margin: 10px;
      padding: 5px;
    }
    .about-left h2::before {
      display: none;
    }
    .about-right {
      padding-left: 0;
      padding-top: 20px;
      text-align: center;
    }
  }

  


 .nav-pills  .title-nav.active{
    color: var(--dark) !important;
    background-color: transparent !important;
    border-right: 5px solid var(--firstcolor) !important;
}
  .title-nav{
    
    border: none;
    background-color: transparent !important;
    color: var(--grey) !important;    
  }


    .btn-qu {
        background-color: #7D2239;
        color: white;
        border: none;
        padding: 12px 60px;
        border-radius: 30px;
        font-size: 20px !important;
        transition: all 0.3s;
    }


    .topiccontainer {
        position: relative;

        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 20px;
        box-sizing: border-box;
    }

    .topiccard {
        display: flex;
        flex: 1 1 calc(25% - 20px);
        /* 4 cards per row */
        height: 200px;
        margin: 10px;
        background-color: #fff;
        border-radius: 10px;
        /* rounded corners */
        box-shadow: 0 2px 2px 0 #8e183736,
            0 0 2px 0 #8e183736;
        transition: box-shadow ease-out 0.2s, transform 0.4s ease-out;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
        text-align: center;
        box-sizing: border-box;
        min-width: 200px;
    }

    .topiccard:hover,
    .topiccard:active {
        box-shadow: 0 15px 20px 0 #8e183736,
            0 15px 12px 0 #8e183736;
    }

    /* --- Shift Effect Only for Big and Medium Screens --- */
    @media (min-width: 769px) {

        /* .topiccard:not(:first-child) {
    margin-left: -10px;  shift left 
  }
*/
        .topiccard:hover {
            transform: translateY(-10px);
            /* move up */
            transition: 0.4s ease-out;
        }

        .topiccard:hover~.topiccard {
            position: relative;
            left: 10px;
            /* push the next cards to the right */
            transition: 0.4s ease-out;
        }
    }

    /* --- Responsive: Mobile View --- */
    @media (max-width: 1024px) {
        .topiccard {
            flex: 1 1 calc(50% - 20px);
            /* 2 cards per row */
        }
    }

    @media (max-width: 768px) {
        .topiccontainer {
            flex-direction: column;
            align-items: center;
        }

        .topiccard {
            width: 90%;
            max-width: 480px;
            margin: 10px auto;
            height: auto;
            padding: 30px 20px;
            transform: none !important;
            left: 0 !important;
            position: static !important;
        }






    }

    .title {
        font-size: 20px;
        font-weight: bold;
    }


    .content-card {
        width: 70%;
        background: white;
        border-radius: 10px;
        padding: 30px;
        justify-content: center;
        align-items: center;
        padding: 20px;
        text-align: center;
        box-sizing: border-box;
        margin-top: 30px;

        box-shadow: 0 2px 2px 0 #8e183736,
            0 0 2px 0 #8e183736;
        transition: box-shadow ease-out 0.2s, transform 0.4s ease-out;

        margin-left: auto;
        margin-right: auto;
        display: block;

    }




    .content-card:hover {
        box-shadow: 0 15px 20px 0 #8e183736,
            0 15px 12px 0 #8e183736
    }

    .content-card-title {
        font-size: 1.3em;
        font-weight: 500;

    }

    .content-card .name {
        font-size: 1.2rem;
        font-weight: 600;
    }

    .content-card.affiliation {
        font-size: 0.95rem;
        color: #555;
    }

    .content-img {
        height: 230px;
        width: 230px;
    }



 .tabs-style-2   .nav-tabs {
        border: 1px solid #8e183736;
    }

.tab-btn {
        border: none;
        border-radius: 0.375rem;
        padding: 0.5rem 1rem;
        margin: 0 0.25rem;
        color: #495057;
        font-weight: 500;
        background-color: transparent;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

  .tab-btn:hover {
        background-color: #e2e6ea;
        color: #212529;
    }

    .tab-btn.active {
        font-weight: 600;
        background-color: #e2e6ea;
    }

    .abstract-card {
        width: 90%;
        background: white;
        border-radius: 10px;
        padding: 30px;

        padding: 20px;

        box-sizing: border-box;
        margin-top: 30px;

        box-shadow: 0 2px 2px 0 #8e183736,
            0 0 2px 0 #8e183736;
        transition: box-shadow ease-out 0.2s, transform 0.4s ease-out;

        margin-left: auto;
        margin-right: auto;
        display: block;

    }

   .tab-btn.active,
  .tabs-style-2  .nav-tabs .upper-nav.active {
        color: #e1e1e1 !important;
        background-color: #8e1837 !important;
        border-color: #dee2e6 #dee2e6 #fff !important;
        border-radius: 0.5rem;


    }

    .upper-nav {


        display: inline-block;
        text-align: center;


    }


  .tab-buttons {
        display: flex;
        /* Use Flexbox */
        border: none !important;
        font-size: larger;
        justify-content: center;
        gap: 5px;
    }

 .tabs-style-2   .nav-tabs .nav-item {
        width: 300px;
        /* Set a fixed width to make all tabs same width */
        text-align: center;

    }

  .tabs-style-2  .nav-tabs .upper-nav {
        display: block;
        /* Make it a block to take full width */
        width: 100%;
        /* Fill the nav-item */
        text-align: center !important;
    }


    /* Tabs */
  .tabs-style-2  .tabs {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        border-bottom: 2px solid #8e1837;
    }

   .tabs-style-2 .tab {
        padding: 0.6rem 1rem;
        cursor: pointer;
        border: none;
        background: #f1f1f1;
        border-radius: 6px 6px 0 0;
        font-weight: bold;
    }

 .tabs-style-2   .tab.active {
        background: #8e1837;
        color: white;
    }
.tabs-style-2 .nav-tabs {
    display: inline-flex
;
    font-size: larger;
    justify-content: center;
    gap: 5px;
    width: 100%;
    border: none !important;
}
.tabs-style-2{
  
    top: -4em;
    position: relative;
    width: 100%;
}
.tabs-style-2 .nav-tabs .nav-item{
  width: auto!important;
}

  .info-card {
    background: #fff;
    border: 1px solid #ddd;
    border-top: 4px solid #8e1837;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }

  .info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  }

  .info-card h5 {
    color: #8e1837;
    font-weight: 600;
  }

  .btn-view {
    background: #8e1837;
    color: white;
    border: none;
    font-weight: 500;
    border-radius: 4px;
    padding: 6px 14px;
    transition: background 0.3s;
  }

  .btn-view:hover {
    background: #70132d;
  }

  .expanded-card {
    display: none;
    width: 100%;
    background: #f9f9f9;
    border-left: 4px solid #8e1837;
    border-radius: 10px;
    padding: 25px;
    margin-top: 20px;
    animation: fadeSlide 0.3s ease;
  }

  .expanded-card.active {
    display: block;
  }
.info-card {
  background: #fff;
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}
.info-card.active {
  border: 2px solid #8e1837;
  background: #fdf8f9;
}
.toggle-content i {
  transition: transform 0.25s ease;
}
.toggle-content i.rotated {
  transform: rotate(180deg);
}
@media only screen and (max-width: 565px) {
  #director-message-content .d-flex.align-items-start.mb-4{
    display: grid !important;
  }
   .img-left {
    
        width: 20em !important;
        padding: 0px !important;
        margin: 0px !important;
  }

.tab-buttons {
    display: inline-block; 
  }

}
/* Responsive fix for smaller screens */
@media (max-width: 767px) {
  .info-card {
    margin-bottom: 1rem;
  }      
.iframe-container,.contact-container {
    border-radius: 0px !important;
    margin-bottom: 1em;
  }
.contact-container {
    margin-bottom: 1em;
  }
}
#director-message-content .d-flex.align-items-start.mb-4 {
    display: block !important;
}
.toggle-content{
  background-color: transparent;
  border:none;
  cursor: pointer;
  text-decoration: none;
}
div#about-expanded-slot {
    opacity: 100% !important;
}
#partnersCarouselInner .action-box img {
    width: 100%;
    max-height: 9em !important;
    object-fit: contain!important;
}


.tab-content {
    border-top: 2px solid #8e1837;
    border-left: 2px solid #8e1837;
    border-right: 2px solid #8e1837;
    padding: 20px 20px 20px 20px;
    background-color: #fff;
    position: relative;
    margin-bottom: 50px;
    margin-top: 40px !important;
    padding-top: 20px !important;
}

.tab-content::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    
    bottom: -38px;
    height: 3em;
    background-image: url(https://www.qu.edu.qa/en-us/Colleges/business/cfe/PublishingImages/thumbnail_pattern.jpg);
    background-size: cover;
    background-repeat: repeat-x;
    background-position: center;
}

#partnersCarousel .carousel-control-prev, #partnersCarousel .carousel-control-next{
  top: -28px !important;
}

#iframe-contact-us,#iframe-contact-us-ar{
  width: 100% !important;
  height: 26em !important;
}
iframe {overflow:hidden}

#limesurvey{
  
    width: auto;
    /* display: contents; */
    overflow: hidden;
}

.iframe-container,.contact-container {
   max-width: 950px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 12px 30px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 27em;
    position: relative;
}
[dir="ltr"] .contact-container {

      border-top-left-radius:0px !important; 
      border-bottom-left-radius:0px !important;  
}

[dir="ltr"] .iframe-container {
    border-bottom-right-radius: 0px !important; 
    border-top-right-radius: 0px !important;
}
 [dir="rtl"] .iframe-container{

 border-bottom-left-radius: 0px !important; 
    border-top-left-radius: 0px !important;
 }
 
 [dir="rtl"] .contact-container {
    
      border-top-right-radius:0px !important; 
      border-bottom-right-radius:0px !important;  
  }
[dir="rtl"] iframe {
    
    float: inline-start;
}
.staff-collapse {
  display: none;
}
.staff-collapse.open {
  display: block;
}
 .tab-section {
      display: none;
      text-align: left;
    }

    .tab-section.active {
      display: block;
    }



    [dir="rtl"] p {
    padding: 0px 10px;
}
.hidden{
  display: none !important  ;
}

[dir="rtl"] .tab-buttons {margin-top: 2.5em !important; }

[dir="rtl"] .contact-container .phone {
    direction: ltr !important;
    unicode-bidi: embed;
    display: inline-block;
}

a.toggle-content.mt-auto {
    text-align: center !important;
}

.acod-head a::after {
    padding: 10px;
}

/* Responsive layout for initiative cards */
#initiativesCarouselInner .carousel-item .col-lg-4 {
  display: flex;
  justify-content: center;
}
