@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: "Libre Baskerville", serif;
    animation: fadeInTop 500ms ease-in-out;
}

body {
    background-color: #f5f5f5;
}

p {
    text-align: justify;
}

textarea {
    resize: vertical;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInTop {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}


.fadeInTop {
    animation: fadeInTop 300ms forwards;
}

.fadeOut {
    animation: fadeOut 300ms forwards;
}

*::-webkit-scrollbar {
    width: 4px;
    background-color: #4a4a4a;
}

*::-webkit-scrollbar-thumb {
    background-color: #b3e0ff;
}

/* Base Navbar Styles */
header {
    width: 100%;
    /* background-color: #ffffff; */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
    position: fixed;
    top: 0;
    z-index: 1000;
}

.navbar {
    /* max-width: 1200px; */
    margin: auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    text-decoration: none;
    cursor: pointer;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: white;
    border: 3px solid black;
    max-width: fit-content;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.logo-image {
    width: 70px;
    height: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.firm-name {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.1;
    color: #B22222;
    -webkit-text-stroke: 0.7px black;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

.firm-name .line {
    white-space: nowrap;
}

.separator-line {
    height: 2px;
    background-color: #9ca3af;
    margin: 8px 0;
    border-radius: 1px;
    width: 100%;
    flex-shrink: 0;
}

.tagline {
    font-weight: 600;
    font-size: 0.8rem;
    color: #374151;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    letter-spacing: 0.12em;
}


@media (max-width: 480px) {
    .logo-container {
        gap: 12px;
        padding: 10px 12px;
        border-width: 2px;
        transform: scale(0.8);
    }

    .logo-image {
        width: 80px;
    }

    .firm-name {
        font-size: 1.6rem;
    }

    .tagline {
        font-size: 0.9rem;
        letter-spacing: 0.1em;
    }
}

.nav-links {
    list-style: none;
    display: flex;
    font-size: 1.3rem;
    gap: 30px;
    margin: 0;
}

footer hr {
    display: none;
    align-self: center;
    width: 90%;
    color: #ccc;
    border: 1px solid #ccc;
    outline: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #1a3d6b;
    text-underline-offset: 6px;
    text-decoration: 2px underline #1a3d6b;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        /* color: #ffffff; */
    }

    .contactus {
        align-items: center;
    }

    footer hr {
        display: block;
    }

    .navbar .nav-links {
        gap: 0px;
        flex-direction: column;
        width: 100%;
        display: none;
        background-color: #ffffff;
        margin-top: 15px;
        padding: 0;
    }

    .navbar .nav-links li a {
        color: #333;
    }

    .nav-links.show {
        display: flex;
    }

    .navbar .nav-links li {
        text-align: center;
        padding: 20px 0;
        border-top: 1px solid #eee;
    }

    footer .nav-links {
        justify-content: center;
        align-items: center;
    }
}

.hero h1,
.hero p,
.hero a {
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #f4b400;
    color: white;
    border: none;
    text-decoration: none;
    border-radius: 5px;
}

.about,
.blogs,
.team,
.contact,
.blog-details,
.login,
.dashboard,
.blog-edit,
.team-edit {
    max-width: 1200px;
    margin: 5rem auto;
    /* margin: 145px auto; */
    padding: 0 20px;
    text-align: center;
}

.blog-details {
    text-align: left;
    justify-content: left;
}

.blog-grid,
.team-grid {
    display: grid;
    margin: 1rem auto;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.blog-post,
.team-member {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 16px;
    align-items: center;
    text-align: center;
    border: none;
    border-bottom: 4px solid #3498db;
    /* border-left: 4px solid #3498db; */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.team-member p {
    text-align: center;
}

/* .date {
    position: absolute;
    top: 5px;
    right: 8px;
    font-style: italic;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    padding: 0;
    color: #333;
} */

.more-link {
    text-decoration: none;
    color: #3498db;
    font-weight: 700;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.more-link:hover {
    color: #226694;
}

.about_sec {
    display: flex;
    width: 50%;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact form,
.login form,
.blog-edit form,
.team-edit form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto;
}

.contact form label,
.login form label,
.blog-edit form label,
.team-edit form label {
    text-align: left;
}

.contact form input,
.contact form textarea,
.login form input,
.blog-edit form input,
.blog-edit form textarea,
.team-edit form input,
.team-edit form textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.logout,
.deleteBtn,
/* .contact form button, */
.login form button,
.blog-edit form button,
.team-edit form button,
.blog-post button,
.blog-edit button,
.team-edit button,
.team-member button {
    padding: 0.75rem;
    background: #1a3c6e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition-duration: 0.3s;
}

.actionBtns {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.deleteBtn button:hover {
    background: #B71C1C;
    transition-duration: 0.3s;
}

a.logout {
    background: none;
    color: #1a3c6e;
    padding: 0.75rem 1.5rem;
    transition-duration: 0.3s;
}

a.logout:hover {
    color: #1a3c6e;
    transition-duration: 0.3s;
}

.team-edit form button:hover,
.login form button:hover {
    background: #3b72c3;
    transition-duration: 0.3s;
}

.success,
.error {
    color: green;
    font-weight: bold;
}

.error {
    align-self: center;
    color: red;
}

footer {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 50px;
    bottom: 0;
    padding: 1rem;
    color: white;
    background: #3fb6ec;
}

footer p {
    text-align: left;
}

footer a {
    text-decoration: none;
}

footer .nav-links {
    gap: 15px;
    flex-direction: column;
    display: flex;
}

footer .nav-links li a {
    color: white !important;
}

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

.contactus {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    /* width: 20%; */
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 5px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: left;
}

.disclaimer-text {
    margin-bottom: 1.5rem;
}

.disclaimer-text a {
    text-decoration: none;
    color: #2980b9;
}

.disclaimer-text h3 {
    margin-top: 1rem;
}

.disclaimer-text ul {
    margin: 1rem 0;
    padding-left: 20px;
}

.modal-content .cta-button {
    cursor: pointer;
    display: block;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    /* text-align: center; */
    color: white;
    padding: 0 20px;
    background: url('assets/hero-section.png') center center/cover no-repeat;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
    z-index: 1;
    text-align: right;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 25px;
    max-width: 700px;
    z-index: 1;
    text-align: right;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    color: white;
    background-color: #3498db;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #226694;
}

/* Responsive Text Scaling */
@media (max-width: 768px) {
    .hero {
        background-position: 40% 50% !important;
        align-items: center;
        text-align: center;
    }

    .hero h1,
    .hero p {
        width: 100%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 10px 24px;
        font-size: 0.95rem;
    }

    .navbar .nav-links li:last-child {
        border-bottom: 1px solid #eee;
    }

    footer {
        flex-direction: column;
    }
}

.view-all {
    text-align: center;
    margin-top: 1.5rem;
}

.va-cta-button {
    background-image: linear-gradient(to right, #1FA2FF 0%, #12D8FA 51%, #1FA2FF 100%);
    border: none;
    cursor: pointer;
    outline: none;
    text-decoration: none;
}

.va-cta-button {
    margin: 10px;
    padding: 15px 45px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 10px #33333380;
    border-radius: 10px;
    display: inline-block;
}

.va-cta-button:hover {
    background-position: right center;
    color: #fff;
    text-decoration: none;
}


/* .va-cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.va-cta-button:hover {
    background-color: #0056b3;
} */

.about {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    gap: 40px;
    flex-wrap: wrap;
}

.about_sec {
    flex: 1 1 45%;
    max-width: 600px;
}

.about_sec img {
    width: 100%;
    border-radius: 8px;
    /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); */
}

.about_sec2 {
    text-align: center;
}

.vision-mission-section {
    padding: 60px 20px;
}

.vision-mission-section .container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.vision-mission-section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #333;
}

.vmv-cards {
    display: flex;
    gap: 20px;
    flex-direction: column;
    justify-content: center;
}

.vmv-card-top {
    display: flex;
    width: 100%;
    flex-direction: row;
    gap: 30px;
}

.vmv-card {
    background-image: linear-gradient(45deg, #007bff0d, #007bff26);
    border-radius: 10px;
    padding: 30px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* flex: 1 1 300px; */
    /* max-width: 350px; */
    text-align: left;
}

.vmv-card h3 {
    color: #005b96;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.vmv-card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}


h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    display: inline-block;
    padding-bottom: 5px;
}

.about_sec p {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

.about-services {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 50px;
    padding: 30px;
    margin: 0;
}

.about-services li {
    position: relative;
    display: flex;
    cursor: grab;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 220px;
    gap: 14px;
    border: none;
    border-bottom: 4px solid #3498db;
    border-right: 4px solid #3498db;
    color: #000;
    padding: 20px 15px;
    border-radius: 8px;
    /* background: radial-gradient(circle farthest-corner at 6.3% 21.8%, #81d4fa 0%, #0288d1 90%); */
    text-align: center;
    box-shadow: 5px 5px 10px rgba(28, 28, 28, 0.35);
    overflow: hidden;
    z-index: 0;
    transition: all 0.3s ease-in-out;
}

.about-services li:hover {
    transform: translateY(-10px);
}

.about-services img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.about-services span {
    font-size: 16px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .about {
        flex-direction: column;
        padding: 40px 20px;
    }

    .about_sec {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .about_sec h2 {
        font-size: 28px;
    }

    .about_sec p,
    .about_sec ul {
        font-size: 15px;
    }

    nav ul {
        display: none;
    }

    .menu_slider {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        z-index: 1000;
    }

    .menu_slider ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        list-style: none;
        padding: 0;
    }

    .vmv-cards {
        flex-wrap: wrap;
    }

    .vmv-card-top {
        flex-direction: column;
    }
}

/* Blog Slider Styles */
.blog-slider {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 2rem auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-track {
    display: flex;
    border-radius: 16px;
    transition: transform 0.5s cubic-bezier(0.4, 0.2, 0.2, 1);
    width: 100%;
    overflow: hidden;
}

.blog-slide {
    position: relative;
    min-width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
    text-align: left;
    display: none;
    justify-content: center;
    background: rgba(57, 165, 236, 0.15);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1.5px solid rgba(57, 165, 236, 0.15);
    box-shadow: 0 8px 32px 0 rgba(31, 162, 255, 0.18);
    padding: 30px 15px;
    border-radius: 16px;
}

.blog-slide.active {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.slider-prev,
.slider-next {
    line-height: 1;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 35px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 10px;
    transition: background 0.2s;
    z-index: 2;
}

.slider-prev:hover,
.slider-next:hover {
    background: #226694;
}

@media (max-width: 768px) {
    .blog-slider {
        max-width: 98vw;
    }

    .slider-prev,
    .slider-next {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
}

.slick-initialized .slick-slide {
    margin: 0 10px;
}

.slick-slide h3 {
    margin-bottom: 20px;
}