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

/* GLOBAL STYLES */
html, body {
    width: 100%;
    font-family: "Roboto Condensed", sans-serif;
    background-color: #fff;
    color: #333;
    overflow-x: hidden;
}

/* MEDIA ELEMENTS */
img, video {
    max-width: 100%;
    height: auto;
}

/* LINKS */
a {
    text-decoration: none;
    color: inherit;
}

/* LISTS */
ul {
    list-style: none;
}

/* CONTAINER */
.container {
    width: min(90%, 82.5rem);
    margin-inline: auto;
}

/* HEADER SECTION */
.header-section {
    width: 100%;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.1);
}

.header-section.fixed {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header {
    display: flex;
    flex-direction: column;
} 

.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.header-contact {
    border-bottom: 1px solid #dee2e6;
}

.header-section.fixed .header-contact {
    display: none;
}

.header-contact .container {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
}

.left-contact,
.right-contact,
.header-socials {
    display: flex;
    gap: 0.9375rem;
}

.header-phone,
.header-email,
.header-socials a {
    color: #848e9f;
    font-size: 0.875rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo a {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 3rem;
    color: #13c5dd;
    text-transform: uppercase;
}

.menus {
    display: flex;
    gap: 1.875rem;
}

.menus a {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.6875rem;
    color: #1d2a4d;
}

.menus a:hover,
.menus a.active {
    color: #13c5dd;
}

.menus li {
    position: relative;
}

.menus .dropdown {
    display: none;
    position: absolute;
    top: 1.5625rem;
    left: 0;
    margin-top: 2.125rem;
    margin-right: 0.625rem;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    text-transform: capitalize;
    width: 9.875rem;
}

.dropdown.show {
    display: block;
}

.dropdown li {
    padding: 0.3125rem 1.25rem;
}

.dropdown li:hover {
    background-color: #f0f0f0;
    color: #333;
}

.dropdown li.active {
    background-color: #13c5dd;
    color: #fff;
}

.dropdown li a {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5rem;
    color: #333;
    width: 100%;
}

.navbar.fixed {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 82.5rem);
    background-color: #fff;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar.fixed::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: -1;
}

/* Blog Section */
.blog-section {
    padding: 6.25rem 0;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-block: 3.5rem;
}

.section-header h5 {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5rem;
    text-transform: uppercase;
    color: #13c5dd;
    margin-bottom: 0.5rem;
    border-bottom: 5px solid rgb(222, 226, 230);
}

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 4.1875rem;
    color: #1d2a4d;
    max-width: 37.5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(17.5rem, 22.5rem));
    gap: 3.125rem;
}

/* Blog Card */
.blog-item {
    background-color: #EFF5F9;
    border-radius: 0.625rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Image */
.blog-item img {
    width: 100%;
    height: auto;
}

/* Content */
.blog-body {
    padding: 1.25rem;
}

.blog-body h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1D2A4D;
    line-height: 2.125rem;
    margin-bottom: 0.625rem;
    cursor: pointer;
}

.blog-body h3:hover {
    color: #13C5DD;
}

.blog-body p {
    font-size: 1rem;
    color: #848e9f;
    line-height: 1.5rem;
}

/* Divider */
.blog-item hr {
    border: 0.5px solid #dee2e6;
}

/* Footer */
.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9375rem 1.25rem;
}

.blog-footer .author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-footer .author img {
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 50%;
}

.blog-footer small {
    font-size: 0.875rem;
    color: #848e9f;
}

.blog-footer i {
    color: #13C5DD;
    margin-right: 4px;
}

/* Button */
.blog-btn {
    display: flex;
    justify-content: center;
    margin-top: 3.75rem;
}

.blog-btn button {
    width: 10.9375rem;
    height: 3.625rem;
    background-color: #13C5DD;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s ease;
}

.blog-btn button:hover {
    color: #000;
}

/* Footer Section */
.footer-section {
    background-color: #1d2a4d;
    color: #fff;
}

