/* CSS for new custom sections */ 

/* Referral Commission Section */
.referral-section {
    background: linear-gradient(45deg, #001f3f, #007bff);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.referral-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.referral-icon {
    font-size: 50px;
}

.referral-text h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.referral-text p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.referral-text strong {
    color: #f0c419; /* Gold color for emphasis */
}

.referral-action .btn-primary {
    background-color: #f0c419;
    color: #001f3f;
    font-weight: bold;
    border: none;
}

.referral-action .btn-primary:hover {
    background-color: #fff;
}


/* Image Gallery Section */
.image-gallery-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px;
}

.gallery-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item-caption {
    padding: 15px;
    font-size: 16px;
    font-weight: 500;
    color: #555;
}

/* Mobile responsive for gallery */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: 1fr; /* Stack on smaller tablets */
    }
}

@media (max-width: 576px) {
    .gallery-container {
        display: flex; /* Switch to flexbox for scrolling */
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; /* for smooth scrolling on iOS */
        padding-bottom: 20px; /* space for scrollbar */
    }

    .gallery-item {
        flex: 0 0 80%; /* Each item takes 80% of the viewport width */
        max-width: 80%;
        margin-right: 20px;
        scroll-snap-align: center;
    }
} 