@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;700;900&display=swap');

:root {
    --color-primary: #5599ffff;
    --color-secondary: #80b3ffff;
    --color-tertiary: rgb(49, 152, 255);
    --color-extra: rgb(52, 52, 52);
    --color-extra-1: #fff;
    --color-extra-2: rgba(255, 102, 0, 0.571);
    --color--content: #eee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Roboto', sans-serif;
    line-height: 1.3rem;
    scroll-behavior: smooth;
}

body{
    font-family: 'Roboto', sans-serif;
    line-height: 1.3rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #000;
    text-decoration: none;
}

ul {
    list-style: none;
}

p {
    margin: 5px 0;
    line-height: 1.7;
}

img { 
    max-width: 100%;
}

/* ----------------------------------Navbar---------------------------------- */
.navbar {
    width: 100%;
    height: auto;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 1px 3px rgb(0 0 0 / 10%), 0 2px 2px rgb(0 0 0 / 6%), 0 0 2px rgb(0 0 0 / 7%);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar ul {
    display: flex;
    align-items: center;
}

.navbar li {
    margin: 0 15px;
    font-weight: 500;
}

.navbar a {
    color: #000;
    text-decoration: none;
    padding-bottom: 20px;
}

.navbar-links a:hover {
    border-bottom: 2px solid var(--color-tertiary);
}

.navbar-brand img {
    max-width: 180px;
    padding-left: 10px;
}
/* Navbar ending */

/* ----------------------------------Hamburger Menu---------------------------------- */
.hamburger {
    cursor: pointer;
    width: 24px;
    height: 24px;
    position: relative;
    background: none;
    border: none;
    z-index: none;
    transition: all 0.25s;
    display: none;
}

.hamburger-top,
.hamburger-middle,
.hamburger-bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: #000;
    transform: rotate(0);
    transition: all 0.5s;
}

.hamburger-middle {
    transform: translateY(7px);
}

.hamburger-bottom {
    transform: translateY(14px);
}

.open .hamburger-top {
    transform: rotate(45deg) translateY(6px) translateX(6px);
}

.open .hamburger-middle {
    display: none;
}

.open .hamburger-bottom {
    transform: rotate(-45deg) translateY(6px) translateX(-6px);
}
/* Hamburger Menu Ending */

/* ----------------------------------Mobile Menu---------------------------------- */
.mobile-menu {
    position: fixed;
    top: 52px;
    right: 0;
    background-color: #fff;
    width: 100%;
    height: 50%;
    padding: 30px;
    border-left: var(--color-secondary) solid 1px;
    box-shadow: inset 0 4px 3px -3px rgb(0 0 0 / 10%), inset 0 4px 2px -2px rgb(0 0 0 / 7%);
    transition: all 0.3s;
    display: none;
    z-index: 2;
}

.mobile-menu ul{
    line-height: 3;
    border-bottom: var(--color-secondary) solid 1px;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.mobile-menu a {
    text-decoration: none;
    font-size: 20px;
}

.mobile-menu a:hover {
    border-bottom: var(--color-primary) solid 2px;
}

.hidden {
    transform: translateX(100%);
}

.no-scroll {
    overflow: hidden;
}
/* Mobile Menu Ending */

/* ----------------------------------Showcase---------------------------------- */
.showcase-wrapper {
    margin-bottom: 80px;
    background-color: var(--color-primary);
}

.showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    height: 400px;
    padding: 20px;
    border-radius: 10px;
    background-color: var(--color-primary)
}

.hero-box-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-box-1 .title {
    font-size: 30px;
    color: var(--color-extra-1);
}

.hero-box-1 .info {
    color: var(--color-extra-1);
}

.hero-box-2 {
    margin-top: 70px;
}

.hero-slider {
    border-radius: 10px;
}
/* Showcase Ending */

/* ----------------------------------Slider---------------------------------- */
.swiper{
    width: 500px;
    height: 350px;
    border-radius: 10px;
    border-bottom: 3px solid var(--color-tertiary);
    box-shadow: rgba(42, 109, 255, 0.45) 0px 10px 20px 0px;
}

.swiper-slide img{
    width: 500px;
    height: 350px;

}

.swiper .swiper-button-prev, .swiper .swiper-button-next{
    color:#fff;
}

.swiper .swiper-pagination-bullet-active{
    background:#fff;
}
/* Slider Ending */

/* ----------------------------------Newsletter---------------------------------- */
.nl-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 600px;
    margin-top: -55px;
    padding: 20px;
    border-radius: 10px;
    background: var(--color-secondary);
    color: var(--color-extra-1);
}

.nl-container h2 {
    font-size: 15px;
}

.nl-container input[type="email"] {
    padding: 5px;
    width: 250px;
    height: 30px;
    border-radius: 5px 0 0 5px;
    border: none;
}

.nl-container input[type="email"]:focus {
    outline: none;
}

