@import url("https://fonts.googleapis.com/css?family=Montserrat:400,700");

body {
  overflow: auto; /* or overflow: scroll; */
  margin: 5px 10px;
  
}

.wrapper{
  display: grid;
  grid-template-columns: 1.5fr 5fr 1.5fr;
  gap: 10px;
  grid-template-rows: 350px 1000px 350px 50px;
}

.top {
  grid-column: 1/-1; /* Span from the first to the last column */
  grid-row: 1; /* Confined to the first row */
  background-color: ;
}

.main1 {
  grid-column: 1/-1; 
  grid-row: 2/3; 
  background-color: mintcream;
}

.footerM {
  grid-column: 1/-1; 
  grid-row: 3/4; 
  background-color: midnightblue;
}

.News-footer{
  grid-column: 1/-1; 
  grid-row: 4/5; 
  background-color: ivory;
}

/*Banner */

    .banner {
      position: relative;
      text-align: center;
      width: 100%;
      background-image: url("images/book1.jpg"); 
      background-repeat: no-repeat;
      background-size: cover;
      z-index: -98;
    }

    .banner::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(158, 148, 147, 0.3);
      z-index: -1;
    }
    .banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px; /* Adjust the height of the faded portion as needed */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  pointer-events: none;
}
    .border1 {
      width: 60%;
      margin: 0 auto;
      height: 28px;
      border: 5px solid #fff;
      border-bottom: 20px;
    }

    .banner h2 {
      margin: 2em 0 0 0;
      font-size: 2em;
      color: #ba1c34;
      text-align: center;
      font-weight: 300;
      text-transform: uppercase;
      letter-spacing: 0.2em;
      padding: 0.5em 0 0 0;
    }

    .banner p {
      color: #FFFFFF;
      font-size: 0.7em;
      font-weight: bold;
      margin: 1em 0 0 0;
      line-height: 1.3em;
      letter-spacing: 1px;
      padding: 0 0 2em 0;
    }

    .border-bottom {
      border-top: 40px;
      border-bottom: 6px solid #fff !important;
    }

    .faded-image{
  position: relative;
  width: 645px; /* Set the width of your image */
    }

    .faded-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 500px;
  width: 100%;
  height: 50px; /* Set the height of the faded portion */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  pointer-events: none; /* Ensure the pseudo-element doesn't interfere with interactions */
}

/*Swinging box */

.sign {
  float:left;
  margin-left: 20px;
  /* sign width */
  width: 150px;
  /* Give it a white border */
  border: 5px solid #fff;
  /* pad content text away from the edges of the sign */
  padding: 0.25em 1em .75em;
  /* give it a drop shadow and inset shadow at the top */
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.4), 0 5px 10px rgba(0, 0, 0, 0.4);
  /* setup a default background red and a red gradient where supported */
  background-color: #d10000;
  //background: linear-gradient(top, #ff9696 0%, #c80000 100%);
  /* attempt to get rid of jaggies when rotated */
  transform-style: preserve-3d;
  backface-visibility: hidden;
  /* nice rounded corners */
  border-radius: 15px;
  /* set the swing origin (nail body) */
  transform-origin: 50% -65px;
  /* animate the swing with pendulum-style easing */
  animation: swing 1.5s infinite alternate ease-in-out;
}
.sign:hover {
  /* Hover over the sign to stop the animation */
  animation-play-state: paused;
}
.sign P {
  /* Typography */
  font-smoothing: antialiased;
  /* let's have uppercase.. */
  text-transform: uppercase;
  /* Arial... */
  font-familty: Arial, sans-serif;
  /* bold... */
  font-weight: bold;
  /* white... */
  color: #fff;
  /* centered text */
  text-align: center;
  /* with a subtle drop shadow for definition */
  text-shadow: 0 0 2px rgba(0,0,0,1);
  /* kill any default P margins and center it */
  margin: 0 auto;
  line-height: normal;
}

