/* MEGA MENU STYLES */
.tec-nav-link {
    position: relative;
    transition: color 0.3s;
}
.tec-nav-link:hover {
    color: #4C6B3F !important;
}
.tec-nav-link::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #4C6B3F;
    transition: width 0.3s ease;
}
.tec-nav-item:hover .tec-nav-link::after {
    width: 20px;
}

/* Dropdown Container */
.tec-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: #FBF7EC;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-top: 1px solid #E3D6BC;
    z-index: 999;
}

.tec-nav-item:hover .tec-mega-menu,
.ast-builder-menu-1 .menu-item:hover .tec-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tec-mega-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    padding: 40px 20px;
    gap: 40px;
    text-align: left;
}

/* Columns */
.tec-mega-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #33472A;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.tec-mega-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tec-mega-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #8A9A6B;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
    font-family: 'Inter', sans-serif;
}

.tec-mega-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tec-mega-links ul li {
    margin-bottom: 10px;
}

.tec-mega-links ul li a {
    color: #2B2118;
    font-size: 0.95rem;
    transition: color 0.2s;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.tec-mega-links ul li a:hover {
    color: #4C6B3F;
    font-weight: 600;
}

/* Image */
.tec-mega-image {
    width: 100%;
    height: 250px;
    background: #eaeaea;
    border-radius: 8px;
    overflow: hidden;
}
.tec-mega-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay */
.tec-overlay {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 72px);
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 98;
    pointer-events: none;
}
.tec-nav-item:hover ~ .tec-overlay,
.ast-builder-menu-1 .menu-item:hover ~ .tec-overlay {
    opacity: 1;
    visibility: visible;
}

/* WordPress Specific Adjustments */
.tec-nav-item {
    position: static !important; /* Allow full width dropdown for this specific item */
}
#ast-desktop-header {
    position: relative;
}
