@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
}

:root {
    --cl1: #0F172A;
    --cl2: #B9E0F2;
    --cl3: #fff;
    --cl4: #222F43;
    --cl5: #131C31;
    --cl6: #F8BC04;
}

body {
    background-color: var(--cl1);
    margin: 0 auto;
    max-width: 1920px;
}

hr {
    color: var(--cl4);
    height: 1px;
    width: 85vw;
    background-color: var(--cl4);
    border: none;
    margin-top: 40px;
}

.hr-def {
    color: var(--cl4);
    height: 1px;
    width: 100%;
    background-color: var(--cl4);
    border: none;
    margin: 0;
}

h2, p, h1 {
    color: var(--cl3);
}

h1 {
    font-size: 32px;
}

a {
    text-decoration: none;
}

button {
    font-size: 20px;
    padding-inline: 24px;
    padding-block: 12px;
    border-radius: 16px;
    background-color: var(--cl1);
    color: var(--cl2);
    border: solid 1px var(--cl2);
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background-color: var(--cl5);
    color: var(--cl6);
    border: solid 1px var(--cl6);
    cursor: pointer;
    transform: scale(105%);
    transition: 0.3s;
}

/* ------------------------------------------------------------ NAV ----------------------------------------------------------------------- */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    padding-inline: 16px;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    background-color: rgba(15, 23, 42, 0.95);
    margin: 0 auto;
    max-width: 1920px;
}

nav img {
    width: 68px;
    height: 68px;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    list-style-type: none;
    flex-wrap: wrap;
}

nav a {
    color: var(--cl2);
    font-weight: bold;
}

/* ------------------------------------------------------------ NAV ----------------------------------------------------------------------- */

/* ------------------------------------------------------------ MAIN ----------------------------------------------------------------------- */

main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 64px;
    margin-top: 132px;
}

main div {
    display: flex;
    gap: 16px;
    flex-direction: column;
}

main div h1, main div h2 {
    color: var(--cl3);
}

main div h1 {
    font-size: 48px;
    font-weight: bold;
}

main div h2 {
    font-size: 32px;
    font-weight: normal;
}

main img {
    width: 440px;
    height: auto;
}



/* ------------------------------------------------------------ MAIN ----------------------------------------------------------------------- */

/* ------------------------------------------------------------ ABOUT ----------------------------------------------------------------------- */

