/* Custom CSS for the Expertise page */

/* Import core styles from the main site for consistency */
@import url('style.css');

/* Main Expertise Hero Section */
.expertise-hero-section {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(rgba(13, 27, 42, 0.9), rgba(13, 27, 42, 0.9)),
        url('https://i.postimg.cc/KzcMSBGT/image.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8vh 5% 0;
}

.expertise-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    color: var(--gold);
    line-height: 1.2;
    font-weight: 700;
}

.expertise-hero-text {
    font-size: clamp(1rem, 2vw, 1.3rem);
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--text);
    opacity: 0.9;
}

/* Main Expertise Grid (Core Practice Areas) */
.main-expertise-section {
    background-color: var(--secondary);
    padding: 5rem 0;
}

.main-expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.expertise-card-dynamic {
    background: var(--primary);
    padding: 2rem 1rem;
    border-top: 3px solid transparent;
    /* Placeholder for animation */
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.expertise-card-dynamic:hover {
    transform: translateY(-5px);
    border-top-color: var(--gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.expertise-card-dynamic .card-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.expertise-card-dynamic:hover .card-icon {
    transform: scale(1.1);
}

.expertise-card-dynamic .card-title-dynamic {
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 0;
    line-height: 1.2;
}

/* Cross Border Solutions Section (Interactive Tabs) */
.cross-border-section {
    background-color: var(--primary);
    padding: 5rem 0;
}

.tab-interface {
    margin-top: 3rem;
}

.tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid rgba(200, 169, 126, 0.2);
    margin-bottom: 2rem;
    justify-content: center;
}

.tab-button {
    background: transparent;
    border: none;
    color: var(--text);
    padding: 1rem 1.5rem;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.tab-button.active {
    color: var(--gold);
    background: rgba(200, 169, 126, 0.05);
}

.tab-button:not(.active):hover {
    color: var(--gold);
}

/* Underline animation for active tab */
.tab-button::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.tab-button.active::after {
    width: 100%;
}

.tab-content {
    background: var(--secondary);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border-radius: 4px;
}

.tab-panel {
    display: none;
    /* Hidden by default */
    animation: fadeIn 0.5s ease-out;
}

.tab-panel.active {
    display: block;
    /* Shown when active */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-panel-title {
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(200, 169, 126, 0.3);
    padding-bottom: 0.75rem;
}

.country-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.country-list li {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text);
    position: relative;
    padding-left: 1.5rem;
    opacity: 0.9;
}

.country-list li::before {
    content: '\2022';
    /* Bullet point */
    color: var(--gold);
    font-size: 1.5rem;
    line-height: 1;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Modal styling */
.expertise-modal {
    display: none;
    /* Hidden by default, shown by JS */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
}

.expertise-modal-content {
    background-color: var(--secondary);
    margin: 10vh auto;
    padding: 3rem;
    width: 90%;
    max-width: 700px;
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid rgba(200, 169, 126, 0.2);
    animation: modalFadeIn 0.4s ease-out;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 5px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-expertise-modal {
    position: absolute;
    right: 25px;
    top: 25px;
    font-size: 28px;
    font-weight: bold;
    color: var(--gold);
    cursor: pointer;
    transition: var(--transition);
}

.close-expertise-modal:hover {
    color: var(--text);
}

.modal-title {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 1px solid rgba(200, 169, 126, 0.3);
    padding-bottom: 0.75rem;
}

.modal-body p {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 1.5rem;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.modal-body ul li {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.modal-body ul li::before {
    content: '\2022';
    color: var(--gold);
    font-size: 1.5rem;
    line-height: 1;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .expertise-modal-content {
        padding: 2rem;
        width: 95%;
    }

    .close-expertise-modal {
        right: 15px;
        top: 15px;
    }
}

/* Responsive Design for Tabs */
@media (max-width: 768px) {
    .tab-list {
        flex-direction: column;
        align-items: center;
        border-bottom: none;
    }

    .tab-button {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(200, 169, 126, 0.2);
    }

    .tab-button.active::after {
        width: 0;
    }

    .tab-button:not(.active):hover {
        background: rgba(200, 169, 126, 0.1);
    }

    .tab-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tab-button {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }

    .main-expertise-grid {
        gap: 1rem;
    }
}