/* Add your custom CSS here */
.aavad_logo-slider {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.aavad_logo-track {
    display: flex;
    width: max-content;
    gap: 30px;
    animation: aavad_scroll 80s linear infinite;
}

.aavad_logo-item {
    flex: 0 0 auto;
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aavad_logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Pause on hover */
.aavad_logo-slider:hover .aavad_logo-track {
    animation-play-state: paused;
}

@keyframes aavad_scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.video-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--card);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--muted);
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(var(--primary-rgb), 0.9);
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.video-item:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button svg {
    width: 28px;
    height: 28px;
    color: white;
    margin-left: 4px;
}

.video-duration {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.video-info {
    padding: 1.25rem;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.video-description {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.video-meta {
    display: flex;
    gap: 1rem;
    color: var(--muted-foreground);
    font-size: 0.8rem;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Modal Styles */
.video-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.video-modal-overlay.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: opacity 0.2s;
    z-index: 10;
}

.video-modal-close:hover {
    opacity: 0.7;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal-info {
    margin-top: 1.5rem;
    color: white;
}

.video-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-modal-description {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .video-gallery-grid {
        grid-template-columns: 1fr;
    }

    .video-modal-content {
            margin: 0 1rem;
    }

    .video-modal-close {
            top: -40px;
            font-size: 2rem;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--muted);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-title {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.gallery-item-category {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.modal-nav:hover {
    background: rgba(255,255,255,0.2);
}

.modal-prev {
    left: -80px;
}

.modal-next {
    right: -80px;
}

.modal-caption {
    text-align: center;
    color: white;
    margin-top: 1rem;
}

.modal-caption h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-caption p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}


@media (max-width: 768px) {
    .modal-nav {
        display: none;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }
}

.career_form_aavad .frm_dropzone.frm_single_upload{
    max-width: 100% !important;
}

#backToTop {
    display: flex;
    opacity: 0;
    visibility: hidden;     
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#backToTop.show {
    opacity: 1;
    visibility: visible;
}

.aavad_product_details .product_meta{
    display:none;
}

.aavad_product_details>h1{
    font-size: 24px;
}


/* Container for blog content */

/* Headings */
.single-post-content h1,
.single-post-content h2,
.single-post-content h3,
.single-post-content h4,
.single-post-content h5,
.single-post-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #222;
}

.single-post-content h1 { font-size: 22px; line-height: 1.4; margin-bottom: 12px; }
.single-post-content h2 { font-size: 20px; line-height: 1.4; margin-bottom: 10px; }
.single-post-content h3 { font-size: 18px; line-height: 1.4; margin-bottom: 8px; }
.single-post-content h4 { font-size: 16px; line-height: 1.4; margin-bottom: 6px; }
.single-post-content h5 { font-size: 15px; line-height: 1.4; margin-bottom: 6px; }
.single-post-content h6 { font-size: 14px; line-height: 1.4; margin-bottom: 4px; }


/* Paragraphs */
.single-post-content p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Links */
.single-post-content a {
    color: #0073e6;
    text-decoration: underline;
}
.single-post-content a:hover {
    color: #005bb5;
}

/* Lists */
.single-post-content ul,
.single-post-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.single-post-content li {
    margin-bottom: 0.5rem;
}

/* Blockquotes */
.single-post-content blockquote {
    border-left: 4px solid #0073e6;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
}

/* Images */
.single-post-content img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/* Tables */
.single-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.single-post-content th,
.single-post-content td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

.single-post-content th {
    background: #f9f9f9;
    font-weight: 600;
}

/* Code blocks */
.single-post-content pre,
.single-post-content code {
    background: #f5f5f5;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}
