/* Birthday Celebration Section UI - Minimalist Perfect Match */

.birthday-celebration-section {
    padding: 50px 0 0;
    max-width: 1250px;
    margin: 0 auto;
    background: #fff;
}

.birthday-celebration-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    text-align: center;
    margin-bottom: 10px;
    font-weight: normal;
    color: #232323;
}

.birthday-slider-wrapper {
    position: relative;
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 50px;
}

.birthday-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 5px 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none;    /* Firefox */
    justify-content: flex-start;
}

.birthday-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.birthday-card {
    flex: 0 0 calc(16.666% - 25px) !important;
    min-width: 130px;
    text-align: center;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: transform 0.3s ease;
}

.birthday-card a {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none !important;
    box-shadow: none !important;
}

.birth-img {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 5px; /* Further reduced from 10px to 5px */
    background: transparent !important;
    transition: transform 0.3s ease;
}

.birth-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.birthday-card:hover .birth-img img {
    transform: scale(1.1);
}

.birth-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 50px; /* Space for stone name hover */
}

.birthday-card .month-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #232323;
    margin: 0;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: capitalize;
    position: relative;
}

/* Hover effect: Thin line below month */
.birthday-card .month-name::after {
    content: '';
    display: block;
    width: 20px;
    height: 1.5px;
    background: #232323;
    margin: 4px auto 0; /* Reduced from 6px to 4px */
    opacity: 0;
    transition: all 0.3s ease;
}

.birthday-card:hover .month-name::after {
    opacity: 1;
}

.birthday-card.is-current .month-name::after {
    background: #ff8383;
}

.birthday-card .stone-name {
    font-family: 'SF Pro Display', sans-serif;
    font-size: 11.5px;
    color: #9b9b9b;
    margin-top: 2px !important; /* Reduced from 8px to 2px */
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.4s ease-in-out !important;
    transform: translateY(-5px);
    font-weight: normal;
}

/* Hover Action: Show Stone Name */
.birthday-card:hover .stone-name {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Current Month Highlight */
.birthday-card.is-current .month-name {
    color: #ff8383;
}

/* Perfect Circular Navigation Arrows - Unique Classes */
.birth-arrow-prev, 
.birth-arrow-next {
    position: absolute;
    top: 48%; /* Center of 105px stone*/
    transform: translateY(-50%);
    background: #000 !important;
    border: none !important;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99; /* Higher z-index to stay on top */
    padding: 0;
    transition: all 0.3s ease;
}

.birth-arrow-prev::before,
.birth-arrow-next::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2.2px solid #fff;
    border-right: 2.2px solid #fff;
}

.birth-arrow-prev { left: 0px !important; }
.birth-arrow-next { right: 0px !important; }

.birth-arrow-prev::before {
    transform: rotate(-135deg);
    margin-left: 2.5px;
}

.birth-arrow-next::before {
    transform: rotate(45deg);
    margin-right: 2.5px;
}

.birth-arrow-prev:hover,
.birth-arrow-next:hover {
    background: #333 !important;
    transform: translateY(-50%) scale(1.1);
}

/* Large Phones & Tablets (GRID VIEW 4 Per Row) */
@media (max-width: 900px) {
    .birthday-celebration-section { padding: 40px 0; }
    .birthday-slider-wrapper { padding: 0 10px; max-width: 100%; }
    .birth-arrow-prev, .birth-arrow-next { display: none !important; } /* No arrows in grid */
    
    .birthday-slider { 
        display: flex !important;
        flex-wrap: wrap !important; /* Allow items to wrap into rows */
        gap: 25px 5px !important;  /* Row gap and Column gap */
        justify-content: center !important;
        overflow-x: hidden !important; 
        padding: 10px 0 !important;
    }
    
    .birthday-card { 
        flex: 0 0 calc(25% - 10px) !important; /* Forces 4 items per row */
        min-width: 80px !important; 
        text-align: center;
    }
    
    .birth-img { 
        width: 70px !important; 
        height: 70px !important; 
        margin-bottom: 10px !important; 
    }
    
    .birthday-card .month-name { font-size: 11.5px !important; }
    .birth-text { min-height: 35px !important; }
    .birthday-card .stone-name { margin-top: 1px !important; font-size: 10px !important; }
}

/* Very Small Phones (2 Per Row if 4 is too cramped) */
@media (max-width: 375px) {
    .birthday-card { flex: 0 0 calc(50% - 10px) !important; } 
    .birth-img { width: 85px !important; height: 85px !important; }
}
