/* ✅ Import Fonts */
@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Lato:wght@400;700&display=swap");

/* ✅ General Styles */
body {
    font-family: Lato, sans-serif;
}
h1, h2, h3 {
    font-family: Merriweather, serif;
}

/* ✅ Theme Colors */
.bg-custom-primary { background-color: #fefefe; }
.bg-custom-secondary { background-color: #f5f5f5; }
.bg-custom-accent { background-color: #996432; }
.text-custom-primary { color: #160d09; }
.text-custom-secondary { color: #6b7280; }
.text-custom-accent { color: #996432; }
.border-custom-accent { border-color: #996432; }

/* ✅ Buttons */
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ✅ Hover Effects */
.hover-underline {
    position: relative;
}
.hover-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #996432;
    transition: width 0.3s ease;
}
.hover-underline:hover::after {
    width: 100%;
}

/* ✅ Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #996432;
    border-radius: 10px;
    transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: #7d4e2b;
}

/* ✅ Swiper Navigation */
.swiper-button-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 50%;
    transition: background 0.3s ease-in-out;
}
.swiper-button-custom:hover {
    background: rgba(0, 0, 0, 0.8);
}
.swiper-button-prev-custom { left: 10px; }
.swiper-button-next-custom { right: 10px; }

@media (max-width: 640px) {
    .swiper-button-prev-custom { left: -15px; }
    .swiper-button-next-custom { right: -15px; }
}

/* ✅ Swiper */
.swiper-wrapper { display: flex; align-items: stretch; }
.swiper-slide { display: flex; justify-content: center; align-items: center; height: auto; min-height: 100%; }

/* ✅ Cards */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: perspective(1000px) rotateX(3deg) rotateY(3deg);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

/* ✅ Sticky Sidebar */
@media (min-width: 600px) {
    .sticky-sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 120px;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        transition: all 0.3s ease-in-out;
    }
}

/* ✅ Flip Card Effect */
.practice-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    perspective: 1000px;
}
.practice-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.practice-card-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}
.practice-card:hover .practice-card-inner {
    transform: rotateY(180deg);
}
.practice-card-front,
.practice-card-back {
    backface-visibility: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
}
.practice-card-front { background-color: #ffffff; }
.practice-card-back {
    background-color: #996432;
    color: white;
    transform: rotateY(180deg);
}

/* ✅ Attorney Cards */
.attorney-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* background: linear-gradient(135deg, #2d2d2d, #424242); */
}
.attorney-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
