/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    outline: 0;
    transition: all .3s ease;
}

::selection {
    color: #fff;
    background-color: #000;
}

span.quotes {
    font-style: italic;
}

.go-to-top {
    position: fixed;
    bottom: 20px;
    right: 10px;
    z-index: 2;
    padding: 10px 15px;
    border: none;
    background-color: #000;
    color: #fff;
    border-radius: 3px;
    opacity: 0;
    cursor: pointer;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    background: #f4f4f6;
    color: #000;
    flex: 1;
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
}

.container {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1;
}

/* Navigation */
.navbar {
    padding: 10px 40px;
    background: rgb(0, 0, 0);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    display: flex;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgb(0 0 0 / 30%) 0%, rgba(17, 17, 17, 0.7) 100%), url(../img/hero1.avif) center / cover no-repeat;
    position: relative;
}

/* Alternative hero backgrounds - uncomment to use */
/* 


/* 
.hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(17, 17, 17, 0.7) 100%), url('https://images.unsplash.com/photo-1589994965851-a8f479c573a9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
} */


.hero-overlay {
    text-align: center;
    padding: 40px;
    max-width: 800px;
    color: #fff;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

.hero-profile {
    margin: 30px 0;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-ctas {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.blog-cta {
    margin-top: 40px;
    text-align: center;
}

.blog-list {
    display: flex;
    flex-wrap: wrap;
}

.blog-list .blog-post {
    background-color: #ffff;
    border-radius: 6px;
    max-width: 526px;
}

.blog-list .blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
}

.blog-list .blog-post .blog-breif {
    padding: 20px;
}

.blog-list .blog-post .blog-breif h2 {
    font-size: unset;
    text-align: left;
}

.blog-list .blog-post .blog-breif .btn.solid {
    margin-top: 20px;
}

.blog-list .blog-post .blog-breif small {
    display: block;
    opacity: 0.8;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 11px rgba(0, 0, 0, 0.4);
}

.btn.secondary {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    backdrop-filter: blur(3px);
}

.btn.solid {
    background-color: #000;
    color: #fff;
}

/* Sections */
section {
    padding: 80px 0;
}

h1,
h2 {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.toast {
    position: fixed;
    top: 70px;
    right: 20px;
    background: rgb(112 255 0 / 10%);
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.toast.error {
    background: rgb(255 0 0 / 10%);
}

/* Highlights */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.highlight-card {
    padding: 30px;
    text-align: center;
    color: #fff;
    background-color: #fff;
    background-size: cover;
    background-blend-mode: multiply;
    filter: grayscale(1);
    cursor: pointer;
    border-radius: 7px;
}

.highlight-card:hover,
.highlight-card.active {
    filter: grayscale(0);
}

.highlight-card.civil-law {
    background-image: url(../img/civil-law.jpg), linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

.highlight-card.criminal-law {
    background-image: url(../img/criminal-law.jpg), linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

.highlight-card.corporate-law {
    background-image: url(../img/corporate-law.png), linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

/* Blog */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    border-radius: 9px;
    background-color: #fff;
    overflow: hidden;
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.blog-card .breif {
    padding: 0 20px;
    margin-bottom: 18px;
}

.blog-card h3 {
    margin-bottom: 10px;
}

.blog-card p {
    opacity: 0.8;
    margin-bottom: 15px;
}

article {
    background-color: #fff;
    padding: 50px;
    border-radius: 11px;
    margin: 9px;
}

article .blog-header {
    text-align: center;
    margin-bottom: 34px;
}

article h1 {
    margin: 0;
    font-size: 2.5rem;
}

article h2 {
    font-size: 2rem;
}

img#blog-image {
    width: 100%;
}

/* Forms */
button[type="submit"] {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.appointment-form,
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 15px;
    width: 80%;
}

.loading-btn {
    opacity: .7;
    cursor: not-allowed;
}

.loading-btn::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 3px solid #ddd;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: rotation .5s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.24);
    border-radius: 8px;
    color: #000;
    font-family: inherit;
}

.form-group select {
    background: url(../img/dropdown-arrow.svg) no-repeat right 12px center;
    background-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    font-size: 15px;
}

.form-group select option {
    color: #000;
}

.form-group select option:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #fff;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid rgba(0, 0, 0, 0.7);
    outline-offset: 2px;
    border-color: rgba(0, 0, 0, 0.3);
}

.btn:focus {
    outline: 2px solid rgba(0, 0, 0, 0.7);
    outline-offset: 2px;
}

iframe#location {
    border: 0;
    width: 100%;
    height: 400px;
    margin: 10px auto;
    display: flex;
}

/* Documents */



/* Search Box */
.search-box {
    display: flex;
    width: 80%;
    margin: 10px auto;
}

.search-input {
    min-width: 200px;
    border: none;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 0 3px 0 #dddd;
    max-height: 67px;
    max-width: calc(100% - 220px);
    width: 100%;
    margin: 0;
    overflow: hidden;
    position: relative;
}

.search-input input {
    width: 100%;
    height: 60px;
    padding: 10px 20px;
    border: none;

}

#clear-search {
    cursor: pointer;
    padding: 0 12px;
    font-size: 2.2rem;
    color: #888;
    display: none;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-54%);
}

.tag-filter {
    margin-left: 20px;
    min-width: 100px;
    max-width: 300px;
    width: 200px;
    position: relative;
}

.tag-filter ul {
    position: absolute;
    right: 0;
    background: #ffff;
    width: 100%;
    padding: 12px;
    box-shadow: 0 0 6px 0 #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.tag-filter ul li {
    list-style: none;
    margin: 10px 0;
}

.tag-filter ul li {
    display: none;
}

.tag-filter ul:hover li {
    display: block;
}

.tag-filter ul li:first-child {
    margin-top: 0;
}

.tag-filter button.active {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.24);
    border-radius: 6px;
    background-color: #000000;
    cursor: pointer;
    text-align: left;
    font-weight: bold;
    color: #fff;
}

