/* marquee animation seting css */
/* Container settings */
.ug-ticker-container {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid #000;
    padding: 10px 0;
    white-space: nowrap;
    position: relative;
    display: flex;
}

/* The moving wrapper */
.ug-ticker-wrapper {
    display: flex;
    width: max-content;
    /* Duration increased to 120s because the list is very long */
    animation: ugInfiniteScroll 120s linear infinite;
}

/* Stop scrolling on hover */
.ug-ticker-container:hover .ug-ticker-wrapper {
    animation-play-state: paused;
}

/* List styling */
.ug-ticker-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ug-ticker-list li {
    padding: 0 40px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #000000;
    text-transform: capitalize;
    cursor: pointer;
    flex-shrink: 0;
}

/* The Animation */
@keyframes ugInfiniteScroll {
    from {
        transform: translateX(0);
    }
    to {
        /* This moves exactly one full list length */
        transform: translateX(-50%);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .ug-ticker-list li {
        font-size: 11px;
        padding: 0 20px;
    }
    .ug-ticker-wrapper {
        animation-duration: 80s; 
    }
}


/* hero section  */

.ug-hero {
    padding: 80px 20px;
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.ug-hero .hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Left Column Styling */
.ug-hero .hero-content {
    flex: 1;
    max-width: 600px;
}

.ug-hero .hero-title {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 15px;
}

.ug-hero .highlight {
    color: #87b942; /* Brand Green */
}

.ug-hero .hero-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

.ug-hero .hero-description p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ug-hero .hero-cta {
    display: inline-block;
    background-color: #87b942;
    color: #fff;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.ug-hero .hero-cta:hover {
    background-color: #6e9735;
}

/* Right Column: Diamond Grid */
.ug-hero .hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ug-hero .diamond-grid {
    display: grid;
    grid-template-columns: repeat(4, 80px);
    grid-gap: 25px;
    /* transform: rotate(45deg); Rotate the whole grid */
}

.ug-hero .diamond-item {
    width: 80px;
    height: 80px;
    background: #fff;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ug-hero .diamond-item img {
    width: 70%;
    height: auto;
    transform: rotate(-45deg); /* Rotate image back to upright */
    object-fit: contain;
}

/* Responsiveness */
@media (max-width: 992px) {
    .ug-hero .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .ug-hero .hero-content {
        max-width: 100%;
    }

    .ug-hero .hero-visual {
        margin-top: 60px;
        transform: scale(0.8); /* Shrink grid for mobile */
    }
}

@media (max-width: 480px) {
    .ug-hero .hero-title {
        font-size: 28px;
    }
    .ug-hero .diamond-grid {
        grid-template-columns: repeat(3, 70px);
    }
}

/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
    width: 500px;
    height: 500px;
    overflow: hidden; /* Hide images outside the frame */
    display: block !important;
}

.carousel-track {
    display: flex;
    transition: transform 0.8s ease-in-out;
    width: 400%; /* 4 images, each 100% of container width */
    height: 100%;
}

.carousel-img {
    width: 500px !important; /* Ensure each image takes full container width */
    height: auto;
    flex-shrink: 0;
}


/* modal over shown    */
/* Modal Background */
.stock-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.stock-modal-content {
    background: #fff;
    width: 90%;
    max-width: 450px;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-logo { height: 30px; }
.modal-header .tagline { font-size: 10px; color: #888; margin-bottom: 20px; }

/* Form Styles */
.form-group { margin-bottom: 12px; }
.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.phone-group { display: flex; gap: 5px; }
.phone-group select { width: 120px; }

/* CAPTCHA Styles */
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}
.captcha-wrapper label { font-size: 14px; font-weight: 600; white-space: nowrap; }
.captcha-wrapper input { width: 60px; padding: 8px; text-align: center; border: 1px solid #ccc; border-radius: 4px; }
.refresh-btn { 
    background: #eee; border: none; padding: 5px 10px; border-radius: 4px; 
    cursor: pointer; font-size: 12px; display: flex; align-items: center; gap: 4px;
}

/* Buttons */
.form-actions { display: flex; gap: 10px; }
.btn-reset, .btn-submit {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}
.btn-reset { background: #fff; border: 1px solid #87b942; color: #87b942; }
.btn-submit { background: #87b942; border: none; color: #fff; }

/* Toast Success Styles */
.success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: none;
    z-index: 10000;
    overflow: hidden;
    min-width: 250px;
}
.toast-content { display: flex; align-items: center; padding: 15px; gap: 10px; }
.check-icon { background: #87b942; color: #fff; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.toast-progress { height: 4px; background: #87b942; width: 100%; transition: width 3s linear; }





/* sllider section css  */
.popular-shares-section {
    padding: 60px 20px;
    font-family: 'Inter', sans-serif;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.popular-shares-section .slider-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.popular-shares-section .slider-header h2 span {
    color: #87b942;
}

.popular-shares-section .slider-header p {
    color: #333;
    font-size: 16px;
    margin-bottom: 40px;
}

/* Slider Layout */
.popular-shares-section .slider-container-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    gap: 15px;
}

.popular-shares-section .cards-viewport {
    overflow: hidden; /* This hides the cards outside the view */
    width: 100%;
}

.popular-shares-section .cards-track {
    display: flex;
    gap: 20px;
    /* Smooth transition for the auto-scroll effect */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); 
    padding: 10px 5px;
    will-change: transform; /* Optimizes browser performance for moving elements */
}

/* Ensure images don't drag and break the slider behavior */
.popular-shares-section .share-card img {
    pointer-events: none; 
    user-select: none;
}

/* Individual Card Styling */
.popular-shares-section .share-card {
    flex: 0 0 calc(20% - 16px); /* Shows 5 cards at once on large screens */
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.popular-shares-section .logo-box {
    background: #f8f9fa;
    border-radius: 10px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.popular-shares-section .logo-box img {
    max-width: 80%;
    max-height: 60px;
    object-fit: contain;
}

.popular-shares-section .card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.popular-shares-section .card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.popular-shares-section .card-meta span {
    font-size: 14px;
    color: #000;
    font-weight: 500;
}

.popular-shares-section .learn-more-btn {
    border: 1.5px solid #87b942;
    color: #87b942;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    margin-top: auto;
}

.popular-shares-section .learn-more-btn:hover {
    background: #87b942;
    color: #fff;
}

/* Navigation Buttons */
.popular-shares-section .nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1.5px solid #87b942;
    background: #fff;
    color: #87b942;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 10;
    flex-shrink: 0;
}

.popular-shares-section .nav-btn:hover {
    background: #87b942;
    color: #fff;
}


.popular-shares-section .popular-cta {
    display: inline-block;
    background-color: #87b942;
    color: #fff;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.popular-shares-section .popular-cta:hover {
    background-color: #6e9735;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .popular-shares-section .share-card { flex: 0 0 calc(33.33% - 14px); }
}

@media (max-width: 768px) {
    .popular-shares-section .share-card { flex: 0 0 calc(50% - 10px); }
    .popular-shares-section .nav-btn { display: none; } /* Hide buttons, allow touch scroll */
    .popular-shares-section .cards-viewport { overflow-x: auto; }
}



/* faq section  */
.ug-faq-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.faq-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 40px;
    color: #111;
}

.faq-title span {
    color: #87b942; /* Brand Green */
}

.faq-container {
    text-align: left;
}

.faq-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.faq-question {
    padding: 20px 25px;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    width: 24px;
    height: 24px;
    background: #87b942;
    border-radius: 50%;
    position: relative;
    transition: transform 0.3s;
}

/* Plus/Minus Icons */
.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after { width: 2px; height: 12px; transition: opacity 0.3s; }

.faq-item.active .faq-icon::after {
    opacity: 0; /* Turns plus into minus */
}

.faq-answer {
    padding: 0 25px 20px;
    display: none;
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer ul {
    margin: 15px 0;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* View All Button */
.view-all-btn {
    background: #87b942;
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.view-all-btn:hover {
    background: #6e9735;
}