@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css');
@import url('http://fonts.googleapis.com/css2?family=comfortaa:wght@300;400;500;600;700&display=swap');

:root{
    --main-color:#2980b9;
    --red:red;
    --light-color:#777;
    --light-bg:#eee;
    --black:#2c3e50;
    --white:#fff;
    --box-shadow:0 .5rem 1rem rgba(0,0,0,.1);
    --border:.1rem solid rgba(0,0,0,.2);
}

*{
    font-family: 'comfortaa';
    margin: 0; 
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    border: none;
    text-align: center;
}

*::selection{
    background-color: var(--main-color);
    color: (cadetblue);
}
::-webkit-scrollbar-track{
    background-color: transparent;
}
::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}
html{
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-padding-top:7rem;
    scroll-behavior: smooth;
}
body{
    background-color: #fff;
}

section{
    padding: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.heading{
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 3rem;
    color: var(--black);
    text-transform: capitalize;
    padding: 1rem 0;
}
.section-title{
    border-top: 1rem solid var(--main-color);
    border-bottom: 1rem solid var(--main-color);
    background-color: var(--black);
    color: var(--white);
    text-align: center;
    padding: 3.5rem 1.5rem;
    font-size: 5rem;
    text-transform: capitalize;
}

.header{
    height: 78px;
    position: relative;
    top: 0; left: 0; right: 0px;
    background-color: whitesmoke;
    box-shadow: var(--box-shadow);
    z-index: 2000;
    display: flex;
}
.header .flex {
    position:relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px;
}
.header .flex .logo{
    position: relative;
}
.menu-icon{
    font-size: 2.7rem;
    color: var(--black);
    cursor: pointer;
    display: none;
}

.header span{
    margin-bottom: -5px;
    margin-right: 832px;
    display:flex;
    font-size: 3.4rem;
    color:#3B5999;
    font-weight:520;
}
.header .flex .logo i{
    margin-right: 2.5rem;
    color: dimgray;
    font-weight:520;
}
.header ul{
    position: absolute;
    top: 50%;
    left: 80%;
    transform: translate(-50%,-50%);
    margin: 0;
    padding: 0px 35px;
    display: flex;
    font-size: 15px;
    border-radius: 10px;
}  
.header ul li{
    list-style: none;
    text-align: center;
    display: block;           
} 
.header ul li:last-child{
     border-right: none;
}            
.header ul li a{
    padding: 0 25px;
    right: 70px;
    text-decoration: none;
    display: block;             
}  
.header ul li a .icon{
    width: 40px;
    height: 40px;
    text-align: center;
    overflow: hidden;
    margin: 0 auto 7px;
}
.header ul li a .icon .fa{
    width: 100%;
    height: 100%;
    line-height: 60px;
    font-size: 20px;
    transition: 0.5s;
    color:  #3B5999;
    font-weight: 600;
}
.header ul li a .icon .fa:last-child{
      color: #28a745;            
}
.header ul li a:hover .icon .fa{
    transform: translateY(-100%);
}
.header ul .name{
    position: relative;
    height: 21px;
    width: 100%;
    display: block;
    opacity: 1;
    font-size: 18px;
    color:  #3B5999;
    transition: all 0.4s cubic-bezier(0.68,-0.55,0.265,1.55);
} 
.header ul li:hover a .name{
    opacity: 1;
     color:  #28a745;
} 
.menu-icon {
  font-size: 30px;
  color: black;
  cursor: pointer;
  display: none; 

}
.menu {
  list-style: none;
  padding: 0;
  display: flex; 
}
@media (max-width: 1150px) {
  .header .menu {
    display: none;
  }
  .header span {
    margin-right: 490px;
    font-size: 3rem;
  }
}

@media screen and (max-width: 992px) {
  .menu {
    display: none;
    flex-direction: column;
    background-color: whitesmoke;
    width: 100%;
    position: absolute;
    top: 650px;
    left: 0;
  }

  .menu.active {
    display: flex;
  }

  .menu-icon {
    display: block;
  }
}
@media (max-width:1000px){
    .header ul {
        display: none;
    }
}
@media (max-width:992px){
     .header{
        position: fixed;
    }
     menu-icon{
        display:block;
        position: relative;
        left: 850px;
        color: black;
        cursor: pointer;
         max-width: 1000px;
    }
     .header span{
         margin-right: 500px;
        font-size: 3.0rem;
    }
     .header ul {
        padding: 0;
        width: 168%;
        top: 268%;
        display: block;
        overflow: hidden;
        transition: 0.5s;
         background-color: whitesmoke;
         transform:translate(-50%,-50%) scaleY(0);
         transform-origin: top;
    }
    .header ul.active{
         transform:translate(-50%,-50%) scaleY(1);
    }
    .header ul li{
        border-bottom: 1px solid rgba(0,0,0,0.2);
        display: 5px 0;
        display: flex;
    }
    .header ul li a{
        padding: 0px 8px;
    }
    .header ul li a .icon{
        display: inline-block;
        float: left;
        margin: 2 auto;
    }
    .header ul .name{
        width: auto;
        display: inline-block;
        margin: 13px;
        top: 8px;
    }
}
@media (max-width:900px){
    .header span{
         margin-right: 380px;
    }
    .header ul{
        display: none;
    }
}
@media (max-width:768px){
    .menu-icon{
        display:block;
        position: relative;
        right: 50px;
        color: black;
        cursor: pointer;
    }
    .header span{
        margin-right: 100px;
        font-size: 2.5rem;
    }
    .header ul {
        padding: 0;
        width: 168%;
        top: 268%;
        display: block;
        overflow: hidden;
        transition: 0.5s;
         background-color: whitesmoke;
         transform:translate(-50%,-50%) scaleY(0);
         transform-origin: top;
    }
    .header ul.active{
         transform:translate(-50%,-50%) scaleY(1);
    }
    .header ul li{
        border-bottom: 1px solid rgba(0,0,0,0.2);
        display: 5px 0;
        display: flex;
    }
    .header ul li a{
        padding: 0px 14px 0px;
    }
    .header ul li a .icon{
        display: inline-block;
        float: left;
        margin: 2 auto;
    }
    .header ul .name{
        width: auto;
        display: inline-block;
        margin: 13px;
        top: 8px;
    }
}
@media (max-width:500px){
    .header span{
         margin-right: 90px;
    }
}
@media (max-width:400px){
    
    .header span{
         margin-right: 60px;
        font-size: 2.4rem;
    }
}
@media (max-width: 360px){
    .header span {
    margin-right: 60px;
    font-size: 2.4rem;
  }
}




.blog{
    width: 320px;
    height: 410px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display:inline-block;
    margin: 30px;
    align-items: center;
    box-shadow: 0 0px 15px rgba(0,0,0,.4);  
     margin-bottom: 40px;
}
.blog-data h3{
    color: green;
    font-size: 50px;
    margin-bottom: 30px;
    padding: 10px;
    text-align: center;
}         
.blog-body{
    width: 100%;
    height: 100%;
    top: 0px;
    position: absolute;
    background-color:gainsboro;
    border-radius: 15px;
    color:black;
    padding: 30px;
     box-shadow: 0 10px 10px rgba(0,0,0,.5);
    display: flex;
    flex-direction: column;
    transition: 0.5s;
}   
          
.blog-title{
     font-size: 30px;
     color:#3B5999;
     font-weight: 500;
}           
.blog-info{
     font-size: 20px;
     color: black;
     font-weight: 100;
     padding-top: 13px;
}            
.blog-btn i{
    font-size: 22px;
    position:absolute;
    padding-top: 5px;
    background:transparent; 
    cursor: pointer;
    color: #3B5999;
    left: 30px;
    
}

@media (max-width:992px){
    .blog{
        align-items: center;
        justify-content: center;
    }
    .blog1 .blog-data h3{
    padding-top: 120px;
    text-align: center;
}  
}
@media (max-width:768px),
    @media (max-width:600px){
        .blog-body{
            align-items: center;
            justify-content: center;
        }
        .blog-data h3{
            text-align: center;
        }
}
@media (max-width:360px){
   .blog1 .blog-data h3{
       position: relative;
        text-align: center;
       margin-left: 60px;
        }
    .blog{
        position: relative;
        align-items: center;
        justify-content: center;
        bottom: 20px;
        }
    .blog-body{
            align-items: center;
            justify-content: center;
        }
}

.card .blog-title{
     font-size: 26px;
     color:#3B5999;
     font-weight: 450;
     padding-top: 5px;
}           
.card .blog-info{
     font-size: 20px;
     color: black;
     padding-top: 15px;
}  

.card-container {
  display: flex;
  overflow-x: auto; 
  padding: 20px; 
  gap: 25px; 
}

.card {
  flex: 0 0 auto; 
  width: 350px; 
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 17px;
  background-color:gainsboro;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}
.card-container::-webkit-scrollbar {
  height: 10px;
}

.card-container::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 5px;
}

.card-container::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}
@media (max-width:600px){
    .card{
         width: 280px; 
    }
}
@media (max-width:992px){
    .blog1 .blog-data h3{
     margin-top: -25px;
}
}
@media (max-width:360px){
    .blog1 .blog-data h3{
     //margin-top: 15px;
        text-align: center;
}
    .card-container{
      padding-top:  -140px; 
    }
    .card {
        width: 300px; 
        margin-right: 40px;
    }
}

