.nl-btn {
    padding: 0 8px 0 8px;
    height: 30px;
    margin-left: -4px;
    border-radius: 0 5px 5px 0px;
    border: none;
    background: var(--color-primary);
    color: #fff;
}

.nl-btn:hover {
    cursor: pointer;
    background-color: var(--color-extra);
}
/* Newsletter Ending */

/* ----------------------------------Learn About---------------------------------- */
.learn-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.learn-box {
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 10px;
}

.learn-box-content {
    padding: 15px;
}

.learn-box img {
    margin-bottom: 10px;
    border-radius: 10px 10px 0px 0px;
}

.learn-box a {
    display: inline-block;
    padding-top: 10px;
    color: var(--color-secondary);
}

.learn-box a:hover {
    color: var(--color-extra);
}
/* Learn About Ending */

/* ----------------------------------Project---------------------------------- */
.project-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.project-box {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    background: #fff;
    padding: 30px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 2px solid var(--color-secondary);
    box-shadow: rgba(17, 12, 46, 0.15) 0px 10px 20px 0px;
}

.project-box a:hover{
    color:var(--color-primary);
}

.project-box-tag{
    display: flex;
}

.project-tag {
    padding: 4px;
    margin: 2px 4px 20px 0px;
    border: 1.5px solid var(--color-primary);
    border-radius: 5px;
}

.project-box:nth-of-type(1) {
    grid-column: 1 / 3;
}

.project-box:nth-of-type(4) {
    grid-column: 2 / 4;
}
/* Project Ending */

/* ----------------------------------Social---------------------------------- */
.social {
    justify-content: center;
    align-content: center;
    padding: 5px;
    border-bottom: 2px solid transparent;

}

.social:hover {
    border-bottom: 2px solid var(--color-primary);
}
/* Social Ending */

/* ----------------------------------Footer---------------------------------- */
.footer {
    margin-top: auto;
    width: 100%;
    background-color: var(--color-extra);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
}

.footer-container p{
    color: var(--color-extra-1);
}

.footer-container a {
    padding: 10px;
    color: var(--color-extra-1);
}

.footer-container a:hover {
    text-decoration: underline;
}
/* Footer Ending */

/* ================================= Learn Page ================================= */

/* Learn Page Header */
.learn-pg-header {
    width: 1100px;
    padding: 20px 5px;
    border-radius: 10px;
    background: var(--color-secondary);
    color: var(--color-extra-1);
}

