/* Base Styles */
body {
    font-family: 'Annapurna SIL', 'Noto Sans Devanagari', Arial, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    background: linear-gradient(135deg, #fdfbf7 0%, #f5f1e8 100%);
    color: #333;
}

/* Header Section */
header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;

    /* Rising sun radial gradient - red/orange in center fading outward */
    background:
        radial-gradient(circle at center,
            #ff6b35 0%,
            #ff8c42 15%,
            #ffa07a 30%,
            #ffb88c 45%,
            #ffd4a3 60%,
            #ffe8c5 75%,
            #fff5e6 90%,
            #fffaf0 100%
        );

    border-radius: 12px;
    box-shadow:
        0 4px 20px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.8),
        inset 0 -1px 0 rgba(218, 165, 32, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.25);
    position: relative;
    overflow: hidden;
}

/* Ensure content stays above the background */
header > * {
    position: relative;
    z-index: 1;
}

h1 {
    color: #8B0000;
    font-size: 2.5em;
    margin-bottom: 10px;
    border-bottom: 3px solid #DAA520;
    padding-bottom: 15px;
}

.subtitle {
    color: #8b1313;
    font-size: 1.2em;
    font-weight: bold;
}

.mantra {
    font-size: 1.5em;
    color: #8B0000;
    margin: 20px 0;
    padding: 15px;
    background: #fff8dc;
    border-radius: 5px;
}

/* Image and Slokas Section */
.image-with-slokas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 0;
}

.kamakshi {
    max-width: 200px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

/* Sloka (Palm Leaf) Styling */
.sloka {
    flex: 1;
    color: #2d1810;
    font-size: 1.1em;
    font-weight: bold;
    line-height: 2;
    max-width: 280px;
    padding: 25px 20px;

    /* Authentic palm leaf color - aged, yellowish-brown */
    background:
        linear-gradient(
            135deg,
            rgba(101, 67, 33, 0.03) 0%,
            transparent 50%,
            rgba(101, 67, 33, 0.03) 100%
        ),
        linear-gradient(to bottom,
            #e8dcc4 0%,
            #d4c4a8 20%,
            #c9b896 50%,
            #d4c4a8 80%,
            #e8dcc4 100%
        );

    /* Subtle border like aged edges */
    border: 1px solid #a89968;
    border-top: 2px solid #9d8c5a;
    border-bottom: 2px solid #9d8c5a;

    /* Very subtle rounding for natural leaf shape */
    border-radius: 3px;

    /* Soft shadow for depth */
    box-shadow:
        0 2px 4px rgba(61, 43, 23, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(101, 67, 33, 0.1);

    position: relative;
}

/* Binding stick for left sloka (on left side, extends beyond top and bottom) */
.sloka.left::before {
    content: '';
    position: absolute;
    left: -12px;
    top: -20px;
    bottom: -20px;
    width: 8px;
    background: linear-gradient(to right,
        #654321 0%,
        #8B4513 30%,
        #A0522D 50%,
        #8B4513 70%,
        #654321 100%
    );
    border-radius: 4px;
    box-shadow:
        inset 1px 0 2px rgba(0, 0, 0, 0.4),
        inset -1px 0 1px rgba(255, 255, 255, 0.3),
        2px 0 6px rgba(0, 0, 0, 0.3);
}

/* Binding stick for right sloka (on right side, extends beyond top and bottom) */
.sloka.right::after {
    content: '';
    position: absolute;
    right: -12px;
    top: -20px;
    bottom: -20px;
    width: 8px;
    background: linear-gradient(to right,
        #654321 0%,
        #8B4513 30%,
        #A0522D 50%,
        #8B4513 70%,
        #654321 100%
    );
    border-radius: 4px;
    box-shadow:
        inset 1px 0 2px rgba(0, 0, 0, 0.4),
        inset -1px 0 1px rgba(255, 255, 255, 0.3),
        -2px 0 6px rgba(0, 0, 0, 0.3);
}


/* Sloka line indentation */
.sloka.left,
.sloka.right {
    text-align: left;
}

.sloka.left .line2,
.sloka.left .line4,
.sloka.right .line2,
.sloka.right .line4 {
    padding-left: 2em;
}

/* Links Section */
.links-container {
    text-align: center;
    margin: 40px 0;
}

.main-link {
    display: inline-block;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    padding: 20px 40px;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.3em;
    margin: 20px 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.main-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #8B0000 0%, #8B4513 100%);
}

/* Info Sections */
.info-section {
    background: white;
    padding: 30px;
    margin: 30px 0;
    border-radius: 10px;
    border-left: 5px solid #DAA520;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-section h2 {
    color: #8B4513;
    margin-top: 0;
}

/* General Elements */
ul {
    line-height: 1.8;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #8B4513;
    border-top: 2px solid #DAA520;
}

.footer-blessing {
    font-size: 1.3em;
    color: #8B0000;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .image-with-slokas {
        flex-direction: column;
        gap: 15px;
    }

    .sloka {
        text-align: center !important;
        max-width: 100%;
    }
}
