.button {
  max-width:450px;
  margin-top:20px;
  height:50px;
  --bg: #000;
  --hover-bg: var(--teal-mid);
  --hover-text: #000;
  color: #fff;
  cursor: pointer;
  border: 1px solid var(--bg);
  border-radius: 4px;
  background: var(--bg);
  transition: 0.2s;
  overflow:visible;
}

.button:hover {
  color: var(--hover-text);
  transform: translate(-0.25rem, -0.25rem);
  background: var(--hover-bg);
  box-shadow: 0.25rem 0.25rem var(--bg);
}

.button:active {
  transform: translate(0);
  box-shadow: none;
}

/*CODE FOR HEADER TEXT*/


@import url('https://fonts.googleapis.com/css?family=Cairo');
body {
  background-color: #010;
}

h1 {
  width: 100%; 
  text-align: center;
   font-size: 70px; 
   font-family: Poppins, sans-serif;
    background: linear-gradient(to top, #004D5A, #0097A7);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
  background-clip: text;
   color: transparent;
}

.white-mode {
  text-decoration: none;
  padding: 7px 10px;
  background-color: #122;
  border-radius: 3px;
  color: #FFF;
  transition: .35s ease-in-out;
  position: absolute;
  left: 15px;
  bottom: 15px;
  font-family: "Montserrat";
}

.white-mode:hover {
  background-color: #FFF;
  color: #122;
}



.header{
  background-color: var(--teal-mid);
  color:white;
  font-size: 30px;
  text-align: center;
  justify-content: center;
  margin-top: 20px;
}
.containerheader{ 
    width: 100%; /* Full width */
    height: 100px; /* Fixed height */
    background:white; 
    display:flex;
    flex-direction: column;
    justify-content: left; /* Space out children */
    align-items: center; /* Center children vertically */
    margin: 0; /* Remove default margin */
    padding: 0 20px; /* Add horizontal padding */
    padding-top: 20px; /* Alternative way to add top padding */
    margin-bottom:20px;
}
.containertab {
    width: 100%; /* Full width */
    height: 350px; /* Fixed height */
    background-color: #f5f5f5;
    display: flex; /* Enable flexbox */
    justify-content: space-between; /* Space out children */
    align-items: center; /* Center children vertically */
    margin: 0; /* Remove default margin */
    padding: 0 20px; /* Add horizontal padding */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    
}

.containertab .content1{
    font-family: Poppins, sans-serif; /* Font family */
    display: flex; /* Enable flexbox */
    flex-direction: row; /* Stack children horizontal */
    transform: translateX(-100%);
    opacity: 0;
    animation: slide-in 2s ease-out forwards;
}
 @keyframes slide-in {
            from {
                transform: translateX(-100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

.containertab .content2{
    font-family: Poppins, sans-serif; /* Font family */
    display: flex; /* Enable flexbox */
    flex-direction: row; /* Stack children horizontal */
    transform: translateX(100%);
    opacity: 0;
    animation: slide-in2 2s ease-out forwards;
}
 @keyframes slide-in2 {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

.containertab .image{
  margin-top: 15px;
    width: 420px; /* Image takes full width of the card */
    height:250px; /* Adjust height as needed */
    overflow: hidden; /* Ensure the image stays within the card */
}

.containertab .image img{
    width: 100%; /* Make the image inside the card take full width */
    height: auto; /* Make the image inside the card take full height */
    object-fit: cover; /* Ensure the image scales properly */
}

.containertab .text-section {
    max-width: 600px; /* Limit the width of the text section */
    background-color: #f5f5f5;
    text-align: left; /* Align text to the left within the section */
    justify-content: left; /* Align text to the left within the section */
}
.containertab .c-header {
    font-family: Poppins, sans-serif;
    font-size: 40px;
    font-weight: bold;
    background: linear-gradient(90deg, var(--teal-mid), var(--teal-darkest));
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.containertab .content {
  font-family: Poppins, sans-serif; /* Font family */
    font-size: 18px; /* Font size */
    margin-top: 5px; /* Space between header and content */
}

p{
  background-color: transparent;
}

.card1 {
     width:450px;
     height:500px;
     padding: 15px;
      margin: 20px;
      box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
      border-radius: 5px;
      transform: translateX(-100%);
    opacity: 0;
    animation: slide-inc 2s ease-out forwards;
    }

    @keyframes slide-inc {
            from {
                transform: translateX(-100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

   .card12 {
     width:450px;
     height:500px;
     padding: 15px;
      margin: 20px;
      box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
      border-radius: 5px;
      transform: translateX(100%);
    opacity: 0;
    animation: slide-in21 2s ease-out forwards;
}
 @keyframes slide-in21 {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
  

.custom-card-header {
  position:absolute;
  top:0;
  left:0;
  width:100%;
  color: #d3d3d3 ;
  background: var(--gradient-card)
     !important; 
     opacity: 0.92; 
     padding: 0.75rem; 
     border: none; 
     border-radius: 8px 8px 0 0;
}

.card2 {
 width: 430px;
 height: 400px;
 margin-top: 50px;
 background-color:#ffffff ;
 transition: all .2s;
}


.card2 .image2{
    width: 420px; /* Image takes full width of the card */
    max-height:450px; /* Adjust height as needed */
    overflow: hidden; /* Ensure the image stays within the card */
}

.card2 .image2 img{
    width: 100%; /* Image takes full width of the card */
   max-height:100%; /* Adjust height as needed */
    object-fit: cover; /* Ensure the image scales properly */
}
 

.card2:hover {
 transform: scale(0.98);
 border-radius: 20px;
}

.card:hover {
  box-shadow: 0px 0px 30px 1px rgba(0, 109, 119, 0.30);
}

.nav .nav-tabs {

    padding-top: 50px; /* Add padding to the top */
    width: 100%;
    margin: 0 auto;
}

.nav-tabs {
    padding-top: 40px;
    display: flex;
    list-style: none;
}

.nav-tabs .nav-item {
    margin-right: 10px;
}

.nav-tabs .nav-link {
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    border-radius: 4px 4px 0 0;
    transition: background-color 0.2s;
}

.nav-tabs .nav-link:hover {
    background-color: #f5f5f5;
}

/* Media Queries for Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .containertab {
        height: auto;
        min-height: 500px;
        flex-direction: column;
        padding: 20px;
    }

    .containertab .content1,
    .containertab .content2 {
        flex-direction: column;
        width: 100%;
    }

    .containertab .image {
        width: 100%;
        height: auto;
        margin-left: 0 !important;
    }

    .containertab .text-section {
        width: 100%;
        max-width: 100%;
        margin: 20px 0 !important;
        padding: 15px;
    }

    .containertab .c-header {
        font-size: 30px;
    }

    .button {
        width: 100%;
    }

    .card1, 
    .card12 {
        width: 100%;
        height: auto;
        margin: 10px 0;
    }

    .card2 {
        width: 100%;
        height: auto;
    }

    .card2 .image2 {
        width: 100%;
    }

    .nav-tabs {
        flex-direction: column;
        align-items: center;
        padding-top: 20px;
    }

    .nav-tabs .nav-item {
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }

    .nav-tabs .nav-link {
        width: 100%;
        padding: 15px;
    }
}

/* Tablet Breakpoint (768px - 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .containertab {
        height: auto;
        min-height: 400px;
    }

    .containertab .image {
        width: 300px;
        height: auto;
        margin-left: 50px !important;
    }

    .containertab .text-section {
        max-width: 400px;
        margin-right: 50px !important;
        margin-left: 20px !important;
        padding: 15px;
    }

    .containertab .c-header {
        font-size: 32px;
    }

    .containertab .content {
        font-size: 16px;
    }

    .button {
        max-width: 350px;
    }

    .card1, 
    .card12 {
        width: 350px;
        height: auto;
        min-height: 450px;
    }

    .card2 {
        width: 340px;
        height: auto;
    }

    .card2 .image2 {
        width: 330px;
    }

    .nav-tabs {
        padding-top: 30px;
    }

    .nav-tabs .nav-item {
        margin-right: 5px;
    }

    .nav-tabs .nav-link {
        padding: 8px 15px;
        font-size: 14px;
    }
}