.sign IMG {
  border-radius: 50%;
  display:block;
  margin-left: 25px;
  margin-top: 10px;
}
.sign:before {
  /* string */
  position: absolute;
  content: "";
  /* string thickness/color */
  border: 2px dotted #444;
  /* hide string after connection with sign */
  border-bottom: none;
  border-left: none;
  /* string 'size' (as a -45deg rotated square) */
  width: 100px;
  height: 100px;
  /* string position */
  top: -55px;
  left: 50%;
  margin-left: -50px;
  /* string construct */
  transform: rotate(-45deg);
  /* string curved round nail body (unseen) */
  border-radius: 0 5px 0 0;
}
.sign:after {
  /* nail */
  position: absolute;
  content: "";
  /* nail head size */
  width: 10px;
  height: 10px;
  /* nail head as a circle */
  border-radius: 50%;
  /* nail position */
  top: -75px;
  left: 50%;
  margin-left: -4px;
  /* nail head default color + gradient (where supported) */
  background: #4c4c4c;
  background: linear-gradient(top, #4c4c4c 0%, #595959 12%, #666666 25%, #474747 39%, #2c2c2c 50%, #000000 51%, #111111 60%, #2b2b2b 76%, #1c1c1c 91%, #131313 100%);
}
/* sign swinging animation sequence */
@keyframes swing {
  0% { transform: rotate(-3deg) }
  100% { transform: rotate(3deg) }
}

/* Profile cards */

/* Style for the navigation menu */
#myUL {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  white-space: nowrap;
  background-color: #1395a1;
  display: flex;
  flex-wrap: wrap;
}

#myUL li {
  border: 2px solid #ddd;
  margin: 2px;
  flex: 1;
  min-width: 100px;
  text-align: center;
}

#myUL li a {
  display: block;
  color: white;
  padding: 10px 12px;
  text-decoration: none;
  font-size: 16px;
}

#myUL li a:hover {
  background-color: #111;
}
#myUL li.active-tab a {
  background-color: navy; !important; 
  color: white;                        
}

/* Tutor cards container */
.card-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

/* Individual tutor card */
.tutor-card {
  width: 200px;
  border: 2px solid #ccc;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  background-color: #f8f8f8;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.tutor-card:hover {
  transform: scale(1.05);
}

.tutor-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

h3{
  margin-bottom: 10px;
}

.profile-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #1395a1;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

/* ✅ Mobile responsiveness */
@media (max-width: 600px) {
  #myUL li {
    flex: 1 0 100%;
  }

  .tutor-card {
    width: 90%;
  }

  #myUL {
    flex-direction: column;
  }
}

.wrapper2 a,
.wrapper3 a,
.wrapper10 a {
  text-decoration: none;
}

.Adz, .Adz1 {
  margin-left: 12px;
  width: 90%;
  height: 300px;
  border: 2px solid #000;
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
}

.Adz{
  margin-top: 450px;
}
.Adz:hover, .Adz1:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* footer */

.footer {
  display: flex;
  flex: 1;
  padding: 10px;
  background-color: #f0f0f0;
  margin: 5px;
  padding: 10px;
  margin: 5px;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: black;
  color: white;
  text-align: left;
  line-height: 1.6rem;
}

.footer1{
  flex: 1;
  text-align: left;
  line-height: 1.6rem;
  width: 20%; 
}

.container6 {
  display: flex;
  justify-content: space-between;
}

/*Footer news ticker*/

.News-footer
{ position: fixed; 
  bottom: 0px ;
  margin-top: 40px; 
  margin-left:0px; 
  width: 100%; 
  height: 40px;
  background-color: black; 
  display: inline-flex; 
  overflow: hidden; 
  white-space: nowrap; 
  z-index:99; } 
.N-text 
{ padding-top: 0px; 
  vertical-align: middle; 
  font-size: 25px; color: limegreen; 
  font-family: fantasy;
  margin: 5px; width:100%; 
  animation: marquee 10s linear infinite; 
  display: inline-block; padding-right: 10px; 
} 

.news{ 
  height:auto; 
  background-color:red; 
  padding: 2px 20px 10px 10px; 
  font-size:20px; color: darkolivegreen; 
  font-family: cursive;
  z-index:9; display: block; } 
