/*
Theme Name: Luật Nguyễn Chiến
Theme URI: https://mdigi.vn/
Author: MDIGI
Author URI: https://mdigi.vn/
Description: Đây là theme được thiết kế riêng cho Luật Nguyễn Chiến.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: manhduc
Tags: custom-background, custom-header, custom-menu, featured-images, theme-options, translation-ready
*/

/* Bắt đầu xây dựng lại style bằng Bootstrap */
:root {
    --primary-color: #b1976b;
    --dark-wine: #840B19;
    --graphite: #343432;
    --graphite-light: #403A3E;
    --gold-ochre: #90775F;
    --gold-harvest-light: #A3885D;
    --gold-harvest-dark: #C88C2D;
    --gold-sunflower: #E3B03B;
    --gold-royal: #F4D35E;
    --gold-saffron: #EEBA0B;
    --gold-dark-ochre: #C36F09;
    --text-white: #ffffff;
    --text-dark: #333333;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Times New Roman', Times, serif;
}

/* Đồng bộ hóa nút bấm trên toàn bộ hệ thống */
.btn,
.gdlr-button,
input[type="button"],
input[type="submit"] {
    font-family: 'Montserrat', sans-serif !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    font-size: 0.85rem !important;
    padding: 12px 28px !important;
    border-radius: 2px !important;
    border: none !important;
    transition: all 0.4s ease !important;
    text-decoration: none !important;
    color: #ffffff !important;
    background: linear-gradient(180deg, var(--gold-harvest-light) 0%, var(--gold-harvest-dark) 100%) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover,
.gdlr-button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    background: linear-gradient(180deg, var(--gold-harvest-dark) 0%, var(--gold-harvest-light) 100%) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.btn i {
    margin-left: 10px;
}

/* Header Styles */
.header-main {
    background-color: #403a3e !important;
}

.header-main .nav-link {
    color: #fff !important;
}

.navbar-brand img {
    max-height: 60px;
    width: auto;
}

.nav-link {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: #fff !important;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-harvest-dark) !important;
}

/* Hover Dropdown for Desktop */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover>.dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.3s ease-in-out;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.dropdown-menu {
    border-radius: 0;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0;
    background: #fff;
    overflow: hidden;
    min-width: 220px;
    /* Cố định chiều rộng tối thiểu để tránh bị dãn */
}

.dropdown-item {
    font-family: 'Times New Roman', Times, serif !important;
    padding: 15px 25px !important;
    /* Tăng padding mặc định cho cân đối */
    font-size: 1.1rem !important;
    transition: all 0.3s ease;
    color: #fff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    width: 100%;
}

/* Stepping Shades from the design image */
.dropdown-menu li:nth-child(1) .dropdown-item {
    background-color: #94999d !important;
}

.dropdown-menu li:nth-child(2) .dropdown-item {
    background-color: #adb2b5 !important;
}

.dropdown-menu li:nth-child(3) .dropdown-item {
    background-color: #c6cace !important;
}

.dropdown-menu li:nth-child(4) .dropdown-item {
    background-color: #dee2e5 !important;
}

.dropdown-menu li:nth-child(5) .dropdown-item {
    background-color: #f1f3f4 !important;
    color: #333 !important;
}

.dropdown-menu li:nth-child(6) .dropdown-item {
    background-color: #fff !important;
    color: #333 !important;
}

.dropdown-item:hover {
    background: var(--dark-wine) !important;
    color: #fff !important;
    padding-left: 30px !important;
    /* Dịch chuyển nhẹ nhưng đã có min-width ổn định */
}



.rounded-start-pill {
    border-top-left-radius: 50px !important;
    border-bottom-left-radius: 50px !important;
}

.rounded-end-pill {
    border-top-right-radius: 50px !important;
    border-bottom-right-radius: 50px !important;
}

/* Slider Styles */
#bootstrap-slider .ls-2 {
    letter-spacing: 2.5px;
}

