/**
 * HamroSamaya Plugin Styles
 */

.hamrosamaya-datetime,
.hamrosamaya-rashifal,
.hamrosamaya-gold,
.hamrosamaya-forex {
    margin: 20px 0;
    padding: 15px;
    background: transparent;
    border: none;
    border-radius: 5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.hamrosamaya-error {
    padding: 10px;
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
    border-radius: 3px;
}

/* Date/Time Styles */
.hamrosamaya-nepali-date,
.hamrosamaya-current-time {
    margin: 10px 0;
    font-size: 16px;
}

.hamrosamaya-label {
    font-weight: 600;
    color: #333;
    margin-right: 8px;
}

.hamrosamaya-value {
    color: #666;
}

/* Rashifal Styles */
.hamrosamaya-rashifal-filters {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    padding: 0;
    background: #fff;
    border-bottom: 1px solid #E97F4B;
    position: relative;
    align-items: flex-end;
}

.hamrosamaya-filter-btn {
    padding: 14px 24px;
    background: #fff;
    border: none;
    border-bottom: 1px solid #E97F4B;
    border-radius: 8px 8px 0 0;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: center;
    white-space: nowrap;
    position: relative;
    margin-bottom: -1px;
    margin-right: 4px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
}

.hamrosamaya-filter-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.hamrosamaya-filter-btn.active {
    background: #E97F4B;
    color: #fff;
    border-bottom: 1px solid #E97F4B;
    border-radius: 8px 8px 0 0;
    z-index: 2;
    margin-bottom: -1px;
}

.hamrosamaya-filter-btn span {
    display: inline-block;
}

.hamrosamaya-rashifal-title {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    color: #333;
    font-size: 24px;
}

.hamrosamaya-rashifal-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 16px;
}

.hamrosamaya-rashifal-content {
    margin-top: 15px;
}

.hamrosamaya-rashifal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.hamrosamaya-rashi-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hamrosamaya-rashi-item {
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.hamrosamaya-rashi-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #1976d2;
    transform: translateY(-2px);
}

.hamrosamaya-rashi-read-more {
    display: inline-block;
    margin-top: 10px;
    color: #1976d2;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hamrosamaya-rashi-item:hover .hamrosamaya-rashi-read-more {
    opacity: 1;
}

.hamrosamaya-rashi-name {
    margin: 0 0 10px 0;
    color: #1976d2;
    font-size: 18px;
    font-weight: 600;
}

.hamrosamaya-rashi-text {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

/* Gold Prices Styles - Card Design */
.hamrosamaya-gold-container {
    max-width: 100%;
    margin: 0 auto;
}

.hamrosamaya-gold-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.hamrosamaya-gold-title {
    margin: 0;
    padding: 0;
    color: #333;
    font-size: 24px;
    font-weight: 700;
}

.hamrosamaya-gold-date {
    font-size: 14px;
    color: #666;
    text-align: right;
}

.hamrosamaya-gold-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hamrosamaya-gold-card,
.hamrosamaya-silver-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #e0e0e0;
}

.hamrosamaya-card-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamrosamaya-gold-img,
.hamrosamaya-silver-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hamrosamaya-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
    min-width: 100px;
}

.hamrosamaya-card-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    flex: 1;
    min-width: 0;
}

.hamrosamaya-card-unit {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 400;
    line-height: 1.2;
}