about {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.about-root {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.about-sections {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10vw;
    flex-wrap: wrap;
}

.about-section-head{
    color: var(--cl3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.abt-ico-txt {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    margin-block: 40px;
    margin-left: 16px;
}

.text {
    gap: 8px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    flex-wrap: wrap;
}

.about-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
}

.abt-head, .abt-name, .abt-date {
    color: var(--cl3);
    display: inline-block;
    max-width: 100%;
    margin: 0;
    padding: 0;
    word-wrap: break-word;
}

.abt-head {
    font-size: 24px;
}

.abt-head, .abt-name {
    font-weight: bold;
}

.abt-name, .abt-date {
    font-size: 16px;
}

.icon {
    width: 50px;
    height: 50px;
    border: 12.5px solid var(--cl6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.line1, .line2 {
    width: 12.5px;
    background-color: var(--cl6);
    height: 112.5px;
    margin-top: 50px;
}


/* ------------------------------------------------------------ ABOUT ----------------------------------------------------------------------- */

/* ------------------------------------------------------------ NEWS ----------------------------------------------------------------------- */

news {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.news-sections {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.news-sections a, .papers-body a{
    display: contents;
}

.news-section {
    width: 380px;
    color: var(--cl5);
    border: 1px solid var(--cl4);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 40px;
    padding-bottom: 28px;
    background-color: var(--cl5);
    transition: 0.3s;
}

.news-section:hover {
    border: 1px solid var(--cl6);
    transform: scale(102%);
    transition: 0.3s;
    box-shadow: var(--cl6) 0px 0px 5px 0px;
}

.news-section h2 {
    font-size: 20px;
    font-weight: bold;
    padding-inline: 25px;
    color: var(--cl2);
}

.news-section img {
    width: 330px;
    border-radius: 8px;
    height: auto;
}

.news-date-category {
    width: 330px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-date-category button {
    border-radius: 8px;
    font-size: 16px;
    border: 1px solid var(--cl4);
    background-color: var(--cl1);
    color: var(--cl2);
    padding: 8px;
    cursor: pointer;
}

.news-date-category p {
    font-size: 16px;
    color: var(--cl2);
    font-style: italic;
}

.news-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.news-filters button {
    padding-inline: 15px;
    padding-block: 5px;
    margin: 0;
}

/* ------------------------------------------------------------ NEWS ----------------------------------------------------------------------- */

/* ---------------------------------------------------------- PROJECTS ---------------------------------------------------------------------- */

projects {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
}


.projects {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.projects h2{
    font-size: 24px;
    font-weight: bold;
    color: var(--cl3);
}

.projects p {
    font-size: 16px;
    font-weight: normal;
    color: var(--cl2);
}

.project {
    width: 480px;
    border: 1px solid var(--cl4);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 40px;
    padding-inline: 20px;
    padding-block: 40px;
    background-color: var(--cl5);
    transition: 0.3s;
}

.project:hover {
    border: 1px solid var(--cl6);
    transform: scale(102%);
    transition: 0.3s;
    box-shadow: var(--cl6) 0px 0px 5px 0px;
}

.project div {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.project div div{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    flex-wrap: wrap;
}

.project img {
    width: 180px;
    height: auto;
}

/* ---------------------------------------------------------- PROJECTS ---------------------------------------------------------------------- */

/* ---------------------------------------------------------- Contact ---------------------------------------------------------------------- */

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 120px;
}

.mail-sm {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 40px;
}

.sm {
    display: flex;
    gap: 20px;
    width: 230px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.sm img{
    width: 40px;
    height: auto;
    transition: 0.2s;
}

.sm img:hover{
    transform: scale(130%);
    transition: 0.2s;
}

.mail a{
    color: var(--cl2);
    font-size: 24px;
    font-weight: bold;
}

.subscribe form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.subscribe input {
    width: 280px;
    height: 40px;
    border-radius: 16px;
    background-color: var(--cl4);
    border: 1px solid var(--cl2);
    padding-left: 8px;
    color: var(--cl3);
    font-weight: bold;
}

input:focus {
    outline:none;
    border: 2px solid #70e700;
}

::placeholder {
    color: var(--cl2);
    font-weight: normal;
}

.subscribe {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 300px;
    gap: 24px;
}

.subscribe p{
    color: var(--cl2);
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.signature {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    background-color: var(--cl1);
    font-weight: bold;
    height: 36px;
}

.signature a, .signature p {
    color: var(--cl2);
    transition: 0.3s;
}

.signature a:hover {
    color: var(--cl6);
    transition: 0.3s;
    scale: 102%;
}



/* ---------------------------------------------------------- Contact ---------------------------------------------------------------------- */

/* ---------------------------------------------------------- BLOG SECTION ------------------------------------------------------------------ */
.blog-post {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 64px;
    max-width: 1920px;
    margin: 132px auto 0;
}

.blog-post-child h1{
    color: var(--cl2);
    font-size: 32px;
}

.blog-post-content h2{
    font-size: 24px;
    color: var(--cl2);
    margin-block: 32px;
}

.blog-post-content h3{
    font-size: 20px;
    color: var(--cl2);
    margin-block: 16px;
}

.blog-post-content p{
    font-size: 18px;
    color: var(--cl3);
    margin-block: 8px;
}

.blog-post-content a {
    color: var(--cl6);
}

.blog-post-details {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 32px;
    margin-bottom: 32px;
}

.blog-post-details a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--cl2);
}

.blog-post-details img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.blog-tumbnail img{
    width: 660px;
    height: 440px;
    border-radius: 16px;
    margin-bottom: 8px;
}

.blog-post-child {
    max-width: 1000px;
    margin-inline: 140px;
}

.blog-post-body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    margin-top: 64px;
}

.blog-post-body-left {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
}

.blog-post-body-right {
    width: 480px;
    border: 1px solid var(--cl4);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px;
    background-color: var(--cl5);
}

.blog-post-body-right img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.blog-post-body-right a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--cl2);
}

.blog-post-body-right p {
    font-style: italic;
}

.blog-post-body-right h2 {
    color: var(--cl3);
}

.blog-right-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.blog-post-body-right-hr {
    color: var(--cl4);
    height: 1px;
    width: 100%;
    background-color: var(--cl4);
    border: none;
    margin: 0;
}

/* ---------------------------------------------------------- BLOG SECTION ------------------------------------------------------------------ */



/* -------------------------------------------------------- PROJECTS ------------------------------------------------------------------------ */
/* -------------------------------------------------------- PROJECTS ------------------------------------------------------------------------ */
/* -------------------------------------------------------- PROJECTS ------------------------------------------------------------------------ */


/* -------------------------------------------------------- Academy-HERO ------------------------------------------------------------------------ */

article {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 auto;
    max-width: 1920px;
    padding-top: 164px;
    padding-inline: 64px;
    gap: 32px;
}

.project-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 64px;
}

.project-text img {
    width: 280px;
    margin-inline: 64px;
}

article p {
    color: var(--cl3);
}

.hero-section-item {
    width: 256px;
    min-height: 280px;
}

.project-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-section-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
    padding: 16px;
    border: 1px solid var(--cl4);
    border-radius: 8px;
    transition: 0.3s;
}

.hero-section-item:hover {
    border: 1px solid var(--cl6);
    transform: scale(102%);
    transition: 0.3s;
    box-shadow: var(--cl6) 0px 0px 5px 0px;
}

.hero-section-item-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
}

.hero-section-item-header h2 {
    color: var(--cl3);
}

.hero-section-item-header img {
    width: 40px;
    height: 40px;
}

.hero-section-item-body {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}

/* -------------------------------------------------------- Academy-HERO ------------------------------------------------------------------------ */

/* -------------------------------------------------------- Academy-Education-Center ------------------------------------------------------------------ */

section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.sections-body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
}

.education-element {
    width: 380px;
    color: var(--cl5);
    border: 1px solid var(--cl4);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 40px;
    padding-bottom: 28px;
    background-color: var(--cl5);
    transition: 0.3s;
}

.education-element:hover {
    border: 1px solid var(--cl6);
    transform: scale(102%);
    transition: 0.3s;
    box-shadow: var(--cl6) 0px 0px 5px 0px;
}

.education-element p{
    width: 330px;
}

.education-element-buttons {
    width: 330px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.education-element-buttons button {
    font-size: 16px;
    padding-inline: 12px;
    padding-block: 6px;
    border-radius: 8px;
}

/* -------------------------------------------------------- Academy-Education-Center ------------------------------------------------------------------ */

/* ------------------------------------------------------------------ ACADEMY PAPERS ---------------------------------------------------------------- */

.main-paper-filer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-direction: column;
    gap: 16px;
    width: calc(100% - 32px);
    flex-wrap: wrap;
}

.paper-filters {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.paper-filters button {
    padding-inline: 15px;
    padding-block: 5px;
    margin: 0;
    font-size: 16px;
}

.papers {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.papers-body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-inline: 32px;
}

.paper {
    width: 320px;
    color: var(--cl5);
    border: 1px solid var(--cl4);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 16px;
    padding-bottom: 16px;
    background-color: var(--cl5);
    transition: 0.3s;
}

.paper:hover {
    border: 1px solid var(--cl6);
    transform: scale(102%);
    transition: 0.3s;
    box-shadow: var(--cl6) 0px 0px 5px 0px;
}

.paper h2 {
    font-size: 20px;
    font-weight: bold;
    padding-inline: 25px;
    color: var(--cl2);
}

.paper img {
    width: 288px;
}

.paper-date-category {
    width: 288px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.paper-date-category button {
    border-radius: 8px;
    font-size: 16px;
    border: 1px solid var(--cl4);
    background-color: var(--cl1);
    color: var(--cl2);
    padding: 8px;
    cursor: pointer;
}

.paper-date-category p {
    font-size: 16px;
    color: var(--cl2);
    font-style: italic;
}

/* ------------------------------------------------------------------ ACADEMY PAPERS ---------------------------------------------------------------- */

/* -------------------------------------------------------- PROJECTS ------------------------------------------------------------------------ */
/* -------------------------------------------------------- PROJECTS ------------------------------------------------------------------------ */
/* -------------------------------------------------------- PROJECTS ------------------------------------------------------------------------ */


@media only screen and (max-width: 1200px) {
    .blog-post-body {
        flex-direction: column;
        align-items: center;
    }

    .blog-post-child {
        margin-inline: 70px;
    }

    .blog-post-body-left {
        align-items: center;
    }
}

@media only screen and (max-width: 800px) {
    .blog-post-details {
        flex-wrap: wrap;
    }

    .blog-tumbnail img{
        width: 100%;
        height: auto;
    }

    .blog-post-body-right {
        width: 100%;
    }
}

@media only screen and (max-width: 1000px) {
    main {
        flex-direction: column-reverse;
    }
    
    main div {
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        text-align: center;
    }
    
    main div h1 {
        font-size: 40px;
    }
    
    main div h2 {
        font-size: 24px;
    }
    
    main img {
        max-width: 440px;
        margin-inline: 16px;
    }

    .project-text {
        flex-direction: column-reverse;
    }

    article {
        padding-inline: 16px;
    }

    .project-text img {
        margin-inline: 0;
    }
}

@media only screen and (max-width: 700px) {
    .project {
        width: 80%;
    }

    .footer {
        align-items: center;
        flex-direction: column;
        gap: 40px;
    }
}

@media only screen and (max-width: 550px) {
    .project div {
        align-items: center;
        flex-direction: column;
    }
}

@media only screen and (max-width: 472px) {

    .blog-post-child {
        margin-inline: 16px;
    }
}

@media only screen and (max-width: 450px) {
    .paper {
        width: 80%;
    }

    .paper img {
        width: calc(80% - 10px);
    }

    .paper-date-category {
        width: calc(80% - 10px);
    }
    
    .news-section {
        width: 80%;
    }

    .news-section img {
        width: calc(80% - 10px);
    }

    .news-date-category {
        width: calc(80% - 10px);
    }

    .education-element {
        width: 80%;
    }

    .education-element p, .education-element-buttons {
        width: calc(80% - 10px);
    }    
}