#bootstrap-slider .btn:hover {
    background: linear-gradient(180deg, var(--gold-harvest-dark) 0%, var(--gold-harvest-light) 100%) !important;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    #bootstrap-slider .carousel-item {
        height: 600px !important;
        padding-top: 80px;
    }

    #bootstrap-slider .display-1 {
        font-size: 3rem !important;
    }

    #bootstrap-slider p {
        font-size: 1rem !important;
    }
}

/* Footer Custom Design Styles */
.footer-custom {
    font-family: 'Montserrat', sans-serif;
}

.footer-custom-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.3rem;
    font-weight: bold;
    text-transform: none;
}

.footer-custom-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.8);
}

.hover-gold:hover {
    color: #ffc107 !important;
}

.footer-contact-form input,
.footer-contact-form textarea {
    background-color: #ffffff;
    border: none;
    font-size: 0.85rem;
    padding: 8px 12px;
}

.footer-contact-form .btn-danger:hover {
    background-color: #c2185b !important;
}

.footer-custom i {
    background-color: transparent;
    transition: all 0.3s;
}

li:hover i,
li:hover a i {
    color: #ffc107 !important;
}

.footer-icon-box {
    width: 30px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-shrink: 0;
}

/* Attorney/Team Hover Overlay */
.gdlr-attorney-thumbnail {
    position: relative;
    overflow: hidden;
}

.gdlr-attorney-thumbnail::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(177, 151, 107, 0.3);
    /* Gold bronze 30% overlay */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gdlr-attorney-item:hover .gdlr-attorney-thumbnail::after {
    opacity: 1;
}

/* Service Box Hover Swap */
.gdlr-column-service-item {
    transition: all 0.3s ease;
}

.gdlr-column-service-item:hover {
    background-color: var(--primary-color) !important;
    transform: translateY(-5px);
}

.gdlr-column-service-item:hover i,
.gdlr-column-service-item:hover h3,
.gdlr-column-service-item:hover p {
    color: white !important;
}

.footer-icon-box i {
    font-size: 1.1rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

/* Section Về chúng tôi - Premium Design */
.about-section-premium {
    background: linear-gradient(150deg, #ebdaa4 0%, #cc8f34 40%, #343432 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin: 60px 0;
}

.about-section-premium .about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 1;
}

.about-section-premium .container {
    position: relative;
    z-index: 2;
}

.about-section-premium h2 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.8rem;
    font-weight: bold;
    color: #ffffff;
}

