@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;800&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Noto+Serif+Devanagari:wght@400;700&display=swap');

:root {
    --primary-color: #8b0000;
    /* Deep Crimson */
    --primary-dark: #660000;
    --secondary-color: #b8860b;
    /* Muted Gold */
    --accent-color: #d2b48c;
    /* Tan */
    --background-color: #f9f7f2;
    /* Ivory/Paper */
    --surface-color: #ffffff;
    --surface-color-hover: #f1ede4;
    --text-color: #2d2d2d;
    --text-muted: #666666;
    --heading-color: #1a1a1a;
    --border-color: #e0d9c5;
    --gradient-main: linear-gradient(135deg, #8b0000, #b8860b);
    --font-heading: 'Playfair Display', 'Noto Serif Devanagari', serif;
    --font-body: 'Lora', 'Noto Serif Devanagari', serif;
    --border-radius: 8px;
    /* Sharper, more classic */
    --box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.light-mode {
    --background-color: #ffffff;
    --surface-color: #fdfdfd;
    --surface-color-hover: #f8f9fa;
    --text-color: #1a1a1a;
    --text-muted: #555555;
    --heading-color: #000000;
    --border-color: #eeeeee;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--border-radius);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--background-color);
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    align-items: center;
}

[class*="col-"] {
    padding-right: 15px;
    padding-left: 15px;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Header */
header {
    background-color: rgba(249, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.2px;
}

.logo-icon {
    font-size: 2rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
}

.theme-toggle {
    background: var(--border-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 20px;
}

.theme-toggle:hover {
    background: var(--surface-color-hover);
    border-color: var(--primary-color);
    transform: rotate(30deg);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 19, 0.6);
    z-index: 2;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.slide h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 25px;
    background: linear-gradient(to right, #fff, #a29bfe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.slide p {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 40px;
}

/* Page Header / Static Banners */
.page-header {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 15, 19, 0.8), rgba(15, 15, 19, 0.4));
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* Responsive Slider */
@media (max-width: 768px) {
    .hero-slider {
        height: 500px;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-img {
        width: 100%;
        height: 200px;
        flex: 0 0 auto;
    }

    .news-date {
        align-self: flex-start;
    }

    .slide h1 {
        font-size: 2.5rem;
    }

    .page-header {
        height: 250px;
    }
}

/* Cards Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-color);
}

.card-content {
    padding: 30px;
    flex-grow: 1;
}

.card-category {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.card-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.card-excerpt {
    color: var(--text-muted);
    font-family: var(--font-body);
    line-height: 1.8;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Testimonials Slider */
.testimonials-container {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding-bottom: 40px;
}

.testimonials-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.testimonial-slide {
    flex: 0 0 100%;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--surface-color-hover);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.read-more:hover {
    gap: 10px;
}

/* News Specific Styles */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition);
    display: flex;
    gap: 20px;
    align-items: center;
}

.news-item:hover {
    border-color: var(--secondary-color);
    transform: translateX(5px);
}

.news-img {
    flex: 0 0 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 10px;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-item:hover .news-img img {
    transform: scale(1.1);
}

.news-content {
    flex: 1;
}

.news-date {
    background: var(--surface-color-hover);
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 80px;
}

.news-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
}

.news-date .month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--secondary-color);
}

.news-content h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.news-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Details Page Styles */
.details-header {
    margin-bottom: 40px;
    text-align: center;
}

.details-title {
    font-size: 3rem;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.details-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.details-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.details-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 50px;
}

.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.article-content {
    font-size: 1.25rem;
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 2;
    text-align: center;
}

.article-content p {
    margin-bottom: 30px;
}

.article-content h2 {
    font-size: 2.2rem;
    margin-top: 50px;
    margin-bottom: 30px;
    color: var(--heading-color);
    font-family: var(--font-heading);
}

.article-content ul,
.article-content ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--heading-color);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--surface-color);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
}

.category-list a:hover {
    color: var(--primary-color);
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--surface-color);
    padding: 50px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact-info-item {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-content h3 {
    font-size: 1.2rem;
    color: var(--heading-color);
    margin-bottom: 5px;
}

.contact-content p {
    color: var(--text-muted);
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

/* FAQ Accordion */
.faq-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.faq-question i {
    transition: var(--transition);
    color: var(--secondary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    padding-bottom: 25px;
}

.faq-answer p {
    color: var(--text-muted);
}

/* Footer */
footer {
    background-color: var(--surface-color);
    padding: 80px 0 30px;
    margin-top: 100px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.poem-body {
    max-width: 600px;
    margin: 0 auto 50px;
    text-align: left;
    font-size: 1.4rem;
    line-height: 2.2;
    color: var(--text-color);
    padding: 40px;
    background: #fff;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-desc {
    color: var(--text-muted);
    margin-bottom: 25px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-color-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--heading-color);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-heading {
    color: var(--heading-color);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--background-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        left: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}