.invalid-feedback {
    display: block;
    color: red;
    font-size: 0.875em;
    margin-top: 5px;
}

.swiper-slide {
 width: auto !important;
}

.primary-color {
 background-color: #3b82f6;
 color: white;
}
/* popups */
 .custom-modal-overlay {
            position: fixed;
            inset: 0;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }

        .custom-modal {
            position: relative;
            background: #fff;
            border-radius: 8px;
            max-width: 90%;
            max-height: 90vh;
            padding: 2rem 1rem 1rem 1rem;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }

        .custom-close {
            position: absolute;
            top: -12px;
            right: -8px;
            background: transparent;
            border: none;
            padding: 0.5rem;
            cursor: pointer;
            z-index: 10;
            border-radius: 50%;
            transition: background-color 0.2s ease;
        }

        .custom-close-icon {
            width: 60px;
            height: 40px;
            color: #333;
        }

        .custom-modal-image {
            max-width: 100%;
            max-height: 80vh;
            display: block;
            margin: auto;
            object-fit: contain;
        }

/* for works page */
.works {
    padding-top: 84px;
    padding-bottom: 1.75rem;
}

.container1 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.works-intro {
    margin-top: 3rem;
}

.works-title {
    font-size: 3.75rem;
    font-weight: bold;
    color: black;
    letter-spacing: -0.025em;
}

.works-description {
    font-size: 1.125rem;
    font-weight: 600;
    color: black;
    padding: 1.5rem 0;
}

.tabs-border {
    border-bottom: 1px solid #e5e7eb;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.tab-button {
    font-size: 1.125rem;
    cursor: pointer;
    padding: 1rem 0.25rem;
    border-bottom: 2px solid transparent;
    color: #6b7280;
    background: none;
    outline: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-button:hover,
.tab-button:focus {
    color: #0d6efd;
}

.tab-button.active {
    font-weight: 600;
    border-color: #0d6efd;
    color: #0d6efd;
}

.tab-panel {
    margin-top: 0.75rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 600px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }
}


.img-wrapper1 {
    aspect-ratio: 1 / 1;
    display: block;
}

.reels-container1 {
    margin-top: 2rem;
}

.card-reels {
    position: relative;
    border-radius: 0.375rem;
    overflow: hidden;
}

.video-wrapper {
    aspect-ratio: 9 / 16;
}

.sound-toggle {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-wrapper1 img,
.video-wrapper video {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}



/* for the nav menu mega dropdown */

/* Navbar Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    position: relative;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Mega Menu Container */
.mega-menu-container {
    position: relative;
}

/* Trigger Button */
.mega-menu-trigger {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.mega-menu-trigger:hover {
    color: black;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Chevron Icon */
.chevron {
    width: 1.2rem;
    height: 1.2rem;
    transition: transform 0.3s ease;
}

.chevron.open {
    transform: rotate(180deg);
}

/* Mega Menu Box */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    margin-top: 0.5rem;
    width: 87vw;
    max-width: 1143px;
    background: white;
    opacity: 0;
    visibility: hidden;
    z-index: 50;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}


/* Mega Menu Content Columns */
.mega-menu-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.2fr;
    min-height: 380px;
}

/* Column Styling */
.menu-column {
    padding: 2.5rem;
}

.menu-column:nth-child(2) {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}

/* Column Title */
.column-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0964b3 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    position: relative;
}

.column-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2rem;
    height: 2px;
    background: #0964b3;
    border-radius: 1px;
}

/* Menu Items */
.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    margin-bottom: 0.1rem;
}

.menu-item-button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    line-height: 1.4;
    border-radius: 0.5rem;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    color: #374151;
    overflow: hidden;
    transition: all 0.3s ease;
}


.menu-item-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #0964b3;
    z-index: -1;
    transition: left 0.4s ease-in-out;
}

/* On hover, background slides in */
.menu-item-button:hover::before {
    left: 0;
}

.menu-item-button:hover {
    color: #fff;
    transform: translateX(0.25rem);
    /* box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3); */
}

/* Description Column */
.description-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 330px;
    padding: 0.75rem 0;
}

.description-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    background: #0964b3;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.description-text {
    color: black;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Learn More Button */
.learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #0964b3;
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: fit-content;
    box-shadow: 0 2px 8px rgba(9, 100, 179, 0.3);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}


.learn-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.learn-more-btn:hover::before {
    left: 100%;
}

.learn-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    text-decoration: none;
}

.arrow-icon {
    width: 1.1rem;
    height: 1.1rem;
    transition: transform 0.3s ease;
}

.learn-more-btn:hover .arrow-icon {
    transform: translateX(0.25rem);
}

/* Image Column */
.image-column {
    padding: 2.5rem;
    background: #f1f5f9 ;
}

.menu-image {
    width: 100%;
    height: 100%;
    min-height: 330px;
    border-radius: 0;
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
}

.menu-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-image:hover::before {
    opacity: 1;
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-image:hover img {
    transform: scale(1.05);
}
.description-text {
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5rem;
}
/* Hide desktop navbar on small screens */
@media (max-width: 1038px) {
    .desktop-navbar {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block !important;
    }
}

/* Show desktop navbar above 1038px, hide mobile button */
@media (min-width: 1039px) {
    .desktop-navbar {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .mobile-menu-btn {
        display: none !important;
    }
}