.about-section-premium p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* Section Slider - Premium Design */
.slider-premium {
    background: linear-gradient(45deg, #151310 0%, #2a2520 10%, #352f28 20%, #5c5040 35%, #5c5040 65%, #352f28 80%, #2a2520 90%, #151310 100%);
    min-height: 90vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.slider-premium .container {
    position: relative;
    z-index: 5;
    height: 90vh;
}

.slider-premium .row {
    height: 100%;
}

.slider-premium .slider-title {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(180deg, #FFF9D0 0%, #E3B03B 50%, #83663E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 2px 10px rgba(0, 0, 0, 0.8));
    font-size: 5rem;
}

.slider-premium .slider-image-col {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    height: 100%;
}

.slider-premium .slider-image {
    max-height: 80%;
    width: auto;
    object-fit: contain;
    object-position: bottom right;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

@media (max-width: 991.98px) {

    .slider-premium,
    .slider-premium .container {
        height: auto;
        min-height: auto;
    }

    .slider-premium {
        text-align: center;
        padding: 60px 0 0 0;
    }

    .slider-premium .slider-image-col {
        justify-content: center;
    }

    .slider-premium .slider-image {
        margin-top: 30px;
        max-height: 400px;
    }

    .slider-premium .slider-title {
        font-size: 3rem;
    }
}

/* Section Philosophy - Premium Design */
.philosophy-premium {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 100px 0;
}

.philosophy-premium .philosophy-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(150deg, rgba(235, 218, 164, 0.6) 0%, rgba(204, 143, 52, 0.6) 40%, rgba(52, 52, 50, 0.6) 100%);
    z-index: 1;
}

.philosophy-premium .container {
    position: relative;
    z-index: 2;
}

.philosophy-premium .philosophy-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 3.2rem;
    font-weight: bold;
    margin-bottom: 4rem;
    color: #ffffff;
}

.philosophy-premium .philosophy-item {
    text-align: center;
}

.philosophy-premium .philosophy-icon-box {
    width: 140px;
    height: 140px;
    background: #ffffff;
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(199, 158, 96, 0.4);
    /* Soft gold border */
    box-shadow: 0 0 0 10px rgba(199, 158, 96, 0.35), 0 10px 30px rgba(0, 0, 0, 0.25);
    /* Stronger spreading glow */
}

.philosophy-premium .philosophy-icon-box i {
    font-size: 4rem;
    color: #a3885d;
}

.philosophy-premium .philosophy-item-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.philosophy-premium .philosophy-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.95;
    text-align: justify;
}

/* Section Collage - Premium Grid */
.collage-title {
    font-size: 2.2rem;
    text-transform: uppercase;
    font-family: 'Times New Roman', Times, serif !important;
}

.collage-btn {
    background: linear-gradient(180deg, #da9e48 0%, #b3853f 100%);
    border: none !important;
    border-radius: 4px !important;
    padding: 8px 18px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.85rem !important;
    text-transform: none !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.collage-btn:hover {
    background: linear-gradient(180deg, #b3853f 0%, #da9e48 100%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.18);
    color: white !important;
}

.collage-content {
    border-left: 4px solid #840B19 !important;
    padding-left: 1.5rem !important; /* ps-4 equivalent */
}

@media (max-width: 767.98px) {
    .collage-content {
        border-left: none !important;
        padding-left: 0 !important;
    }
}

/* Section Consulting Fields - Premium Specific Design */
.consulting-header-wrapper {
    background-color: #f7f7f7;
    padding: 50px 0;
}

.section-title-container {
    display: inline-block;
}

.section-title-container .divider-top {
    width: 100%;
    height: 3px;
    background: #840B19;
}

.section-title-container .section-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.8rem;
    font-weight: bold;
    color: #840B19;
    margin-top: 5px;
    margin-bottom: 0;
    letter-spacing: 2px;
}

.consulting-content-full {
    background-attachment: fixed;
    position: relative;
}

.border-y-gold-top,
.border-y-gold-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 8px;
    background: #a3885d;
    z-index: 5;
}

.border-y-gold-top {
    top: 0;
}

.border-y-gold-bottom {
    bottom: 0;
}

.consulting-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.z-index-3 {
    z-index: 3;
}

/* Parent Cards L1 View */
.parent-card-wrapper {
    position: relative;
    padding-bottom: 15px;
    padding-right: 15px;
    cursor: pointer;
}

.card-shadow-layer {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #a3885d 0%, #2a2520 100%);
    z-index: 1;
}

.consulting-card {
    background: #ffffff;
    border-radius: 0;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.consulting-card.parent-card .card-inner {
    min-height: 110px;
}

.consulting-card.parent-card .icon-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a3885d;
    font-size: 3rem;
}

.consulting-card.parent-card .field-name {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.8rem;
    color: #a3885d;
    font-weight: bold;
}

/* L2 View Styles - Gold/Bronze */
.parent-selected-wrapper {
    position: relative;
    padding-bottom: 15px;
    padding-right: 15px;
}

.card-shadow-layer-gold {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #a3885d 0%, #2a2520 100%);
    z-index: 1;
}

.selected-parent-card .card-inner {
    min-height: 110px;
}

.icon-box-gold {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a3885d;
    font-size: 3.5rem;
}

.parent-name-gold {
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.5rem;
    color: #a3885d;
    font-weight: bold;
}

.btn-back-square {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #a3885d;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
}

.child-card-wrapper {
    position: relative;
    padding-bottom: 8px;
    padding-right: 8px;
    display: block;
}

.card-shadow-layer-gold-sm {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #a3885d 0%, #2a2520 100%);
    z-index: 1;
}

.child-card .card-inner {
    min-height: 85px;
    padding: 1.25rem !important;
}

.icon-box-gold-sm {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a3885d;
    font-size: 2.2rem;
}

.child-name-gold {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.15rem;
    color: #a3885d;
    font-weight: bold;
    line-height: 1.3;
}

/* Images in boxes */
.consulting-card img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* General Layout Fixes */
.consulting-grid {
    display: none;
    transition: opacity 0.25s ease;
}

.consulting-grid.active {
    display: block;
}

.icon-box img,
.icon-box-gold img,
.icon-box-gold-sm img {
    filter: none;
    /* Restore original colors */
}

@media (max-width: 767.98px) {
    .parent-name-gold {
        font-size: 2rem;
    }

    .icon-box-gold {
        width: 60px;
        font-size: 2.5rem;
    }
}

/* ================================= */
/* FOOTER CF7 STYLES                 */
/* ================================= */
.footer-contact-form .wpcf7-form-control-wrap {
    display: block;
}

.footer-contact-form .wpcf7-submit {
    background-color: #d81b60 !important;
    border: none !important;
    color: white;
    transition: 0.3s ease;
}

.footer-contact-form .wpcf7-submit:hover {
    background-color: #b0154e !important;
}

.footer-contact-form textarea.wpcf7-textarea {
    height: 85px;
}

/* ================================= */
/* TEAM SECTION STYLES               */
/* ================================= */
.team-header-wrapper {
    padding-bottom: 20px !important;
}

.team-section-slider {
    background-color: #000;
}

/* Team Gold Bars Removed */

/* Info Overlay Styles */
.team-card-inner {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    /* Form ảnh 3x4 */
    background: #111;
}

.team-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 3;
    border-top: 4px solid #a3885d;
}

.team-card:hover .team-info-overlay {
    opacity: 1;
    transform: translateY(0);
}

.team-card:hover .team-thumbnail {
    transform: scale(1.1);
}

.team-card:hover .team-card-inner {
    border-color: #a3885d;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
}

/* Slider Controls */
.team-slider .slick-prev,
.team-slider .slick-next {
    width: 60px;
    height: 60px;
    z-index: 10;
    background: rgba(163, 136, 93, 0.2);
    border-radius: 50%;
    transition: background 0.3s ease;
}

.team-slider .slick-prev:hover,
.team-slider .slick-next:hover {
    background: rgba(163, 136, 93, 0.8);
}

.team-slider .slick-prev {
    left: -70px;
}

.team-slider .slick-next {
    right: -70px;
}

.team-slider .slick-prev:before,
.team-slider .slick-next:before {
    font-family: 'FontAwesome';
    font-size: 35px;
    color: #fff;
}

.team-slider .slick-prev:before {
    content: "\f104";
}

.team-slider .slick-next:before {
    content: "\f105";
}

@media (max-width: 1300px) {
    .team-slider .slick-prev {
        left: 10px;
    }

    .team-slider .slick-next {
        right: 10px;
    }
}

/* ================================= */
/* NEWS SECTION STYLES               */
/* ================================= */
.news-card-wrapper {
    position: relative;
    padding-bottom: 15px;
    padding-right: 15px;
}

/* Simulate the 3D staggered brown shadow frame */
.news-shadow {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #a3885d 0%, #76603a 100%);
    filter: blur(8px);
    opacity: 0.85;
    z-index: 1;
}

.news-card {
    border: 1px solid #e0e0e0;
    z-index: 2;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image-wrapper {
    overflow: hidden;
}

.news-image-wrapper img {
    transition: transform 0.5s ease;
}

.news-card:hover .news-image-wrapper img {
    transform: scale(1.05);
}

.col-lg-6 .news-image-wrapper {
    height: 300px;
    /* Fixed height for large image */
}

.row.g-0 .col-5 .news-image-wrapper {
    height: 110px;
    /* Reduced height for small images */
}

.news-date-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(163, 83, 89, 0.9);
    color: white;
    padding: 8px 15px;
    font-size: 1.1rem;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 1px;
}

.news-date-badge-sm {
    padding: 5px 10px;
    font-size: 0.85rem;
}

.news-title a {
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #a3885d !important;
}

/* ================================= */
/* FAQ ACCORDION STYLES              */
/* ================================= */
#faqAccordion .accordion-button:not(.collapsed) {
    background-color: #ffffff !important;
    color: var(--dark-wine, #840B19) !important;
    box-shadow: none !important;
}

#faqAccordion .accordion-button:focus {
    box-shadow: none !important;
    border-color: rgba(0, 0, 0, .125);
}

#faqAccordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23840b19'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

/* ================================= */
/* SERVICES SECTION STYLES           */
/* ================================= */
.service-card-wrapper {
    position: relative;
    padding-bottom: 12px;
    padding-right: 12px;
    transition: transform 0.3s ease;
}

.service-card-wrapper:hover {
    transform: translateY(-5px);
}

.service-shadow-layer {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #a3885d 0%, #2a2520 100%);
    z-index: 1;
}

.service-card {
    position: relative;
    z-index: 2;
    border: none;
    min-height: 100px;
    transition: box-shadow 0.3s ease;
}

.service-card-wrapper:hover .service-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-icon-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.service-name {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.1rem;
    font-weight: bold;
    color: #a3885d;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.service-card-wrapper:hover .service-name {
    color: var(--dark-wine, #840B19);
}

/* Taxonomy Grouping Styles */
.taxonomy-group {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.taxonomy-heading {
    position: relative;
    padding-bottom: 0;
}

/* ================================= */
/* BLOG & NEWS STYLES                */
/* ================================= */
.blog-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.transition-all {
    transition: all 0.4s ease;
}

.hover-wine:hover {
    color: var(--dark-wine) !important;
}

.btn-read-more {
    color: var(--dark-wine);
    letter-spacing: 1px;
}

.btn-read-more:hover {
    color: var(--gold-harvest-dark);
    padding-left: 5px;
}

/* Pagination Styling */
.custom-pagination ul {
    border: none;
    display: flex;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.custom-pagination ul li a,
.custom-pagination ul li span {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.custom-pagination ul li span.current {
    background: var(--dark-wine);
    color: white;
    border-color: var(--dark-wine);
}

.custom-pagination ul li a:hover {
    background: var(--gold-harvest-light);
    color: white;
    border-color: var(--gold-harvest-light);
}

/* Sidebar Widgets consistency */
.blog-sidebar .widget {
    margin-bottom: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 2px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.blog-sidebar .gdlr-widget-title {
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.blog-sidebar .gdlr-widget-title:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--dark-wine);
}

/* Single Post Specifics */
.social-icon-box:hover {
    background-color: var(--dark-wine) !important;
    color: white !important;
}

.border-wine {
    border-color: var(--dark-wine) !important;
}

/* Content refinement */
.ps-post-content p {
    margin-bottom: 1.5rem;
}

.ps-post-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 4px;
}

/* WP Tags conversion */
.tags-list a {
    display: inline-block;
    padding: 3px 12px;
    background: #eee;
    color: #555;
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-right: 5px;
    transition: all 0.3s;
}

.tags-list a:hover {
    background: var(--dark-wine);
    color: white;
}

/* Comment Form Bootstrap consistency */
#commentform .comment-form-author,
#commentform .comment-form-email,
#commentform .comment-form-url,
#commentform .comment-form-comment {
    margin-bottom: 1rem;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
    width: 100%;
    border: 1px solid #ddd;
    padding: 10px 15px;
    outline: none;
}

#commentform input:focus,
#commentform textarea:focus {
    border-color: var(--dark-wine);
}

#commentform .submit {
    background: var(--dark-wine);
    color: white;
    border: none !important;
    padding: 12px 30px !important;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

#commentform .submit:hover {
    background: var(--gold-harvest-dark);
}

