/* ============ FOOTER ============ */
.main-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.main-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/darkbackground.png') center/500px;
    opacity: 0.06;
    z-index: -1;
    filter: invert(1);
}

.footer-top {
    padding: 3.5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-logo h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
}

.footer-col p {
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: rgba(197, 160, 89, 0.15);
    color: var(--gold);
}

/* Footer headings with gold accent */
.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.footer-col ul li {
    margin-bottom: 0.625rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.contact-info li {
    display: flex;
    gap: 0.625rem;
    margin-bottom: 0.875rem !important;
}

.contact-info li i {
    color: var(--gold);
    margin-top: 3px;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.footer-map {
    width: 100%;
    height: 180px;
    filter: grayscale(30%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 1.5rem;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-content p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold);
}

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    background: var(--gold);
    color: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all var(--transition-base);
    z-index: 300;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
}

/* ============ LIGHTBOX ============ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    color: var(--white);
    font-size: 1.25rem;
    padding: 1rem;
    transition: color var(--transition-fast);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--gold);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ============ PAGE BANNER ============ */
.page-banner {
    background: var(--primary-dark);
    padding: 4.5rem 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(197, 160, 89, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(197, 160, 89, 0.04) 0%, transparent 50%);
}

.page-banner h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    position: relative;
}

.page-banner h1::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin: 0.75rem auto 0;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    position: relative;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb span {
    color: var(--gold);
}

/* ============ TABLES ============ */
.table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.data-table thead {
    background: var(--primary-dark);
    color: var(--white);
}

.data-table th,
.data-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.data-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

.data-table tbody tr:hover {
    background: var(--primary-lighter);
}

/* ============ CARDS ============ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.card:hover .card-image img {
    transform: scale(1.06);
}

.card-content {
    padding: 1.25rem;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.625rem;
}

.card-content p {
    color: var(--gray-600);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

/* ============ FORMS ============ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-size: 0.875rem;
    font-family: var(--font-heading);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: var(--font-body);
    transition: all var(--transition-fast);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ============ TABS ============ */
.tab-buttons {
    display: flex;
    gap: 0.25rem;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.tab-btn {
    padding: 0.875rem 1.25rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--gray-600);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    color: var(--primary-dark);
}

.tab-btn.active {
    color: var(--primary-dark);
    border-bottom-color: var(--gold);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .nav-menu>li>a {
        padding: 0.5rem 0.625rem;
        font-size: 0.75rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .utility-left {
        display: none;
    }

    .logo-text span {
        max-width: 180px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -400px;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: var(--primary-dark);
        padding: 4rem 1.5rem;
        box-shadow: var(--shadow-xl);
        transition: left var(--transition-base);
        overflow-y: auto;
        z-index: 250;
    }

    .main-nav.active {
        left: 0;
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 190;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        background: transparent;
        border-radius: 0;
        padding: 0;
    }

    .nav-menu>li>a {
        padding: 0.875rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 0.875rem;
    }

    .nav-menu>li>a::after {
        display: none;
    }

    .nav-menu>li>a:hover {
        color: var(--gold);
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
        display: none;
        border-top: none;
        background: transparent;
    }

    .dropdown li a {
        color: rgba(255, 255, 255, 0.6);
        padding: 0.625rem 0.5rem;
    }

    .dropdown li a:hover {
        color: var(--gold);
        background: transparent;
    }

    .has-dropdown.active .dropdown {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4 {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .page-banner h1 {
        font-size: 1.75rem;
    }

    .page-banner {
        padding: 3rem 0;
    }

    .utility-bar {
        height: auto;
        padding: 0.35rem 0;
    }

    .search-box {
        display: none;
    }

    .social-icons a {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .tab-buttons,
    .tabs-header {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tab-buttons::-webkit-scrollbar,
    .tabs-header::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex: 0 0 auto;
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
    }

    .fee-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
    }

    .logo-text h1 {
        font-size: 0.9375rem;
    }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

::selection {
    background: var(--gold);
    color: var(--white);
}