html {
    scroll-behavior: smooth;
    font-family: dosis, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f7c59f;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

nav {
    background-color: #ffffff;
    border-style: solid;    
    border-color: #ffffff;
    display: flex;
    align-items: center;
    min-height: 0;
    padding: 0;
    box-sizing: border-box;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: max-content;
    flex-shrink: 0;
}

.logo {
    width: 300px;
    height: auto;
    text-align: right;
    padding: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
}

.nav-tagline {
    margin: 0;
    color: #000000;
    font-size: 20px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    padding-left: 10px;
    padding-bottom: 10px;
}


h2 {
    font-family: dosis, sans-serif;
    color: white;
    text-align: center;
    padding-top: 15px;
}   

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  padding-right: 20px;
  font-family: dosis, sans-serif;
  margin-left: auto;
  align-items: center;
  height: auto;
}

.nav-links a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-size: 20px;
  display: flex;
  align-items: center;
}

.button {
  transition-duration: 0.4s;
  position: relative;
}

.button:hover {
  background-color: #2ebbc5; /* Green */
  color: white;
  padding: 5px;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #412eac;
  min-width: 180px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #4CAF50;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropbtn {
  display: inline-flex;
  align-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgb(0, 0, 0);
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}

.box1 {
  border: 1px solid rgb(0, 0, 0);
  box-sizing: border-box;
  height: 700px;
  width: 500px;
  text-align: center;
  font-size: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 15px 15px;
  background-color: #ffffff;
}

.box1text {
  font-size: 20px;
  margin: 20px 0;
}

.box1button {
  background-color: #ff6741;
  color: white;
  padding: 15px 20px;
  text-align: center;
  align-self: center;
  margin-top: auto;
  font-size: 20px;
  
}


.box2 {
  border: 1px solid rgb(0, 0, 0);
  box-sizing: border-box;
  height: 500px;
  width: 500px;
  text-align: center;
  font-size: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 15px 15px;
  
}

.box2text {
  font-size: 20px;
  margin: 20px 0;
}

.box2button {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  text-align: center;
  align-self: center;
  margin-top: auto;
}

.column {
    column-count: 2;
    column-gap: 100px;
    column-width: 150px;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    padding-top: 10px;
    font-family: dosis, sans-serif;
}

.services-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 10px;
    position: relative;
}

.side-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    position: absolute;
    top: 50%;
    width: max(0px, calc((100% - 1100px) / 2 - 10px));
    transform: translateY(-50%);
}

.side-gallery:not(.right) {
    left: 0;
}

.side-gallery.right {
    align-items: center;
    right: 0;
}

.side-image {
    width: 100%;
    max-width: none;
    height: auto;
    display: block;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.intro {
    font-size: 20px;
    max-width: 1100px;
    text-wrap: justify;
    font-family: dosis, sans-serif;
    text-align: left;
    margin: 0 0 15px;
}

.clogo {
    width: 300px;
    height: auto;
}

.melogo {
    width: 300px;
    height: auto;
    padding-top: 5px;
}

.line {
    border-top: 1px solid #000000;
}

.tag{
    font-size: 30px;
    text-align: center;
    padding-top: 20px;
    font-family: dosis, sans-serif;
}

.abh{
    font-size: 30px;
    
}

.carcol{
    padding-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    font-size: 20px;
}

.about-left {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 100px;
}

.box1car{
    padding: 5px;
    width: auto;
    height: auto;
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    padding-right: 20px;
    margin: 0;
}

.box2car{
    padding: 5px 5px 0 0;
    width: 100%;
    height: auto;
    margin: 0;
    list-style-position: outside;
    box-sizing: border-box;
}

.imgmath{
    width: 250px;
}

.matheng{
    text-align: center;
    width: 1000px;
    margin: 0 auto;
    display: block;
    font-size: 20px;
    position: relative;
}

.career-list {
    text-align: left;
}

.career-heading {
    display: block;
    text-align: center;
}

.career-item-left {
    display: inline-block;
    text-align: left;
}

.matheng-images {
    position: absolute;
    top: 0;
    width: calc((100vw - 1040px) / 2);
    max-width: 1280px;
}

.matheng-images-left {
    right: calc(100% + 20px);
}

.matheng-images-right {
    left: calc(100% + 20px);
}

.matheng-images img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 12px;
}