.hamrosamaya-card-price {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.hamrosamaya-card-change {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #4caf50;
}

.hamrosamaya-change-arrow {
    font-size: 16px;
    color: #4caf50;
    font-weight: 700;
}

.hamrosamaya-change-amount {
    color: #4caf50;
    font-weight: 500;
}

/* Responsive Design for Gold Cards */
@media (max-width: 768px) {
    .hamrosamaya-gold-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .hamrosamaya-gold-date {
        text-align: left;
    }
    
    .hamrosamaya-gold-card,
    .hamrosamaya-silver-card {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .hamrosamaya-card-image {
        width: 50px;
        height: 50px;
    }
    
    .hamrosamaya-card-title {
        min-width: auto;
        flex: 1;
    }
    
    .hamrosamaya-card-column {
        flex: 1 1 calc(50% - 10px);
        min-width: 120px;
    }
    
    .hamrosamaya-card-price {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hamrosamaya-gold-title {
        font-size: 20px;
    }
    
    .hamrosamaya-gold-card,
    .hamrosamaya-silver-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .hamrosamaya-card-image {
        width: 50px;
        height: 50px;
    }
    
    .hamrosamaya-card-title {
        width: 100%;
        text-align: center;
    }
    
    .hamrosamaya-card-column {
        width: 100%;
        align-items: center;
        text-align: center;
        flex: 1 1 100%;
    }
    
    .hamrosamaya-card-price {
        font-size: 22px;
    }
}

/* Exchange Rates Styles */
.hamrosamaya-forex-container {
    max-width: 100%;
    margin: 0 auto;
}

.hamrosamaya-forex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.hamrosamaya-forex-title {
    margin: 0;
    padding: 0;
    color: #333;
    font-size: 22px;
    font-weight: 700;
}

.hamrosamaya-forex-date {
    font-size: 13px;
    color: #666;
    text-align: right;
}

.hamrosamaya-forex-table-wrapper {
    overflow-x: auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.hamrosamaya-forex-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin: 0;
}

.hamrosamaya-forex-table thead {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: #fff;
}

.hamrosamaya-forex-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.hamrosamaya-forex-table th.hamrosamaya-forex-currency-col {
    min-width: 180px;
}

.hamrosamaya-forex-table th.hamrosamaya-forex-buy-col,
.hamrosamaya-forex-table th.hamrosamaya-forex-sell-col {
    text-align: right;
    min-width: 110px;
}

.hamrosamaya-forex-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.hamrosamaya-forex-table tbody tr:hover {
    background-color: #f8f9fa;
    border-left: 3px solid #1976d2;
}

.hamrosamaya-forex-table tbody tr:last-child {
    border-bottom: none;
}

.hamrosamaya-forex-table td {
    padding: 10px 12px;
    color: #555;
    font-size: 14px;
}

.hamrosamaya-forex-currency {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hamrosamaya-forex-flag {
    font-size: 18px;
    line-height: 1;
    display: inline-block;
    flex-shrink: 0;
}

.hamrosamaya-forex-currency-name {
    flex: 1;
}

.hamrosamaya-forex-buy,
.hamrosamaya-forex-sell {
    text-align: right;
    color: #1976d2;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.2px;
}

/* Single Rashi Page Styles */
.hamrosamaya-single-rashi {
    margin: 20px 0;
}

.hamrosamaya-single-rashi .flex.flex-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: flex-start;
}

.hamrosamaya-rashi-main-content {
    flex: 1;
    min-width: 0;
    margin-right: 30px;
}

.hamrosamaya-single-rashi .grid-right {
    flex: 0 0 300px;
    width: 300px;
    max-width: 300px;
    min-width: 300px;
    padding-left: 30px;
    border-left: 1px solid #eee;
}

/* Sidebar title styling - dark blue background with white text */
.hamrosamaya-single-rashi .grid-right .cat-head {
    background-color: var(--primary--color);
    padding: 12px 15px 12px 15px;
    margin-bottom: 0;
    margin-left: -30px;
    margin-right: 0;
    padding-left: 15px;
    padding-right: 15px;
    width: calc(100% + 30px);
    border-radius: 0;
}

.hamrosamaya-single-rashi .grid-right .cat-name {
    color: #fff !important;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    padding-bottom: 0;
    text-align: left;
}

/* Sidebar list titles - don't justify */
.hamrosamaya-single-rashi .grid-right .news__title--small {
    text-align: left !important;
}

.hamrosamaya-single-rashi .grid-right .news__title--small a {
    text-align: left !important;
}

.hamrosamaya-rashi-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

/* Other Rashifals Section */
.hamrosamaya-other-rashifal {
    margin-top: 40px;
}

.hamrosamaya-other-rashifal-header {
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
}

.hamrosamaya-other-rashifal-title {
    margin: 0;
    padding: 0;
    padding-right: 20px;
    font-size: 24px;
    font-weight: 700;
    color: #A52A2A;
    font-family: inherit;
    text-align: left;
    background: #fff;
    position: relative;
    z-index: 1;
    display: inline-block;
}

.hamrosamaya-other-rashifal-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #ffb3b3;
    z-index: 0;
}

/* Grid layout for other rashifals - 4 columns on desktop */
.hamrosamaya-single-rashi .hamrosamaya-rashifal-grid-main {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.hamrosamaya-rashi-icon-wrapper {
    flex-shrink: 0;
    padding: 10px;
}

.hamrosamaya-rashi-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #c60009;
    background: #fff;
    display: block;
    padding: 5px;
}

.hamrosamaya-rashi-header-text {
    flex: 1;
}

.hamrosamaya-single-rashi .hamrosamaya-rashi-title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #000;
}

.hamrosamaya-rashi-letters {
    margin: 0;
    font-size: 18px !important;
    color: #333;
    font-weight: 400;
    line-height: 16px !important;
}

.hamrosamaya-rashi-content-wrapper {
    margin-top: 0;
}

.hamrosamaya-rashi-content {
    background: #fff;
    border: none;
    border-bottom: 1px solid #e97f4a;
    border-left: 1px solid #e9804b;
    border-right: 1px solid #e97f4a;
    border-radius: 0;
    padding: 30px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    z-index: 1;
}

.hamrosamaya-rashi-date-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
}

