/* Container */
.card-container {
    max-width: 768px;
    margin: 0 auto;
    padding: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
}

.card-container-thin {
    max-width: 768px;
    margin: 0 auto;
    padding: 6px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
}

.feature-list-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-icon {
    width: 12px;
    height: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
}

.feature-list-title {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    color: #7a4a00;
    padding-bottom: 6px;
}

/* Large screens */
@media (min-width: 1024px) {
    .feature-list-title {
        font-size: 3rem;
    }
}

/* Description */
.feature-list-description {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Divider */
.feature-card-divider {
    margin: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Features grid */
.feature-list {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 12px;
    color: #d1d5db;
}

@media (min-width: 640px) {
    .feature-list {
        grid-template-columns: 1fr 1fr;
    }
}

/* Feature row */
.feature-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Dot */
.feature-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #fbbf24;
}

/* Animated link underline */
.feature-link {
    position: relative;
    display: inline-block;
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.feature-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 0;
    background-color: #eab308;
    transition: width 0.3s ease;
}

.feature-link:hover {
    color: #fcd34d;
}

.feature-link:hover::after {
    width: 100%;
}

/* Astro topics */
.astro-topics {
    margin: 0;
    line-height: 1.25;
}

/* Top accent line */
.card-top-accent-line {
    position: absolute;
    inset: 0 0 auto 0; /* top-0, left-0, right-0 */
    height: 4px;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    background: linear-gradient(to right, #fbbf24, #ea580c); /* amber-400 to orange-600 */
}

.card-bottom-accent-line {
    position: absolute;
    inset: auto 0 0 0; /* top-0, left-0, right-0 */
    height: 4px;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    background: linear-gradient(to right, #fbbf24, #ea580c); /* amber-400 to orange-600 */
}

.card-accent-corner {
    position: absolute;
    /* Sticks it to the bottom-right corner */
    inset: 0 0 0 0; 
    pointer-events: none; /* Allows clicks to pass through to links below */
    
    /* Creates the lines using borders */
    border-right: 4px solid #fbbf24;
    border-bottom: 4px solid #ea580c;
    
    /* Matches the card's rounded corners */
    border-bottom-right-radius: 1rem;
    border-top-right-radius: 1rem;
    border-bottom-left-radius: 1rem;
}

.panchanga-card-wrapper {
        width: 100%;
        display: inline-block; /* Returns to side-by-side layout */
        vertical-align: middle;
        margin: 0;
}

/* Header & Icon */
.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 2. Reset the h2 margin which often pushes the text down or up */
.title-container h2 {
    margin: 0;
    line-height: 1; /* Helps with precise vertical centering */
    font-family: 'Mulish', serif; 
    font-size: 20px;
    font-weight: 600;
}

.title-container button {
    background: none;
    border: none;
    padding: 0;
    display: flex;       /* Make the button a flexbox too */
    align-items: center; /* Center the h2 inside the button */
    cursor: pointer;
}

.icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem; /* rounded-xl */
    background-color: transparent; /* orange-500 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 0;
}


/* Description */
.card-description {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: #d1d5db; /* gray-300 approximated */
}

/* Divider */
.card-divider {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* white/10 */
}

/* Features Grid */
.card-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    color: #d1d5db; /* gray-300 */
}

@media (min-width: 640px) {
    .card-features {
        grid-template-columns: 1fr 1fr; /* sm:grid-cols-2 */
    }
}
@media (max-width: 640px) {

    .chart-section {
        padding: 1rem 0.5rem
    }
    
    .panchanga-card-wrapper {
        box-sizing: border-box;
        width: 100%;
        display: block; /* On mobile, blocks usually look better stacked */
        margin: auto; /* Centers the card horizontally */
    }

    .card-container-holder {
        padding: 0.5rem 0.25rem; /* px-4 */
    }

    .card-container {
        width: 100%;
        min-height: 6rem;
        margin-left: 0px;
        margin-right: 1rem;
        border-radius: 1rem; /* rounded-2xl */
        background-color: transparent;
        position: relative;
        overflow: hidden; /* Ensures accent line doesn't bleed */
        padding-top: 8px;
        padding-bottom: 8px;
        padding-left: 2px;
        padding-right: 2px;
        display: block;
    }
    
    .card-header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 6px;
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: #fbbf24; /* amber-400 */
    flex-shrink: 0;
}

/* Hover Link Effect */
.feature-link {
    color: hsl(45, 78%, 74%); /* yellow-500 */
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.feature-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 0;
    background-color: #eab308;
    transition: width 0.3s ease;
}

.feature-link:hover::after {
    width: 100%;
}

.button-row {
    display: flex;
    gap: 2px;      
    width: 100%;
    margin-bottom: 8px;
}

.button-row .jyotish_button {
    flex: 1;                /* 👈 all buttons equal width */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    min-height: 40px;
}