/* रंग संकल्पना (Color Palette) */
:root {
    --sky-blue: #8ecae6;
    --blue-green: #219ebc;
    --deep-space: #023047;
    --amber-flame: #ffb703;
    --tiger-orange: #fb8500;
    --primary: var(--deep-space);
    --secondary: var(--blue-green);
    --accent: var(--amber-flame);
    --accent-dark: var(--tiger-orange);
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans Devanagari', 'Inter', 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f5 100%);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* टायपोग्राफी */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--deep-space);
    margin-bottom: 1rem;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    color: var(--blue-green);
    text-decoration: none;
    transition: 0.2s ease;
}
a:hover { color: var(--tiger-orange); }

/* बटन्स */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: 0.3s ease;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--blue-green), var(--deep-space));
    color: white;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--blue-green);
    color: var(--blue-green);
}
.btn-outline:hover {
    background: var(--blue-green);
    color: white;
}
.btn-accent {
    background: linear-gradient(135deg, var(--amber-flame), var(--tiger-orange));
    color: white;
}
.btn-accent:hover {
    transform: translateY(-2px);
    color: white;
}
.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* नेव्हिगेशन बार */
.navbar {
    background: linear-gradient(135deg, var(--deep-space), #043b55);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo { font-size: 1.75rem; font-weight: 800; padding: 1rem 0; }
.logo a {
    background: linear-gradient(135deg, var(--sky-blue), var(--amber-flame));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-menu li a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}
.nav-menu li a:hover, .nav-menu li a.active {
    color: var(--amber-flame);
    border-bottom-color: var(--amber-flame);
}
.nav-actions { display: flex; gap: 1rem; align-items: center; }
.nav-actions .nav-link {
    color: white;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}
.nav-actions .nav-link:hover {
    color: var(--amber-flame);
    border-bottom-color: var(--amber-flame);
}
.btn-nav {
    background: var(--amber-flame);
    color: var(--deep-space);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
}
.btn-nav-outline {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}
.btn-nav-outline:hover { background: white; color: var(--deep-space); }
.btn-logout {
    border-color: #e74c3c !important;
    color: #e74c3c !important;
}
.btn-logout:hover {
    background: #e74c3c !important;
    color: white !important;
}
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 2-कॉलम लेआउट */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}
@media (max-width: 992px) {
    .main-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* न्यूज कार्ड्स */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.news-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: 0.3s ease;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.news-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card:hover .news-card-image img { transform: scale(1.05); }
.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--amber-flame);
    color: var(--deep-space);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}
.news-card-content { padding: 1.25rem; }
.news-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.75rem; }
.news-title a { color: var(--deep-space); }
.news-title a:hover { color: var(--blue-green); }
.news-excerpt {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--gray-500);
    border-top: 1px solid var(--gray-200);
    padding-top: 0.75rem;
}

/* सिंगल न्यूज पेज */
.single-news {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}
.single-news-title { font-size: 2rem; margin-bottom: 1rem; color: var(--deep-space); }
.single-news-meta {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.875rem;
    color: var(--gray-600);
    flex-wrap: wrap;
}
.single-news-image {
    margin: 1.5rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.single-news-image img { width: 100%; max-height: 500px; object-fit: cover; }
.single-news-content { font-size: 1.125rem; line-height: 1.8; }
.single-news-content p { margin-bottom: 1.25rem; }
.single-news-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 1rem 0; }

/* साइडबार */
.sidebar { position: sticky; top: 100px; }
.sidebar-widget {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}
.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--amber-flame);
    color: var(--deep-space);
}
.saint-card { text-align: center; margin-bottom: 1.5rem; }
.saint-card img {
    width: 100%;
    max-width: 200px;
    margin-bottom: 1rem;
    border: 4px solid var(--amber-flame);
}
.saint-name { font-size: 1.125rem; font-weight: 700; color: var(--deep-space); }
.saint-name-marathi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 0.875rem;
    color: var(--gray-600);
}
.popular-news-list, .category-list { list-style: none; }
.popular-news-list li, .category-list li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}
.popular-news-list li a, .category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}
.news-count {
    background: var(--gray-200);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}
.show-more-btn {
    background: none;
    border: none;
    color: var(--blue-green);
    font-size: 0.875rem;
    cursor: pointer;
}
.show-more-btn:hover { color: var(--tiger-orange); }
.category-list-full { display: block; }
.category-list-full.hidden { display: none; }

/* सबस्क्रिप्शन फॉर्म */
.subscribe-form { display: flex; flex-direction: column; gap: 1rem; }
.subscribe-form input {
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}
.subscribe-form button {
    background: linear-gradient(135deg, var(--blue-green), var(--deep-space));
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
}
.subscribe-note { font-size: 0.75rem; color: var(--gray-500); text-align: center; }
.info-text { font-size: 0.875rem; color: var(--gray-600); line-height: 1.5; }
.info-links { display: flex; gap: 1rem; margin-top: 1rem; font-size: 0.875rem; flex-wrap: wrap; }

/* पेजिनेशन */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
}
.pagination a:hover { background: var(--blue-green); color: white; border-color: var(--blue-green); }
.pagination .active {
    background: linear-gradient(135deg, var(--blue-green), var(--deep-space));
    color: white;
    border-color: transparent;
}
.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.pagination .ellipsis {
    border: none;
    background: transparent;
    color: var(--gray-600);
    min-width: auto;
    padding: 0 0.25rem;
}

/* फूटर */
.footer {
    background: linear-gradient(135deg, var(--deep-space), #021c2b);
    color: white;
    margin-top: 3rem;
    padding: 3rem 0 1rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--amber-flame);
}
.social-links { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: 0.3s ease;
}
.social-links a:hover {
    background: var(--amber-flame);
    color: var(--deep-space);
    transform: translateY(-3px);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links li a { color: #adb5bd; font-size: 0.875rem; }
.footer-links li a:hover { color: var(--amber-flame); }
.contact-info p { margin-bottom: 0.5rem; font-size: 0.875rem; color: #adb5bd; }
.contact-info i { width: 25px; color: var(--amber-flame); }
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.75rem;
    color: #6c757d;
}
.footer-bottom a { color: var(--amber-flame); }

/* Mobile Matrimonial Button - hidden on desktop, shown on mobile */
.matri-mobile-btn {
    display: none;
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .matri-mobile-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: linear-gradient(135deg, #e74c3c, #c0392b);
        color: #fff;
        padding: 12px 20px;
        border-radius: 8px;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
        transition: transform 0.2s, box-shadow 0.2s;
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    }
    .matri-mobile-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
        color: #fff;
    }
    .matri-mobile-btn i {
        font-size: 1.2rem;
    }
    .nav-menu, .nav-actions {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    .nav-menu.active, .nav-actions.active { display: flex; }
    .nav-menu li a { display: block; padding: 0.5rem 0; }
    .news-grid { grid-template-columns: 1fr; }
    .single-news-title { font-size: 1.5rem; }
    .single-news { padding: 1rem; }
    .sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .logo { font-size: 1.25rem; }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    .btn { padding: 0.5rem 1rem; }
}
