:root {
    --orange: #ff6455;
    --white: #f6f6f6;
    --deep-blue: #003a47;
    --dark: #242525;
    --light-blue: #53acc0;
}

@font-face {
    font-family: 'Syncopate';
    src: url('syncopate.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('opensans.woff2') format('woff2');
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('opensans-italic.woff2') format('woff2');
    font-weight: 300 800;
    font-style: italic;
    font-display: swap;
} 


@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("fa-solid-900.woff2") format("woff2");
}

.fa-solid {
    font-family: "Font Awesome 6 Free", Arial, sans-serif;
    font-weight: 900;
    font-style: normal;
}

.fa-circle-xmark:before {
    content: "\f057";
}

* {
    font-family: 'Open Sans', Arial, sans-serif;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--white);
    color: var(--dark);
}

header {
    box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 4px;
    background-color: rgb(246, 246, 246);
    color: var(--white);
    padding: 1rem 90px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .title {
    display: flex;
    gap: 4px;
    align-items: center;
    text-decoration: none;
}

header h3 {
    margin: 0;
    color: var(--orange);
    font-family: 'Syncopate', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    text-align: center;
}

nav ul {
    padding: 0;
    list-style-type: none;
}

nav ul li {
    display: inline;
    margin-right: 10px;
}

nav ul li a {
    color: rgb(0, 58, 71);
    font-family: "Open Sans", Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 21.79px;
    text-align: center;
    border-radius: 15px;
    text-decoration: none;
}

#main-h1{
    line-height: 2.5rem;
    color: var(--deep-blue);
    margin-top: 0;
    font-size: 1.8rem;
}

nav ul li a:hover {
    color: var(--light-blue);
}

nav ul li a.active {
    font-weight: bold;
    color: var(--orange);
}

main {
    padding: 2rem;
}

.container {
    display: flex;
    justify-content: space-between;
}

#recentPosts {
    flex: 2;
    margin-right: 2rem;
}

aside {
    flex: 1;
}

#searching {
    width: 100%;
    height: 2rem;
    display: flex;
    padding-left: 5px;
}

.hide {
    display: none !important;
}

#searchingTagContainer {
    margin-block: auto;
    border-radius: 4px;
    background-color: #ccc;
    padding: 2px 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

#searchingTag {
    margin: 0;
    font-size: 15px;
}

#searchInput {
    padding: 0.5rem;
    width: 70%;
    border: 2px solid var(--light-blue);
    border-radius: 8px;
}

#searchInput:active {
    border: 2px solid var(--deep-blue);
}

#searchButton {
    padding: 8px 20px;
    background-color: var(--light-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#searchButton:hover {
    background-color: var(--deep-blue);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.blog-post {
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-post-content {
    padding: 1rem;
}

.blog-post h3 {
    color: var(--deep-blue);
    margin: 0 0 0.5rem 0;
}

.blog-post-author {
    color: var(--orange);
    font-style: italic;
}

#categoryList {
    list-style-type: none;
    padding: 0;
}

#categoryList li {
    margin-bottom: 0.5rem;
    cursor: pointer;
    color: var(--deep-blue);
    transition: color 0.3s ease;
}

#categoryList li:hover {
    color: var(--orange);
}

footer {
    font-family: "Open Sans", Arial, sans-serif;
    text-align: center;
    background: rgb(52, 50, 51);
    padding-block: 0.75rem;
    display: flex;
    flex-direction: column;
    -webkit-box-pack: start;
    justify-content: flex-start;
    -webkit-box-align: center;
    align-items: center;
    padding-inline: 41px;
    color: #e2e8f0;
}

h2 {
    color: var(--deep-blue);
    border-bottom: 2px solid var(--orange);
    padding-bottom: 0.5rem;
}

/* Add these styles to the existing CSS file */