/* ================================= */
/* SIDEBAR & WIDGET STYLES           */
/* ================================= */
.service-sidebar-item:hover {
    background-color: #fff !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.border-transparent {
    border-color: transparent !important;
}

.hover-border-wine:hover {
    border-color: var(--dark-wine) !important;
}

.text-wine {
    color: var(--dark-wine);
}

.object-fit-contain {
    object-fit: contain !important;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================= */
/* CASE STUDIES & VU AN STYLES       */
/* ================================= */
.btn-tax-pill {
    background: #f8f9fa;
    color: #444;
    border: 1px solid #eee;
    padding: 8px 25px !important;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-tax-pill:hover {
    background: var(--dark-wine);
    color: white !important;
    border-color: var(--dark-wine);
    box-shadow: 0 4px 10px rgba(132, 11, 25, 0.2);
}

.case-img-inner:hover {
    transform: scale(1.1);
}

/* ================================= */
/* CONTACT PAGE STYLES               */
/* ================================= */
.bg-wine {
    background-color: var(--dark-wine) !important;
}

.text-wine {
    color: var(--dark-wine) !important;
}

.btn-wine {
    background: var(--dark-wine);
    color: white;
}

.btn-wine:hover {
    background: var(--gold-harvest-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.border-gold {
    border-color: var(--gold-harvest-light) !important;
}

.focus-wine:focus {
    border-color: var(--dark-wine) !important;
    box-shadow: 0 0 0 0.25rem rgba(132, 11, 25, 0.1) !important;
}

.ls-1 {
    letter-spacing: 1px;
}

.social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    border-radius: 2px;
}

.social-btn:hover {
    background-color: var(--gold-harvest-light) !important;
    color: white !important;
    transform: translateY(-5px);
}

/* CF7 Refinement for Contact Page */
.contact-form-wrapper .wpcf7-form-control {
    display: block;
    width: 100%;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #dee2e6;
    appearance: none;
    border-radius: 0;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    margin-bottom: 15px;
}

.contact-form-wrapper .wpcf7-form-control:focus {
    border-color: var(--dark-wine) !important;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(132, 11, 25, 0.1) !important;
}

.contact-form-wrapper .wpcf7-submit {
    background: var(--dark-wine) !important;
    color: white !important;
    padding: 12px 40px !important;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    border: none !important;
    transition: all 0.3s;
    cursor: pointer;
}

.contact-form-wrapper .wpcf7-submit:hover {
    background: var(--gold-harvest-dark) !important;
    transform: translateY(-3px);
}

.contact-form-wrapper .wpcf7-spinner {
    position: absolute;
    bottom: 20px;
    left: 20px;
}

/* ================================= */
/* AWARDS & ACHIEVEMENTS STYLES      */
/* ================================= */
.award-intro-text {
    max-width: 800px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.award-card {
    background: #fff;
    border-radius: 4px;
    transition: all 0.4s ease;
}

.award-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

.award-icon-box {
    color: var(--gold-harvest-dark);
    background: #fdfdfd;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    border: 1px solid #f0f0f0;
}

.award-date {
    font-family: 'Times New Roman', Times, serif !important;
    font-weight: 700;
}

.award-desc {
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ================================= */
/* MOBILE SIDEBAR (OFFCANVAS) FIXES  */
/* ================================= */
.offcanvas-start {
    width: 100% !important;
    /* Full ra màn hình trên mobile */
    z-index: 9999;
    border-right: none !important;
}


.offcanvas-header {
    background: #fff;
    padding: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.offcanvas-header .custom-logo-link img {
    max-width: 160px !important;
    /* Fix logo quá to */
    height: auto !important;
}

.offcanvas-header .btn-close {
    opacity: 1 !important;
    background-size: 1.2rem;
    padding: 1rem;
    margin: 0;
    z-index: 10;
}

/* Fix Menu không bị xổ sẵn */
.mobile-menu-container .dropdown-menu {
    display: none !important;
    /* Mặc định ẩn */
    position: static !important;
    float: none !important;
    width: auto !important;
    /* Thay đổi từ 100% sang auto để nhận margin */
    border: none !important;
    box-shadow: none !important;
    background-color: #f9f9f9 !important;
    padding: 0 !important;
    margin: 5px 15px 10px 15px !important;
    /* Cân đối lề trái và phải (15px) */
    border-radius: 4px;
    /* Bo góc nhẹ cho đẹp */
    overflow: hidden;
}


/* Chỉ show khi click vào parent */
.mobile-menu-container .dropdown.show>.dropdown-menu,
.mobile-menu-container .dropdown.active>.dropdown-menu {
    display: block !important;
}

.mobile-menu-container .nav-item {
    border-bottom: 1px solid #eee;
}

.mobile-menu-container .nav-link {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 700;
    padding: 15px 20px !important;
    font-size: 1.1rem;
    color: #333 !important;
    text-transform: uppercase;
}

/* ================================= */
/* Custom Layout Background Style    */
/* ================================= */
.custom-layout-bg {
    background-color: #ffffff !important;
    position: relative;
    width: 100%;
}

.custom-layout-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/bg-2.png');
    background-size: auto;
    background-position: top left;
    background-repeat: repeat;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.custom-layout-content {
    position: relative;
    z-index: 1;
}

/* Remove backgrounds from inner sections to let the base background show through */
.custom-layout-content section:not(#team-section):not(#about-section),
.custom-layout-content .team-header-wrapper,
.custom-layout-content .consulting-header-wrapper,
.custom-layout-content .page-achievements,
.custom-layout-content #section-services-archive {
    background-color: transparent !important;
    background-image: none !important;
}

/* ================================= */
/* GIỚI THIỆU PAGE - CONTENT STYLES */
/* ================================= */
.gt-section-header {
    margin-top: 60px;
    margin-bottom: 25px;
}

.gt-wine-title {
    color: var(--dark-wine);
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.6rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    border-top: 3px solid var(--dark-wine);
    padding-top: 15px;
    display: inline-block;
}

.gt-content-para {
    text-align: justify;
    line-height: 1.9;
    margin-bottom: 20px;
    font-size: 1.02rem;
    color: #333;
}

.gt-content-para p {
    text-indent: 2em;
    margin-bottom: 15px;
}

.gt-achievements-box-wrapper {
    display: flex;
    gap: 35px;
    margin-top: 30px;
    margin-bottom: 15px;
    align-items: stretch;
}

.gt-achievements-title-box {
    min-width: 280px;
    max-width: 340px;
    border: none;
    border-top: 3px solid var(--dark-wine);
    border-left: 3px solid var(--dark-wine);
    padding: 30px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gt-achievements-title-box h2 {
    color: var(--dark-wine);
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.2rem;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.3;
    letter-spacing: 1px;
}

.gt-box-content {
    flex: 1;
}

@media (max-width: 768px) {
    .gt-wine-title {
        font-size: 1.25rem !important;
    }

    .gt-achievements-box-wrapper {
        flex-direction: column;
    }

    .gt-achievements-title-box {
        max-width: 100%;
    }

    .gt-achievements-title-box h2 {
        font-size: 1.25rem !important;
    }
}

/* ================================= */
/* LAWYER PROFILE DETAIL PAGE        */
/* ================================= */
.lawyer-detail-container {
    font-family: 'Montserrat', sans-serif;
    color: #333;
}

.lawyer-main-box h1,
.lawyer-main-box h2,
.lawyer-main-box h3,
.lawyer-main-box h4 {
    font-family: 'Times New Roman', Times, serif !important;
}

.lawyer-detail-container p,
.lawyer-detail-container span {
    text-align: justify;
}

.lawyer-main-box {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.07);
    padding: 60px;
    margin: 0 auto 50px auto;
    max-width: 1100px;
}

.lawyer-image-box {
    padding-right: 0;
}

.lawyer-image-box img {
    width: 100%;
    height: auto;
    border-radius: 4px; /* Simpler, sharper corners for premium look */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.lawyer-name {
    font-size: 3.8rem;
    color: #1a1a1a;
    margin-bottom: 5px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.lawyer-title {
    font-size: 1.3rem;
    color: var(--dark-wine, #840B19);
    font-weight: 600;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.lawyer-header-inner-box {
    border: 1px solid #eee;
    background: #fafafa;
    padding: 0;
    border-radius: 12px;
    margin-bottom: 50px;
    overflow: hidden;
}

.lawyer-header-inner-box .row {
    margin: 0;
}

.lawyer-header-inner-box .lawyer-image-box {
    padding: 0;
}

.lawyer-header-inner-box .lawyer-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    min-height: 380px;
}

.lawyer-header-info {
    padding: 40px 60px;
}

.lawyer-info-grid {
    border-top: 1px solid #ddd;
    padding-top: 30px;
    margin-top: 20px;
}

.info-separator {
    border-right: 1px solid #ddd;
}

.lawyer-meta-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lawyer-meta-list p {
    margin-bottom: 0;
    font-size: 1rem;
    color: #666;
}

.lawyer-meta-list strong {
    color: #1a1a1a;
    width: 60px;
    display: inline-block;
}

.linh-vuc-title-small {
    font-family: 'Times New Roman', Times, serif !important;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
    font-size: 1.1rem;
    color: var(--dark-wine);
    letter-spacing: 1px;
}

.linh-vuc-list {
    padding-left: 0;
    list-style: none;
    columns: 1;
}

.linh-vuc-list li {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: #555;
}

.linh-vuc-list li::before {
    content: "•";
    color: var(--dark-wine);
    margin-right: 10px;
    font-weight: bold;
}

/* Page Body Section */
.lawyer-main-box h2 {
    font-family: 'Times New Roman', Times, serif !important;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--dark-wine);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.content-separator {
    border-right: 1px solid #eee;
}

.education-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
    margin-bottom: 30px !important;
}

@media (min-width: 992px) {
    .lawyer-content-main {
        width: 62.5% !important;
        flex: 0 0 62.5% !important;
        max-width: 62.5% !important;
    }
    .lawyer-content-side {
        width: 37.5% !important;
        flex: 0 0 37.5% !important;
        max-width: 37.5% !important;
    }
}

@media (max-width: 991px) {
    .lawyer-main-box {
        padding: 30px;
    }

    .lawyer-header-info {
        padding: 30px 20px;
    }

    .lawyer-header-inner-box .lawyer-image-box img {
        min-height: 300px;
    }

    .lawyer-name {
        font-size: 2.22rem;
        margin-top: 20px;
    }

    .info-separator {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 25px;
        margin-bottom: 25px;
        padding-right: 0 !important;
    }

    .ps-4 {
        padding-left: 0 !important;
    }

    .content-separator {
        border-right: none;
        border-bottom: 1px solid #eee;
        margin-bottom: 40px;
        padding-bottom: 40px;
    }
}

/* Blog Filter Styles */
.form-control:focus,
.form-select:focus,
.btn:focus {
    box-shadow: none !important;
    outline: none !important;
    border-color: #ddd !important;
}

#blog-filter-form .form-control,
#blog-filter-form .form-select {
    height: 45px;
    font-size: 0.95rem;
}

#blog-filter-form .btn {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px !important;
}

/* Custom Pagination Styles */
.custom-pagination {
    border-top: 1px solid #ddd;
    padding-top: 30px;
}

.custom-pagination ul.page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    gap: 20px;
}

.custom-pagination ul.page-numbers li {
    display: inline-block;
}

.custom-pagination .page-numbers {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 10px 10px 0;
    display: block;
    position: relative;
    transition: all 0.3s ease;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-width: auto !important;
    height: auto !important;
    line-height: normal !important;
    text-align: center;
}

.custom-pagination .page-numbers.current,
.custom-pagination .page-numbers:hover {
    color: var(--dark-wine) !important;
}

.custom-pagination .page-numbers.current::before {
    content: "";
    position: absolute;
    top: -31px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: var(--dark-wine);
}

.custom-pagination .dots {
    color: #666;
}

.custom-pagination .next,
.custom-pagination .prev {
    font-family: inherit;
    font-weight: normal;
    font-size: 1.3rem;
}