.footer {
    padding-top: 6.25rem;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.footer-links > div {
    flex: 1 1 15rem;
    min-width: 13.75rem;
}

.footer-links h2 {
    display: inline-block;
    color: #13c5dd;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.875rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border-bottom: 5px solid rgb(53, 79, 142);
}

.footer-links p {
    display: block;
    color: #eff5f9;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
}

.footer-links ul li i {
    color: #13c5dd;
    font-size: 0.875rem;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
}

.footer-links ul li a:hover {
    color: #13c5dd;
}

.get-in-touch .location,
.get-in-touch .envelope,
.get-in-touch .phone {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.get-in-touch i {
    color: #13c5dd;
}

.newsletter .subscribe-form {
    display: flex;
    width: 100%;
    max-width: 25rem;
    margin: 1rem 0 1.25rem;
}

/* INPUT */
.newsletter .subscribe-form input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 1px solid #ced4da;
    border-right: none;
    border-radius: 5px 0 0 5px;
    font-size: 0.875rem;
    outline: none;
}

/* BUTTON */
.newsletter .subscribe-form button {
    border: 1px solid #13c5dd;
    background-color: #13c5dd;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: background-color 0.3s ease;
}

.newsletter .subscribe-form button:hover {
    background-color: #10a7bc;
}

/* FOLLOW TITLE */
.newsletter .follow-title {
    margin-top: 0.625rem;
    margin-bottom: 0.875rem;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-socials a {
    width: 1.875rem;
    height: 1.875rem;
    background-color: #13c5dd;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-socials a:hover {
    color: #1d2a4d;
}

.footer-content {
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5625rem 0;
    margin-top: 3.75rem;
}

.footer-content .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.footer-content span {
    color: #13c5dd;
    text-decoration: none;
}


/* RESPONSIVE DESIGN */

/* Tablets + Mobiles */
@media (max-width: 768px) {
    .header-section,
    .header-section.fixed {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        box-shadow: none;
    }

    .navbar.fixed {
        position: fixed;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        box-shadow: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .header-contact {
        display: none;
    }

    .navbar {
        position: relative;
        padding: 0.625rem;
        flex-wrap: wrap; 
        margin-block: 0.625rem;
    }

    /* Show hamburger */
    .hamburger-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 3.75rem;
        height: 2.8125rem;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        background: #fff;
        cursor: pointer;
        position: absolute; 
        top: 8px;
        right: 0;
        z-index: 1000;
        transition: border-width 0.2s ease, padding 0.2s ease, box-shadow 0.2s ease;
    }

    .hamburger-menu i {
        font-size: 1.5rem;
        color: #7c7979;
    }

    .hamburger-menu.active {
        border: 3px solid #7c7979; 
        padding: 6px;
    }

    .menus {
        position: relative; 
        flex-basis: 100%;
        width: 100%;
        background: #fff;
        flex-direction: column;
        display: none;
        padding: 0;
        margin-top: 1.25rem;
    }

    .menus.show {
        display: flex;
        top: 100%;
        width: 100%;
    }

    /* Dropdown inside mobile menu */
    .menus .dropdown {
        position: static; 
        display: none;    
        border: 1px solid #b9b9b9;
        border-radius: 5px;
        margin: 8px 0 0 0;
        width: 100%;
        box-shadow: none;
    }

    .menus .has-dropdown.active .dropdown,
    .menus .dropdown.show {
        display: block;
    }

    .menus .dropdown li a {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    /* Blog Section */
    .blog-section {
        padding: 3rem 1rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
        line-height: 2.8rem;
        max-width: 100%;
        padding: 0 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }

    .blog-item {
        max-width: 100%;
        margin: 0 auto;
    }

    .blog-body h3 {
        font-size: 1.4rem;
        line-height: 1.8rem;
    }

    .blog-body p {
        font-size: 0.95rem;
    }

    .blog-footer {
        padding: 0.8rem 1rem;
    }

    .blog-btn {
        margin-top: 2rem;
    }

    .blog-btn button {
        width: 100%;
        max-width: 12rem;
    }

    /* Footer Section */
    .footer {
        padding-top: 4rem;
        gap: 3rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2.5rem;
        padding: 0 1.25rem;
    }

    .footer-links > div {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .footer-links h2 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .newsletter .subscribe-form {
        max-width: 100%;
    }

    .footer-content {
        margin-top: 2rem;
        padding: 1.5rem 1.25rem;
    }

    .footer-content .container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-socials {
        justify-content: flex-start;
    }
}