@media (max-width: 1160px) {
    .matheng-images {
        display: none;
    }
}

.contactlist{
    list-style: none;
    text-align: left;
}

.mathengl{
    list-style: none;
}

.contact1{
    width: 300px;
    height: auto;
}

.career1,
.career2,
.career3,
.career4,
.career5,
.career6{
    width: 450px;
    height: auto;
    
}
.career1,
.career3,
.career5{
    float: left;
    padding-right: 10px;
}
.career2,
.career4,
.career6{
    float: right;
    padding-left: 10px;
}
.career3,
.career5{
    clear: left;
    padding-top: 100px;
}
.career4,
.career6{
    clear: right;
    padding-top: 100px;
}

.about1{
    width: 800px;
    height: auto;
    display: block;
}

.self{
    width: 300px;
    height: auto;
    
}

.offers{
    float: left;
    padding-left: 50px;
}

@media (max-width: 1160px) {
    body {
        margin: 0;
    }

    nav {
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0;
    }

    .nav-brand {
        align-items: center;
        width: 100%;
        max-width: 100%;
    }

    .logo {
        box-sizing: border-box;
        width: 100%;
        max-width: 300px;
        padding: 8px 12px;
    }

    .nav-tagline {
        box-sizing: border-box;
        width: 100%;
        padding: 0 12px 10px;
        font-size: 16px;
        white-space: normal;
    }

    .nav-links {
        box-sizing: border-box;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
        margin: 0;
        padding: 0 8px;
    }

    .button:hover {
        padding: 0;
    }

    .nav-links a {
        justify-content: center;
        min-height: 44px;
        font-size: 18px;
    }

    .nav-links .dropbtn {
        justify-content: center;
        min-height: 44px;
        font-size: 18px;
    }

    .dropdown {
        display: block;
    }

    .dropdown-content {
        position: absolute;
        top: 100%;
        left: 50%;
        z-index: 20;
        display: none;
        width: 220px;
        max-width: calc(100vw - 24px);
        min-width: 180px;
        box-sizing: border-box;
        transform: translateX(-50%);
        box-shadow: none;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.open .dropdown-content {
        display: block;
    }

    .services-layout {
        display: block;
    }

    .side-gallery {
        display: none;
    }

    .column {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .box1 {
        box-sizing: border-box;
        width: calc(100% - 24px);
        max-width: 500px;
        height: auto;
        justify-content: flex-start;
        padding: 20px 16px;
        font-size: 24px;
    }

    .box1text {
        font-size: 18px;
    }

    .box1button {
        margin-top: 16px;
    }

    .clogo,
    .melogo {
        max-width: 100%;
        height: auto;
    }

    .intro {
        box-sizing: border-box;
        max-width: none;
        margin: 0 16px 15px;
        font-size: 18px;
    }

    .tag {
        margin: 0 12px;
        font-size: 24px;
    }

    .matheng {
        box-sizing: border-box;
        width: calc(100% - 32px);
        margin: 0 16px;
        font-size: 18px;
        clear: both;
    }

    .imgmath {
        max-width: 100%;
        height: auto;
    }

    .mathengl {
        padding: 0 12px;
    }

    .offers {
        float: none;
        display: block;
        padding-left: 0;
        text-align: center;
    }

    .career1,
    .career2,
    .career3,
    .career4,
    .career5,
    .career6 {
        display: none;
    }

    .carcol {
        flex-direction: column;
        gap: 16px;
        font-size: 18px;
    }

    .about-left {
        box-sizing: border-box;
        width: 100%;
        padding: 0 16px;
    }

    .box1car {
        padding: 5px 16px;
    }

    .self,
    .contact1 {
        max-width: 100%;
        height: auto;
    }

    .abh {
        display: block;
        margin: 16px 12px;
        text-align: center;
        font-size: 26px;
    }

    .contactlist {
        padding-left: 0;
        overflow-wrap: anywhere;
    }
}