.news:after 
{ 
  content:''; top:0; 
  transform:translateX(100%); 
  width:100%; 
  height:200px; 
  position: absolute; 
  z-index:99; animation: slide 5s infinite; 
  background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(128,186,232,0) 99%, rgba(125,185,232,0) 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(255,255,255,0)), color-stop(50%,rgba(255,255,255,0.8)), color-stop(99%,rgba(128,186,232,0)), color-stop(100%,rgba(125,185,232,0))); background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.8) 50%,rgba(128,186,232,0) 99%,rgba(125,185,232,0) 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.8) 50%,rgba(128,186,232,0) 99%,rgba(125,185,232,0) 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.8) 50%,rgba(128,186,232,0) 99%,rgba(125,185,232,0) 100%); /* IE10+ */ background: linear-gradient(to right, rgba(255,255,255,0) 0%,rgba(255,255,255,0.8) 50%,rgba(128,186,232,0) 99%,rgba(125,185,232,0) 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#007db9e8',GradientType=1 ); /* IE6-9 */ } #news-head:before{position: absolute; content: ''; top:19px;left: 9px; display: inline-block;height: 10px; width: 10px;background: #fff;animation:at-blink .4s infinite;} @keyframes at-blink{from{opacity:0}to{opacity:1}} @keyframes slide { 0% {transform:translateX(-100%);} 100% {transform:translateX(100%);} } .t-link{color:inherit!important;list-style:none;}



*,*::after,*::before{
  margin: 0;
  padding: 0;
  box-sizing: inherit;
} 

/*Tutor sort bar*/

/* Style only the list with id="myUL" */
#myUL {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: black;
    width: 100%;
    justify-content: center;
    margin: auto;
    display: flex;
}

/* Style all <li> items inside #myUL */
#myUL li {
    float: left;
    border: 3px solid #ddd;
    margin: 2px;
    width: 120px;
    background: crimson;
}

/* Style the <a> tags inside each <li> of #myUL */
#myUL li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 18px;
}

/* Hover effect for links inside #myUL */
#myUL li a:hover {
    background-color: #111;
}

/* Style for the active link (Top Tutors) */
#myUL li.active {
    background-color: limegreen;
}

/* Style for the last item (Home) with class active1 */
#myUL li.active1 {
    background-color: crimson;
    font-weight: bold;
}

/* Optional: fix stray ">" in the first <li> */
#myUL li.active::before {
    content: "";
}


/* Home Button Styling */
.home-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  background-color: black;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: absolute; width: 410px; margin-top: -120px; margin-left: 440px;
}

.home-button:hover {
  background-color: crimson;
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
  color: #fff;
  cursor: pointer;
}

.home-button:active {
  transform: scale(0.98);
}


/* General Mobile Adjustments */
@media (max-width: 768px) {
  /* Banner */
  .banner img {
    width: 100%;
    height: auto;
  }

  /* Sign Section */
  .sign.three {
    margin-top: -200px !important; /* Reduce overlap for smaller screens */
    text-align: center;
  }

  .sign.three img {
    width: 80px;
  }

  .sign.three p {
    font-size: 16px;
  }

  /* Tutor Filter Menu */
  #main ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
  }

  #main ul li {
    margin: 5px;
    flex: 1 1 40%; /* two per row on mobile */
    text-align: center;
  }

  /* Tutor Cards */
  .card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tutor-card {
    width: 90%;
    margin: 15px 0;
  }

  .tutor-card img {
    width: 100%;
    height: auto;
  }

  /* Advertisement Section */
  #tutor-advertise {
    width: 95% !important;
    padding: 20px !important;
    margin-top: 20px !important;
  }

  #tutor-advertise h2 {
    font-size: 22px !important;
  }

  #tutor-advertise p {
    font-size: 16px !important;
  }

  /* Footer */
  .footer {
    flex-direction: column;
    text-align: center;
  }

  .footer1 {
    margin: 15px 0;
  }

  .footer img {
    height: 100px;
    width: 100px;
  }

  /* News Footer */
  .News-footer {
    font-size: 14px;
  }

  .N-text marquee {
    font-size: 13px;
  }
}