/* Search */
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-input {
    position: relative;
    height: 50px;
    max-width: 900px;
    width: 100%;
    background: #fff;
    margin: 0px;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.search-input .button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
  
.search-input input {
    height: 100%;
    width: 100%;
    outline: none;
    font-size: 18px;
    font-weight: 400;
    border: none;
    padding: 0 155px 0 65px;
    background-color: transparent;
}

.search-input .button {
    right: 20px;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    background-color: var(--color-secondary);
    cursor: pointer;
}

.search-input .button:active {
    transform: translateY(-50%) scale(0.98);
}

.box-a {
    display:flex;
    align-items: flex-start;
}

.filter-link {
    padding: 10px;
    border: 1px solid #000;
    border-radius: 4px;
    margin: 1px;
}

/* Learn Content */
.learn-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.learn-box-container {
    width: 350px;
    margin: 10px;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 16px;
}

.pagination p {
    padding-bottom: 10px;
}

.pagination-action {
    margin: 0px 2px;
    display: inline-block;
    padding: 8px;
    color: #B9B9B9;
    font-size: 1.3em;
    text-decoration: none;
}

.pagination-action:hover {
    color: #3354AA;
}

.pagination-number {
    background-color: #6D85C7;
    padding: 0.5em 0.8em;
    margin: 0px 2px;
    color: #fff;
    border-radius: 2px;
    text-decoration: none;
}

.pagination-number:hover {
    background-color: #000;
}

.pagination-current {
    background-color: #3354AA;
}

/* ================================= Learn Page/ ================================= */

/* ================================= Content Page ================================= */
.toc-menu {
    position: fixed;
    top: 50%;
    left: 2px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    background: var(--color-secondary);
    border-radius: 50%;
    border: none;
    z-index: 4;
    transition: all 0.2s;
}

.toc-menu:hover {
    background: #000;
}

.toc-menu span {
    font-size: 18px;
    color: #fff;
}

.toc-box {
    position: fixed;
    z-index: 1;
    padding: 20px;
    margin-top: 5px;
    border-radius: 5px;
    background: var(--color-extra);
    display: none;
}

.toc-box ul {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.toc-box ul li {
    padding: 0px;
}

.toc-box a {
    cursor: pointer;
    font-size: 12px;
    color: #fff;
}

.toc-open{
    display: block;
}

.tocBtn-rotate {
    transform: rotate(180deg);
}

.header-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.content-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
}

.content-container .content {
    padding: 0px;
}

.published {
    padding: 20px;
    background: var(--color--content);
}

/* Aside Content */
.aside {
    display: block;
}

.aside-box {
    margin-top: 5px;
    padding: 20px 20px;
    background: var(--color--content);
}

.tags-aside-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tags-aside {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.tags-aside a {
    padding: 10px;
    margin: 5px;
    background: #fff;
}

.tags-aside a:hover {
    color: #fff;
    background: var(--color-extra);
}

/* Ad Aside */
.ad-aside {
    margin: 20px 0px;
    padding: 20px;
    background: var(--color--content);
}

.ad-text {
    margin-top: 1px;
    padding: 1px;
    text-align: center;
    background: var(--color--content);
}
/* Ad Aside/ */

/* Sub Posts */
.post-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.sub-posts {
    padding: 5px;
    margin: 2px;
    text-align: center;
    background-color: var(--color-primary);
    color: var(--color-extra-1);
}

.sub-posts:hover {
    background-color: var(--color-extra);
}
/* Sub Posts/ */

/* ================================= Content Page/ ================================= */

/* ================================= Flex Page ================================= */

.flex-title {
    text-align: center;
}

.flex-content {
    display: flex;
    justify-content: center;
    text-align: justify;
    padding: 20px 0px;
}

/* ================================= Flex Page/ ================================= */

/* ================================= Streamfield Blocks ================================= */

.block-rt {
    padding: 20px;
    margin-bottom: 10px;
    background: transparent;
}

.block-ct {
    padding: 25px 20px 0px 20px;
    background: var(--color--content);
}

.block-c {
    padding: 20px;
    margin-bottom: 10px;
    background: var(--color--content);
    font-size:large;
    line-height: 2.5rem;
}

/* ================================= Streamfield Blocks/ ================================= */

/* ----------------------------------Global---------------------------------- */
.container {
    max-width: 1440px;
    padding: 40px 20px;
    
}

.flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

.filterbox {
    max-width: 1440px;
    padding: 5px 5px;
}
    
.heading {
    text-align: center;
    padding: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.color-w {
    color:#fff
}

.slug-link {
    color: #fff;
    text-decoration: none;
}

.aside-heading {
    padding: 10px;
    margin-top: 20px;
}

.page-header {
    width: 100%;
    border-radius: 5px;
    color: var(--color-extra-1);
    background: var(--color-secondary);
}

.content-title {
    color: var(--color-extra-1);
    text-align: center;
    padding: 5px;
}

.title {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 20px;
}

.info {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    opacity: 70%;
}

.box-shadow-1 {
    box-shadow: rgba(42, 109, 255, 0.45) 0px 10px 20px 0px;
}

.box-shadow-2 {
    box-shadow: rgba(42, 109, 255, 0.45) 0px 5px 10px 0px; ;
}

.line {
    height: 40px;
    margin: 0px 20px;
    border: 1px solid #fff;
}

/* Messages */
.message {
    justify-content: center;
}

.success {
    padding: 10px;
    background: rgb(195, 244, 121);
    text-align: center;
}

.error {
    padding: 10px;
    background: rgb(241, 95, 95);
    text-align: center;
    color: #fff;
}

/* ----------------------------------Media Query---------------------------------- */
@media (max-width: 768px) {

    .hamburger {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    .navbar-brand img {
        width: 200px;
    }

    .navbar .navbar-links {
        display: none;
    }

    /* Showcase */
    .showcase {
        grid-template-columns: 1fr;
        padding: 0px;
    }

    .hero-box-1 {
        margin-top: 30px;
    }

    .hero-box-2 {
        margin-top: 30px;
    }

    .swiper {
        width: 340px;
        height: 240px;
    }

    .swiper .swiper-button-prev, .swiper .swiper-button-next {
        display: none;
    }

    /* Newsletter */
    .newsletter {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nl-container {
        flex-direction: column;
        margin-top: 50px;
        width: 350px;
    }

    .nl-container form {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nl-container h2 {
        margin-bottom: 10px;
    }

    /* Learn About */
    .learn-container {
        grid-template-columns: 1fr;
        width: 100%;
    }

    /* Project */
    .project-container {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .project-box:nth-of-type(1) {
        grid-column: 1;
    }

    .project-box:nth-of-type(4) {
        grid-column: 1;
    }

    /* Detail Page Content */
    .content {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .content-container {
        display: grid;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .content-title {
        color: var(--color-extra-1);
        text-align: center;
        padding: 2px;
        font-size:medium;
    }

    /* Listing Page Search*/
    .input-box {
        height: 66px;
        margin: 0 8px;
    }
    
    .input-box i {
        left: 12px;
        font-size: 25px;
    }
    
    .input-box input {
        padding: 0 112px 0 50px;
    }
    
    .input-box .button {
        right: 12px;
        font-size: 14px;
        padding: 8px 18px;
    }

    .filter-link {
        padding: 5px;
        font-size: small;
        margin-right: 1px;
        margin-left: 1px;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}