.profile-section {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.profile-icon {
    font-size: 2rem;
    color: var(--orange);
    margin-right: 0.5rem;
}

.profile-name {
    font-size: 1rem;
    color: var(--white);
}

/* Update the existing nav styles */
nav ul {
    padding: 0;
    list-style-type: none;
    display: flex;
}

nav ul li {
    margin-left: 1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination button {
    background-color: var(--light-blue);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.pagination button:hover {
    background-color: var(--deep-blue);
}

.pagination button:disabled {
    background-color: var(--dark);
    cursor: not-allowed;
}

.pagination .current-page {
    background-color: var(--orange);
}

.blog-post a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-post a:hover {
    opacity: 0.9;
}

/* Blog post*/
.blog-post-full {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}
.blog-post-full img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.blog-post-full h1 {
    color: var(--deep-blue);
    margin-bottom: 0.5rem;
}
.blog-post-full .meta {
    color: var(--orange);
    margin-bottom: 1rem;
}
.blog-post-full .content {
    line-height: 1.8;
}
.blog-layout {
    display: flex;
    gap: 2rem;
}
.blog-main {
    flex: 2;
}
.blog-sidebar {
    flex: 1;
}
.recent-posts {
    margin-bottom: 2rem;
}
.recent-posts h3,
.categories h3 {
    color: var(--deep-blue);
    border-bottom: 2px solid var(--orange);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.recent-post-item {
    margin-bottom: 1rem;
}
.recent-post-item a {
    color: var(--deep-blue);
    text-decoration: none;
}
.recent-post-item a:hover {
    color: var(--orange);
}

.tag {
    background-color: var(--light-blue);
    color: var(--white);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}
.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
}
.blog-post-meta {
    color: var(--orange);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.blog-date{
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
}


.blog-post h2 {
    color: var(--deep-blue);
    margin: 0 0 0.5rem 0;
}

hr.divider {
    opacity: 0.6;
    border-width: 0px 0px 1px;
    border-image: initial;
    border-style: solid;
    width: 100%;
    border-color: rgb(255, 255, 255);
}

.legal {
    padding-top: 32px;
    font-size: 12px;
    margin: 0;
}

.copyrights {
    margin-top: 46px;
    font-style: normal;
    line-height: 14px;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 48px;
}

.enterpriseInfo {
    display: flex;
    position: relative;
    max-width: 1440px;
    width: 100%;
    margin: 69px 90px;
    gap: 0px;
    font-weight: 500;
    font-size: 16px;
    -webkit-box-pack: justify;
    justify-content: space-around;
    -webkit-box-align: start;
    align-items: start;
    margin-inline: auto;
    column-gap: 12px;
}

.phones {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    text-align: left;
    color: rgb(255, 255, 255);
    font-weight: 400;
}

.phone {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.phone > p {
    font-size: 12px;
    margin: 0;
}

.mailContact {
    background-color: transparent;
    color: inherit;
    text-decoration: inherit;
}

.contactText {
    font-size: 12px;
    margin: 0;
}

.cellphone {
    font-size: 12px;
    margin: 0;
}

.contact {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    gap: 0.5rem;
}

.contactContainer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aboutus {
    display: flex;
    flex-direction: column;
    -webkit-box-align: center;
    align-items: center;
    gap: 0.5rem;
}

.socialMedia {
    display: flex;
    gap: 1.25rem;
}

.swiper-slide {
    position: relative;
    aspect-ratio: 16 / 10;
    container-type: size;
}

#categoryList li a {
    text-decoration: none;
    color: inherit;
}

#post-content a {
    text-decoration: none;
    font-weight: bold;
    color: var(--orange);
}

#post-content h2 {
    line-height: 2rem;
}

.home-actual {
    color: var(--orange);
    font-weight: bold;
}

/* Responsive design */
@media (max-width: 1150px) {
    .blog-layout {
        flex-direction: column;
    }
}
@media (max-width: 950px) {
    header {
        padding: 1rem 50px;
    }
}
@media (max-width: 900px) {
    .enterpriseInfo {
        flex-wrap: wrap;
        row-gap: 16px;
    }
}
@media (max-width: 800px) {
    header {
        padding: 1rem 30px;
    }
}
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }

    .profile-section {
        margin-bottom: 1rem;
    }

    nav {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }

    nav ul {
        justify-content: space-around;
    }

    nav ul li {
        margin-left: 0;
    }

    .container {
        flex-direction: column;
    }

    #recentPosts {
        margin-right: 0;
        margin-bottom: 2rem;
    }

    #searchInput {
        width: 60%;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-full {
        padding: 0 !important;
    }

    .blog-layout {
        flex-direction: column;
    }
}

@media(max-width: 604px) {
    .enterpriseInfo {
        display: grid;
    }
    .contactContainer {
        padding-top: 48px;
    }
}

@media(max-width: 400px) {
    footer {
        padding-inline: 10px;
    }

    .title {
        flex-direction: column;
    }
}