.hamrosamaya-rashi-text-content {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
    text-align: justify;
    word-wrap: break-word;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.hamrosamaya-rashi-text-content p {
    margin: 0 0 15px 0;
    padding: 0;
    text-align: justify;
    line-height: 1.9;
    letter-spacing: 0.2px;
}

.hamrosamaya-rashi-text-content p:last-child {
    margin-bottom: 0;
}

.hamrosamaya-rashi-text-content br {
    display: block;
    margin: 8px 0;
    line-height: 1.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamrosamaya-rashifal-filters {
        gap: 0;
        flex-wrap: nowrap;
    }
    
    .hamrosamaya-filter-btn {
        padding: 8px 6px;
        font-size: 12px;
        flex: 1 1 auto;
        min-width: 0;
        margin-bottom: 0;
        margin-right: 2px;
    }
    
    .hamrosamaya-filter-btn:last-child {
        margin-right: 0;
    }
    
    .hamrosamaya-filter-btn.active {
        border-radius: 8px 8px 0 0;
    }
    
    .hamrosamaya-filter-btn span {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Fix 2-column layout on mobile - make it single column */
    .hamrosamaya-single-rashi .flex.flex-wrap {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .hamrosamaya-rashi-main-content {
        width: 100% !important;
        margin-right: 0 !important;
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }

    /* Hide sidebar on mobile */
    .hamrosamaya-single-rashi .grid-right {
        display: none !important;
        width: 0 !important;
        flex: 0 0 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    /* Fix content area on mobile */
    .hamrosamaya-single-rashi {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .hamrosamaya-rashi-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .hamrosamaya-rashifal-filters {
        gap: 0;
        flex-wrap: nowrap;
    }
    
    .hamrosamaya-filter-btn {
        padding: 8px 4px;
        font-size: 11px;
        flex: 1 1 auto;
        min-width: 0;
        margin-right: 2px;
    }
    
    .hamrosamaya-filter-btn:last-child {
        margin-right: 0;
    }
    
    .hamrosamaya-rashifal-grid {
        grid-template-columns: 1fr;
    }
    
    .hamrosamaya-gold-prices {
        flex-direction: column;
    }
    
    .hamrosamaya-forex-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .hamrosamaya-forex-title {
        font-size: 20px;
    }
    
    .hamrosamaya-forex-date {
        text-align: left;
        font-size: 12px;
    }
    
    .hamrosamaya-forex-table {
        font-size: 13px;
    }
    
    .hamrosamaya-forex-table th {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .hamrosamaya-forex-table td {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .hamrosamaya-forex-currency {
        font-size: 13px;
    }
    
    .hamrosamaya-forex-flag {
        font-size: 16px;
    }
    
    .hamrosamaya-forex-buy,
    .hamrosamaya-forex-sell {
        font-size: 12px;
    }
    
    .hamrosamaya-forex-table th.hamrosamaya-forex-currency-col {
        min-width: 140px;
    }
    
    .hamrosamaya-forex-table th.hamrosamaya-forex-buy-col,
    .hamrosamaya-forex-table th.hamrosamaya-forex-sell-col {
        min-width: 90px;
    }
    
    .hamrosamaya-rashi-header {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
    
    .hamrosamaya-rashi-icon-wrapper {
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
    
    .hamrosamaya-rashi-icon {
        width: 70px;
        height: 70px;
    }
    
    .hamrosamaya-rashi-header-text {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hamrosamaya-single-rashi .hamrosamaya-rashi-title {
        font-size: 20px;
        margin-bottom: 0;
    }
    
    .hamrosamaya-rashi-letters {
        font-size: 14px !important;
        margin-top: 0;
    }
    
    .hamrosamaya-rashi-content {
        padding: 20px;
    }
    
    .hamrosamaya-rashi-date-title {
        font-size: 18px;
    }
    
    .hamrosamaya-rashi-text-content {
        font-size: 14px;
    }
    
    /* Hide sidebar on mobile */
    .hamrosamaya-single-rashi .grid-right {
        display: none;
    }
    
    .hamrosamaya-rashi-main-content {
        width: 100%;
        margin-right: 0;
    }
    
    /* Other rashifals grid - 2 columns on mobile */
    .hamrosamaya-single-rashi .hamrosamaya-rashifal-grid-main {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .hamrosamaya-other-rashifal-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    /* Fix layout on small mobile */
    .hamrosamaya-single-rashi .flex.flex-wrap {
        flex-direction: column;
        gap: 0;
    }

    .hamrosamaya-rashi-main-content {
        width: 100% !important;
        margin-right: 0 !important;
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }

    .hamrosamaya-single-rashi .grid-right {
        display: none !important;
    }

    /* Rashi header - keep in single row on mobile */
    .hamrosamaya-rashi-header {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    
    .hamrosamaya-rashi-icon-wrapper {
        display: flex;
        align-items: center;
    }
    
    .hamrosamaya-rashi-icon {
        width: 65px;
        height: 65px;
    }
    
    .hamrosamaya-rashi-header-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hamrosamaya-single-rashi .hamrosamaya-rashi-title {
        font-size: 18px;
        margin-bottom: 0;
    }
    
    .hamrosamaya-rashi-letters {
        font-size: 12px !important;
        margin-top: 0;
    }
    
    .hamrosamaya-rashi-content {
        padding: 15px;
    }
    
    /* Other rashifals grid - 2 columns on small mobile */
    .hamrosamaya-single-rashi .hamrosamaya-rashifal-grid-main {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .hamrosamaya-other-rashifal-title {
        font-size: 18px;
    }
}

/* Credit Footer Styles */
.hamrosamaya-credit {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.hamrosamaya-credit-text {
    margin: 0;
    font-size: 12px;
    color: #999;
}

.hamrosamaya-credit-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.hamrosamaya-credit-link:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* Main Rashifal Page - Grid Layout */
.hamrosamaya-rashifal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.hamrosamaya-rashifal-page-title {
    margin: 0;
    padding: 0;
    font-size: 32px;
    font-weight: 700;
    color: #c60009;
    font-family: inherit;
    display: inline-block;
}

.hamrosamaya-rashifal-header-separator {
    margin: 0 12px;
    color: #333;
    font-size: 24px;
    font-weight: 400;
}

.hamrosamaya-rashifal-date {
    font-size: 18px;
    color: #333;
    font-weight: 400;
    display: inline-block;
}

.hamrosamaya-rashifal-header-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.hamrosamaya-rashifal-header-right {
    display: flex;
    align-items: center;
}

.hamrosamaya-rashifal-grid-main {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 1fr;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    align-items: stretch;
}

.hamrosamaya-rashi-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    height: 100%;
    width: 100%;
    min-height: 0;
}

.hamrosamaya-rashi-card {
    background: #fff;
    border-radius: 6px;
    padding: 15px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: none;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.hamrosamaya-rashi-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.hamrosamaya-rashi-card-icon {
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    height: 55px;
    width: 100%;
    position: relative;
}

.hamrosamaya-rashi-card-icon::before {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(198, 0, 9, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.hamrosamaya-rashi-card:hover .hamrosamaya-rashi-card-icon::before {
    opacity: 1;
}

.hamrosamaya-rashi-card-icon-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(8%) sepia(94%) saturate(7151%) hue-rotate(353deg) brightness(95%) contrast(95%);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.hamrosamaya-rashi-card-name {
    margin: 0 0 6px 0;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    font-family: inherit;
    line-height: 1.2;
    flex-shrink: 0;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hamrosamaya-rashi-card-letters {
    margin: 0;
    padding: 0;
    font-size: 14px !important;
    color: #333;
    line-height: 1.3;
    font-weight: 400;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    min-height: 0;
    max-height: 100%;
    margin-bottom: 5px !important;
}

/* Responsive Design for Grid */
@media (max-width: 1200px) {
    .hamrosamaya-rashifal-grid-main {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 1fr;
        gap: 12px;
    }
    
    .hamrosamaya-rashi-card {
        padding: 12px 8px;
    }
    
    .hamrosamaya-rashi-card-icon {
        height: 50px;
        margin-bottom: 6px;
    }
    
    .hamrosamaya-rashi-card-icon-img {
        width: 45px;
        height: 45px;
    }
    
    .hamrosamaya-rashi-card-name {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .hamrosamaya-rashi-card-letters {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .hamrosamaya-rashifal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .hamrosamaya-rashifal-page-title {
        font-size: 28px;
    }
    
    .hamrosamaya-rashifal-date {
        font-size: 16px;
    }
    
    .hamrosamaya-rashifal-grid-main {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 1fr;
        gap: 12px;
    }
    
    .hamrosamaya-rashi-card {
        padding: 12px 8px;
    }
    
    .hamrosamaya-rashi-card-icon {
        height: 48px;
        margin-bottom: 6px;
    }
    
    .hamrosamaya-rashi-card-icon-img {
        width: 42px;
        height: 42px;
    }
    
    .hamrosamaya-rashi-card-name {
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    .hamrosamaya-rashi-card-letters {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .hamrosamaya-rashifal-grid-main {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 1fr;
        gap: 10px;
    }
    
    .hamrosamaya-rashi-card {
        padding: 12px 6px;
    }
    
    .hamrosamaya-rashi-card-icon {
        height: 42px;
        margin-bottom: 5px;
    }
    
    .hamrosamaya-rashi-card-icon-img {
        width: 38px;
        height: 38px;
    }
    
    .hamrosamaya-rashi-card-name {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .hamrosamaya-rashi-card-letters {
        font-size: 10px !important;
        margin-bottom: 5px !important;
    }
}

/* News Content Area Styles - Only for Rashifal Page */
.hamrosamaya-rashifal .news-content-area p,
.hamrosamaya-rashifal .news-content-area {
    font-size: 17px;
    color: #000000d6;
    margin-bottom: 20px;
    text-align: justify;
    transition: 0.3s linear font-size;
}

/* Bottom Floating Menu Styles */
.hamrosamaya-bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #ffffff 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.12), 0 -2px 10px rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px 16px 0 0;
}

.hamrosamaya-bottom-menu-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    gap: 3px;
}

.hamrosamaya-bottom-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    padding: 6px 8px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    max-width: 25%;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

.hamrosamaya-bottom-menu-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 78, 144, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.hamrosamaya-bottom-menu-item:hover::before,
.hamrosamaya-bottom-menu-item:focus::before {
    width: 120%;
    height: 120%;
}

.hamrosamaya-bottom-menu-item:hover,
.hamrosamaya-bottom-menu-item:focus {
    color: var(--primary--color, #004e90);
    background: linear-gradient(135deg, rgba(0, 78, 144, 0.08) 0%, rgba(0, 78, 144, 0.12) 100%);
    text-decoration: none;
    outline: none;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 78, 144, 0.15);
}

.hamrosamaya-bottom-menu-item.active {
    color: var(--primary--color, #004e90);
    background: linear-gradient(135deg, rgba(0, 78, 144, 0.18) 0%, rgba(0, 78, 144, 0.25) 100%);
    box-shadow: 0 4px 16px rgba(0, 78, 144, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border: 1px solid rgba(0, 78, 144, 0.2);
}

.hamrosamaya-bottom-menu-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamrosamaya-bottom-menu-icon i {
    font-size: 22px;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    color: #d11334;
}

.hamrosamaya-bottom-menu-item:hover .hamrosamaya-bottom-menu-icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 78, 144, 0.25);
    background: linear-gradient(135deg, rgba(0, 78, 144, 0.1) 0%, rgba(0, 78, 144, 0.15) 100%);
}

.hamrosamaya-bottom-menu-item.active .hamrosamaya-bottom-menu-icon {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 78, 144, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 78, 144, 0.2) 0%, rgba(0, 78, 144, 0.3) 100%);
    border: 1px solid rgba(0, 78, 144, 0.3);
}

.hamrosamaya-bottom-menu-item:hover .hamrosamaya-bottom-menu-icon i {
    transform: scale(1.2);
    color: #b0102a;
}

.hamrosamaya-bottom-menu-item.active .hamrosamaya-bottom-menu-icon i {
    transform: scale(1.25);
    color: #b0102a;
    filter: brightness(1.1);
}

.hamrosamaya-bottom-menu-label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-top: 2px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
}

.hamrosamaya-bottom-menu-item:hover .hamrosamaya-bottom-menu-label,
.hamrosamaya-bottom-menu-item.active .hamrosamaya-bottom-menu-label {
    font-weight: 700;
    transform: translateY(-1px);
}

/* Active state indicator */
.hamrosamaya-bottom-menu-item.active::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--primary--color, #004e90) 50%, transparent 100%);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 2px 6px rgba(0, 78, 144, 0.4);
    z-index: 2;
}

/* Show menu only on mobile devices */
@media (max-width: 768px) {
    .hamrosamaya-bottom-menu {
        display: block;
        animation: slideUpMenu 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @keyframes slideUpMenu {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    /* Add padding to body to prevent content from being hidden behind menu */
    body {
        padding-bottom: 58px;
    }
}

/* Tablet and larger - hide menu */
@media (min-width: 769px) {
    .hamrosamaya-bottom-menu {
        display: none !important;
    }
    
    body {
        padding-bottom: 0;
    }
}

/* Enhanced styling for better visibility */
@media (max-width: 480px) {
    .hamrosamaya-bottom-menu {
        padding: 3px 0 calc(3px + env(safe-area-inset-bottom));
        border-radius: 14px 14px 0 0;
    }
    
    .hamrosamaya-bottom-menu-container {
        padding: 0 8px;
        gap: 2px;
    }
    
    .hamrosamaya-bottom-menu-item {
        padding: 4px 6px;
    }
    
    .hamrosamaya-bottom-menu-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        margin-bottom: 3px;
    }
    
    .hamrosamaya-bottom-menu-icon i {
        font-size: 20px;
    }
    
    .hamrosamaya-bottom-menu-label {
        font-size: 12px;
        margin-top: 1px;
    }
    
    body {
        padding-bottom: 52px;
    }
}

/* Panchang Styles - Modern Compact Design */
.hamrosamaya-panchang-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

/* Top Header Section - Single Row Layout */
.hamrosamaya-panchang-header-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    gap: 15px;
}

.hamrosamaya-panchang-header-top-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hamrosamaya-panchang-header-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hamrosamaya-panchang-header-left {
    flex-shrink: 0;
}

.hamrosamaya-panchang-date-large-box {
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 30px;
    min-width: 100px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hamrosamaya-panchang-date-large {
    font-size: 56px;
    font-weight: bold;
    color: #ff9800;
    line-height: 1.2;
    margin-bottom: 8px;
}

.hamrosamaya-panchang-date-large-box .hamrosamaya-panchang-day-name {
    font-size: 18px;
    color: #333;
    font-weight: 500;
    margin: 0;
    text-align: center;
}

.hamrosamaya-panchang-header-right {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.hamrosamaya-panchang-calendar-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.hamrosamaya-panchang-vikram-full,
.hamrosamaya-panchang-nepal-full,
.hamrosamaya-panchang-tithi-full {
    font-size: 20px;
    color: #333;
    margin: 0;
    line-height: 19px;
}

.hamrosamaya-panchang-vikram-full {
    font-size: 34px;
    font-weight: 500;
    margin-bottom: 10px;
}

/* Event Section at Bottom of Header Row */
.hamrosamaya-panchang-header-event-bottom {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.hamrosamaya-panchang-header-event-bottom .hamrosamaya-panchang-event-text {
    font-size: 20px;
    color: #004e90;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: aliceblue;
    padding: 12px;
}

/* Sun Times in Header */
.hamrosamaya-panchang-header-right .hamrosamaya-panchang-sun-times {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-shrink: 0;
}

.hamrosamaya-panchang-sunrise,
.hamrosamaya-panchang-sunset {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hamrosamaya-panchang-sun-icon {
    font-size: 30px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f1f1;
    border-radius: 50%;
    border: 1px solid #e0edf8;
}

.hamrosamaya-panchang-sun-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.hamrosamaya-panchang-sun-time {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

/* Current Time Section */
.hamrosamaya-panchang-current-time-section {
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.hamrosamaya-panchang-current-time {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    text-align: center;
}

.hamrosamaya-panchang-table-main {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.hamrosamaya-panchang-table-main tr {
    border-bottom: 1px solid #e0e0e0;
}

.hamrosamaya-panchang-table-main tr:last-child {
    border-bottom: none;
}

.hamrosamaya-panchang-table-main tr.hamrosamaya-panchang-section-header {
    background: #f5f5f5;
    border-top: 2px solid #d32f2f;
    border-bottom: 2px solid #d32f2f;
}

.hamrosamaya-panchang-table-main td {
    padding: 10px 12px;
    vertical-align: middle;
    border-right: 1px solid #e0e0e0;
}

.hamrosamaya-panchang-table-main td:last-child {
    border-right: none;
}

.hamrosamaya-panchang-label {
    font-weight: 600;
    color: #333;
    background: #f9f9f9;
    width: 140px;
    text-align: right;
    padding-right: 15px;
    white-space: nowrap;
}

.hamrosamaya-panchang-value {
    color: #555;
    padding-left: 15px;
}

.hamrosamaya-panchang-section-title {
    font-weight: 700;
    font-size: 15px;
    color: #d32f2f;
    text-align: center;
    padding: 12px;
    background: #f5f5f5;
    border-right: none !important;
}

/* Compact spacing for better readability */
.hamrosamaya-panchang-table-main tr:nth-child(even) .hamrosamaya-panchang-label {
    background: #fafafa;
}

.hamrosamaya-panchang-table-main tr:hover .hamrosamaya-panchang-label {
    background: #f0f0f0;
}

.hamrosamaya-panchang-table-main tr:hover .hamrosamaya-panchang-value {
    background: #fafafa;
}

/* Responsive styles */
@media (max-width: 768px) {
    .hamrosamaya-panchang-container {
        padding: 15px;
        font-size: 13px;
    }
    
    .hamrosamaya-panchang-header-section {
        gap: 20px;
    }
    
    .hamrosamaya-panchang-header-top-row {
        gap: 20px;
        margin-top: 20px;
    }
    
    .hamrosamaya-panchang-header-main-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .hamrosamaya-panchang-header-left {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .hamrosamaya-panchang-date-large-box {
        padding: 10px 25px;
    }
    
    .hamrosamaya-panchang-date-large {
        font-size: 42px;
    }
    
    .hamrosamaya-panchang-date-large-box .hamrosamaya-panchang-day-name {
        font-size: 16px;
    }
    
    .hamrosamaya-panchang-header-right {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .hamrosamaya-panchang-calendar-info {
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .hamrosamaya-panchang-vikram-full {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .hamrosamaya-panchang-nepal-full,
    .hamrosamaya-panchang-tithi-full {
        font-size: 16px;
        line-height: 1.4;
    }
    
    .hamrosamaya-panchang-header-right .hamrosamaya-panchang-sun-times {
        width: 100%;
        justify-content: center;
        gap: 30px;
    }
    
    .hamrosamaya-panchang-sun-icon {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .hamrosamaya-panchang-sun-time {
        font-size: 16px;
    }
    
    .hamrosamaya-panchang-header-event-bottom {
        margin-top: 15px;
    }
    
    .hamrosamaya-panchang-header-event-bottom .hamrosamaya-panchang-event-text {
        font-size: 16px;
        padding: 10px;
    }
    
    /* Modern mobile table - one label-value pair per row */
    .hamrosamaya-panchang-container {
        overflow-x: visible;
        margin: 0;
        padding: 0;
    }
    
    .hamrosamaya-panchang-table-main {
        font-size: 13px;
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border: 1px solid #e0e0e0;
        border-collapse: collapse;
        display: block;
    }
    
    .hamrosamaya-panchang-table-main tbody {
        display: block;
        width: 100%;
    }
    
    .hamrosamaya-panchang-table-main tr {
        display: block;
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
        transition: background-color 0.2s ease;
    }
    
    .hamrosamaya-panchang-table-main tr:last-child {
        border-bottom: none;
    }
    
    .hamrosamaya-panchang-table-main tr:hover {
        background-color: #f8f9fa;
    }
    
    .hamrosamaya-panchang-table-main tr.hamrosamaya-panchang-section-header {
        background: #f5f5f5;
        border-top: 2px solid #d32f2f;
        border-bottom: 2px solid #d32f2f;
    }
    
    .hamrosamaya-panchang-table-main tr.hamrosamaya-panchang-section-header:hover {
        background: #f0f0f0;
    }
    
    /* Split rows into individual label-value pairs - one pair per row */
    .hamrosamaya-panchang-table-main tr:not(.hamrosamaya-panchang-section-header) {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        padding: 5px 10px;
    }
    
    /* Each td is a flex item */
    .hamrosamaya-panchang-table-main tr:not(.hamrosamaya-panchang-section-header) > td {
        display: block;
        padding: 0;
        border: none;
        margin: 0;
    }
    
    /* Label takes 40% - will wrap with its value */
    .hamrosamaya-panchang-table-main td.hamrosamaya-panchang-label {
        flex: 0 0 40%;
        min-width: 120px;
        max-width: 40%;
        padding: 12px 15px;
        background: #f8f9fa;
        border-right: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
        font-weight: 600;
        color: #333;
        text-align: left;
        box-sizing: border-box;
    }
    
    /* Value takes 60% - pairs with label above */
    .hamrosamaya-panchang-table-main td.hamrosamaya-panchang-value {
        flex: 0 0 60%;
        max-width: 60%;
        padding: 12px 15px;
        border-bottom: 1px solid #e0e0e0;
        color: #555;
        text-align: left;
        box-sizing: border-box;
    }
    
    /* Section title spans full width */
    .hamrosamaya-panchang-section-title {
        display: block;
        width: 100%;
        padding: 12px 15px;
        font-size: 14px;
        font-weight: 700;
        text-align: center;
        background: #f5f5f5;
        color: #d32f2f;
        border-bottom: 2px solid #d32f2f;
        box-sizing: border-box;
    }
}