.tag-filter button {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    background-color: #f4f4f6;
    cursor: pointer;
    text-align: left;
}

.tag-filter button:hover {
    background-color: #000000;
    color: #fff;
}

.documents-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.document-card {
    padding: 20px;
    background-color: #fff;
    border-radius: 6px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.document-card .btn {
    text-align: center;
}

/* About */
.about-hero {
    text-align: center;
    padding: 120px 0 80px;
    background: url(../img/about.jpg), linear-gradient(135deg, rgb(0 0 0 / 0%) 0%, rgb(0 0 0 / 24%) 100%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-attachment: scroll;
    height: 60vh;
    color: #fff;
    background-blend-mode: multiply;
    ;
}

.profile-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.profile-photo-large {
    min-width: 200px;
    min-height: 200px;
    width: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.profile-text {
    flex: 1;
    padding: 20px;
}

.profile-text h2 {
    text-align: left;
    margin-bottom: 7px;
}

.experience {
    margin-top: 60px;
}

.timeline {
    position: relative;
}

.timeline-item {
    margin-bottom: 30px;
    padding-left: 30px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.timeline-item h3 {
    margin-bottom: 5px;
}

.contact-card {
    text-align: center;
    margin-top: 60px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details p {
    margin-bottom: 10px;
}

/*********************** BARE ACT *******************/
.card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.card {
    min-width: 300px;
    max-width: 500px;
    width: 30%;
    background-color: #fff;
    border-radius: 9px;
    overflow: hidden;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    height: 200px;
}

.card .card-breif {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card .card-breif small {
    margin-bottom: 15px;
}

.card .card-breif .btn.solid {
    display: block;
    margin-top: 15px;
    text-align: center;
    margin-top: auto;
}

/* Blog Single */

nav.blog-title-nav {
    background: white;
    margin: 9px;
    border-radius: 6px;
    padding: 15px;
    max-height: 200px;
    position: relative;
    padding-bottom: 39px;
    overflow: hidden;
}

nav.blog-title-nav .view-all-wrapper {
    background-image: linear-gradient(to top, white, rgb(255 255 255/ 80%));
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

.blog-single {
    padding: 0;
}

ol.all-blog-title {
    margin-bottom: 30px;
}

ol.all-blog-title li {
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.24);
    border-radius: 6px;
    margin: 6px;
    color: #000;
    overflow: hidden;
}

ol.all-blog-title li a {
    display: inline-block;
    padding: 6px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    color: inherit;
}

ol.all-blog-title li:hover,
ol.all-blog-title li a.active {
    background-color: #000;
    color: #fff;
}

.view-all-wrapper {
    display: flex;
    justify-content: center;
    padding: 11px;
}

.blog-article h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.blog-article img {
    width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

/* Admin */
.login-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
}

.login-form {
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
}

.admin-dashboard {
    padding: 120px 0 80px;
}

.admin-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background-color: #fff;
    width: fit-content;
    margin: 40px auto;
    border-radius: 10px;
}

.tab-btn {
    padding: 10px 20px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s;
    margin: 10px;
}


.tab-btn.active {
    background: rgba(0, 0, 0, 0.15);
    color: #000;
    font-weight: bold;
}


.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgb(255, 255, 255);
    backdrop-filter: blur(0px);
    border-radius: 12px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
}

#editor-title-input,
#editor-slug {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

section.cta {
    text-align: center;
}

section.cta .btn {
    margin-top: 20px;
}

section.error-404 {
    background-color: #fff;
    width: 70%;
    margin: 50px auto;
}

section.error-404 .cta {
    text-align: center;
    margin-top: 25px;
}

/* Footer */
.footer {
    width: 100%;
    padding: 25px 0;
    text-align: center;
    background-color: #000;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 55px;
        right: 0px;
        background-color: rgb(0 0 0 / 70%);
        padding: 20px;
        border-radius: 8px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        width: 100%;
    }

    .hamburger {
        display: flex;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .highlights-grid,
    .blog-list,
    .documents-list {
        grid-template-columns: 1fr;
    }

    .profile-content {
        flex-direction: column;
        text-align: center;
    }

    .search-filter {
        flex-direction: column;
    }

    .admin-tabs {
        flex-direction: column;
        align-items: center;
    }

    .profile-photo-large {
        width: 100%;
    }

    .profile-text h2 {
        text-align: center;
    }

    .search-box {
        margin: 10px 0;
    }

    .tag-filter {
        min-width: 120px;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-40 {
    margin-top: 40px;
}