* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
html {
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: montserrat, roboto, sans-serif; 
}

p {
    font-weight: 300;
}

a {
    color: #000;
}

a:hover {
    color: #008080;
    transition: 0.5s ease;
}

/*  Mobile CSS (no media query) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-content {
    display: flex;
    padding: 1rem 1rem;
    justify-content: space-between;
    align-items: center;
    margin: 0 1rem;
    height: 100px;
}

.modal-and-toggler {
    flex-direction: row;
}

.modal-and-toggler {
    display: flex;
    gap: 15px;
}

.brand-holder {
    display: flex;
    flex-direction: column;
}

.logo {
    color: #008080;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 900;
}

.tagline {
    color: #008080;
    font-size: 0.61rem;
    font-weight: 200;
    letter-spacing: 0.2rem;
}

.navbar-toggler {
    border: none;
    background: none;
}

.modal-and-toggler {
    flex-direction: row;
}

.nav-links {
    display: none;
}

/* Blog */
.title-container {
    margin: 8rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
}

.blog-ctg {
    width: 50px;
    height: 25px;
    background: #008080;
    align-content: center;
    text-align: center;
    margin-top: 1rem;
}

.blog-ctg span {
    color: #fff;
    font-weight: 900;
}

.title {
    margin: 2rem 0;
}

.title span {
    font-size: 1.5rem;
    font-weight: 300;
}

.blog-date p{
    font-size: 0.8rem;
    font-weight: 600;
    color: #d1d1d1;
}

.blog-time p {
    font-size: 0.8rem;
    font-weight: 600;
    color: #d1d1d1;
}

.blog-lenght p {
    font-size: 0.8rem;
    font-weight: 600;
    color: #d1d1d1;
}

/* Banner */
.banner-image {
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.7)), url(../img/maintenance.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 50vh;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Blog content */
.blog-subtitle {
    margin: 2rem 1rem;
}

.subtitle span {
    font-size: 1.2rem;
    font-weight: 300;
}

.blog-content {
    margin: 0rem 2rem;
}

.line {
    height: 5px;
    width: 25%;
    background: #008080;
    margin-bottom: 1rem;
}

.content span {
    font-weight: 900;
}

.content-divider {
    height: 1px;
    width: 15%;
    background: #f1f1f1;
    margin: 2rem 0;
}

.content li {
    font-weight: 900;
}

/* Carousel */
.blog-carousel {
    margin: 4rem 0;
}

.carousel-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-left: 1rem;
}

.swiper {
    position: relative;
    padding-bottom: 40px;
    margin-top: 2rem;
    width: 100%;
    height: 100%;
}

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

.image-container {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
    margin-bottom: 1.2rem;
}

.swiper-pagination {
    margin-top: 5;
}

.news-item:hover img {
    transform: scale(1.1);
}

.news-item span {
    font-size: 1rem;
    font-weight: 900;
}

.news-item p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer Nav */
.footer-nav {
    margin: 4rem 1rem;
}

.brand-social {
    display: flex;
}

.brand-holder {
    display: flex;
    flex-direction: column;
}

.tagline {
    font-size: 0.61rem;
    font-weight: 200;
    letter-spacing: 0.2rem;
}

.social-holder {
    margin-left: auto;
    text-align: center;
}

.social-holder i {
    color: #000;
    font-size: 1.3rem;
    margin: 0 0.1rem;
}

.social-icons {
    padding: 1rem 0;
}

.footer-menu {
    display:flex;
    flex-direction: column;
    text-align: center;
}

.menu-nav ul {
    list-style: none;
}

.menu-nav span {
    margin: 1rem 0rem;
    font-weight: 900;
}

.menu-nav ul > li {
    margin: 1.3rem 0;
}

.menu-nav a {
    text-decoration: none;
    color: #000;
    font-weight: 300;
}

.footer-address {
    display: flex;
    flex-direction: column;
    font-weight: 200;
    margin: 1.3rem 0;
}

.footer-address span {
    margin: 1rem 0;
}

.footer-address i {
    margin-right: 0.6rem;
}

.hvr-sweep-to-right {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    position: relative;
    -webkit-transition-property: color;
    transition-property: color;
    -webkit-transition-duration: 0.5s;
    transition-duration: 0.5s;
}

.hvr-sweep-to-right:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #008080;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: 0 50%;
    transform-origin: 0 50%;
    -webkit-transition-property: transform;
    transition-property: transform;
    -webkit-transition-duration: 0.5s;
    transition-duration: 0.5s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}

.hvr-sweep-to-right:hover, .hvr-sweep-to-right:focus, .hvr-sweep-to-right:active {
    color: white;
}

.hvr-sweep-to-right:hover:before, .hvr-sweep-to-right:focus:before, .hvr-sweep-to-right:active:before {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}
  
/* Footer */
footer {
    background: #d1d1d1;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 1rem;
}

footer span {
    margin: 0.4rem 0;
    font-size: 0.9rem;
    font-weight: 200;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.modal-header {
    background-color: black;
    padding: 21px 0;
    display: flex;
    justify-content: space-between;
    align-content: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-body {
    background-color: #fff;
    width: 100%;
    overflow-y: auto;
}

.modal-body span svg {
    margin-right: 25px;
}

.close {
    cursor: pointer;
    background: none;
    border: none;
}

.search-btn {
    background: none;
    border: none;
}

.modal-items {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    height: 90px;
    cursor: pointer;
}

.modal span {
    font-size: 1.2rem;
    font-family: montserrat, roboto, sans-serif;
    font-weight: 900;
}

/* Min Width 768px */
@media screen and (min-width: 768px) {
    .footer-menu {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .menu-nav {
        text-align: left;
        margin-top: 2rem;
    }

    .menu-nav ul {
        list-style: none;
        text-align: left;
    }

    .footer-address {
        text-align: right;
    }
}

/* Min Width 1200px */
@media screen and (min-width: 1200px) {
    .navbar {
        position: fixed;
        top: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
    }

    .brand-holder {
        display: flex;
        flex-direction: column;
    }

    .logo {
        color: #008080;
        text-decoration: none;
        font-size: 1.5rem;
        font-weight: 900;
    }

    .tagline {
        color: #008080;
        font-size: 0.61rem;
        font-weight: 200;
        letter-spacing: 0.2rem;
    }

    .nav-links {
        display: flex;
        gap: 2rem;
        list-style: none;
    }

    .nav-link {
        text-decoration: none;
        color: #333;
        padding: 0.5rem;
        position: relative;
        cursor: pointer;
    }

    .nav-link:hover::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 1px;
        background: #008080;
        bottom: 0;
        left: 0;
    }

    .active-link {
        font-weight: bold;
        color: #008080;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        display: none;
        z-index: 1000;
    }

    .dropdown-menu.active {
        display: block;
    }

    .close-btn {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        background: none;
        border: none;
        font-size: 1.2rem;
        cursor: pointer;
    }

    .menu-content {
        display: flex;
        padding-top: 2rem;
    }

    .menu-content-cm {
        padding-top: 2rem;
    }

    .content-left {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding-right: 2rem;
        width: 30%;
    }

    .content-left button {
        font-family: montserrat;
        font-weight: 900;
        font-size:  1rem;
        text-align: start;
        padding: 1rem 0.5rem;
        background-color: transparent;
        border: none;
        cursor: pointer;
    }

    .content-left button:hover {
        background-color: #008080;
        color: #fff;
        transition: 0.5s ease;
    }

    .content-left button.active {
        background-color: #008080;
        color: #fff;
    }

    .content-right {
        margin-left: 2rem;
    }

    .content-right a {
        text-decoration: none;
        color: #000;
        font-weight: 300;
        font-size: 1rem;
    }

    .content-top a {
        text-decoration: none;
        color: #000;
        font-weight: 300;
        font-size: 1rem; 
    }
    
    .content-right p {
        margin-top: 0.2rem;
        font-size: 0.8;
        font-weight: 600;
        color: #d1d1d1;
    }

    .content-top p {
        margin-top: 0.2rem;
        font-size: 0.8;
        font-weight: 600;
        color: #d1d1d1;
    }
    
    .content-right a:first-child {
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    .content-top a:first-child {
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    .menu-content i {
        margin-left: 1rem;
    }
    
    .menu-content-cm i {
        margin-left: 1rem;
    }
    
    .forward-icon i {
        display: inline-block;
        transition: transform 0.5s ease;
        margin-bottom: 1rem;
    }
    
    .forward-icon:hover i {
        transform: translateX(8px);
    }
    
    .category {
        display: none;
    }
    
    .category.active {
        display: block;
    }
    
    .tag {
        width: 30%;
    }
    
    .tag button {
        font-family: montserrat;
        font-weight: 300;
        border: none;
        margin: 0.1rem;
        background: #f1f1f1;
        padding: 1.2rem;
    }
    
    .tag button:hover {
        background-color: #008080;
        color: #fff;
    }
    
    .feed {
        display: inline-block;
    }
    
    .content-bottom .about {
        display: flex;
        flex-direction: row;
        max-width: 1200px;
        justify-content: space-between;
        list-style: none;
    }
    
    .about {
        margin-top: 5rem;
    }

    .about a {
        text-decoration: none;
    }

    .navbar-toggler {
        display: none;
    }
    
    .divider {
        width: 100%;
    }

    /* Intro */
    .title span {
        font-size: 2rem;
        font-weight: 300;
    }

    /* Blog */
    .blog-subtitle,
    .blog-content {
        padding: 0rem 15rem;
    }

    /* Footer */
    footer {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    footer span {
        text-align: center;
        margin: 0 0.8rem;
    }

}
