:root {
    --primary-color: #8b4513;
    --secondary-color: #daa520;
    --accent-color: #cd5c5c;
    --light-bg: #fff8dc;
    --dark-text: #2c1810;
    --border-color: #deb887;
    --gradient-1: linear-gradient(135deg, #8b4513, #a0522d);
    --gradient-2: linear-gradient(135deg, #daa520, #ffd700);
}

body {
    font-family: "Poppins", "Tiro Devanagari Hindi", sans-serif;
    background-color: #fdf5e6;
    color: var(--dark-text);
}

.hindi-text {
    font-family: "Tiro Devanagari Hindi", serif;
}

/* Top Header */
.top-header {
    background: var(--gradient-1);
    color: white;
    padding: 10px 0;
    border-bottom: 2px solid var(--secondary-color);
}

.top-header .contact-info {
    display: flex;
    align-items: center;
    gap: 0px;

    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.top-header .contact-info a {
    color: white;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
    border-right: 1px solid #ffffff;
    padding: 0px 5px;
}
.top-header .contact-info a:last-child {
    border-right: none;
    padding-right: 0;
}
.top-header .contact-info a:hover {
    color: var(--secondary-color);
}

.top-header .contact-info i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.top-header .social-links {
    display: flex;
    gap: 15px;
}

.top-header .social-links a {
    color: white;
    font-size: 18px;
    transition: all 0.3s;
}

.top-header .social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Main Header */
.main-header {
    background: var(--gradient-1);
    color: white;
    padding: 15px 0;
    border-bottom: 3px solid var(--secondary-color);
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-box {
    padding: 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--secondary-color);
    margin-right: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Navigation */
.navbar {
    background: var(--light-bg) !important;
    border-bottom: 2px solid var(--border-color);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.navbar-nav .nav-item {
    padding: 10px 0;
}
.navbar-nav .nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    padding: 8px 15px !important;
    border-radius: 25px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: var(--primary-color);
    color: white !important;
}

.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 8px 12px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%238B4513' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown Styles */
.dropdown-menu {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 10px;
    max-width: 300px;
}

.dropdown-item {
    color: var(--primary-color);
    padding: 8px 20px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: white;
}

.dropdown-item i {
    width: 20px;
    margin-right: 8px;
}

/* Nested Dropdown */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -10px;
    margin-left: 0;
    display: none;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.5em;
    vertical-align: middle;
    content: "";
    border-top: 0.3em solid transparent;
    border-right: 0;
    border-bottom: 0.3em solid transparent;
    border-left: 0.3em solid;
    float: right;
    margin-top: 8px;
}

/* Responsive Dropdown for Mobile */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--light-bg);
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .dropdown-menu {
        position: static !important;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
        padding-left: 20px;
        max-width: auto;
    }

    .dropdown-submenu > .dropdown-menu {
        position: static !important;
        left: 0;
        margin-left: 20px;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .dropdown-submenu .dropdown-toggle::after {
        display: none;
    }

    .nav-link.dropdown-toggle::after {
        float: right;
        margin-top: 8px;
    }

    .navbar-nav .nav-link {
        padding: 10px 15px !important;
        margin: 2px 0 !important;
    }

    .dropdown-item {
        padding: 8px 15px;
        color: var(--primary-color);
    }

    .dropdown-item:hover {
        background: rgba(139, 69, 19, 0.1);
        color: var(--primary-color);
    }

    /* Better touch targets for mobile */
    .navbar-nav .nav-link,
    .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Small devices */
@media (max-width: 576px) {
    .navbar-collapse {
        max-height: 70vh;
        overflow-y: auto;
    }

    .nav-link {
        font-size: 0.95rem;
    }

    .dropdown-item {
        font-size: 0.9rem;
    }
}

/* Hero Slider */
.hero-slider {
    height: 500px;
    overflow: hidden;
}

.hero-slide {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.3)
    );
}

.slide-content {
    position: relative;
    color: white;
    z-index: 2;
    max-width: 600px;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Welcome Section */
.welcome-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}
.welcome-section .welcome-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.welcome-section .hindi-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Celebration Section */
.celebration-section {
    background: linear-gradient(135deg, #fff3e0, #ffe4e1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.celebration-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.celebration-item:hover {
    transform: translateY(-2px);
}

.celebration-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
    font-size: 1.2rem;
}

.birthday {
    background: #ff69b4;
}
.anniversary {
    background: #4169e1;
}

/* Death News */
.death-news {
    background: #f5f5f5;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #dddddd;
    border-left: 5px solid #696969;
}

.death-item {
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #a9a9a9;
}

.death-item i {
    color: #696969;
    margin-right: 10px;
}

/* News Ticker */
.news-ticker {
    background: #2c1810;
    color: white;
    padding: 5px 0;
    border-bottom: 2px solid var(--secondary-color);
}

.ticker-label {
    background: var(--secondary-color);
    color: #2c1810;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin-right: 20px;
    white-space: nowrap;
    font-size: 14px;
}

.ticker-content {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.ticker-items {
    display: flex;
    animation: ticker 40s linear infinite;
    white-space: nowrap;
}

.ticker-items:hover {
    animation-play-state: paused;
}

.ticker-items span {
    margin-right: 50px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.ticker-items i {
    color: var(--secondary-color);
    margin-right: 8px;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Counter Section */
.counter-section {
    background: var(--gradient-1);
    padding: 60px 0;
    color: white;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.counter-box {
    text-align: center;
    position: relative;
    z-index: 1;
}

.counter-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1;
}

.counter-label {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Features Section */
.features-section {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-2);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-2);
    border-radius: 2px;
}

.feature-card {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    /*margin-bottom: 30px;*/
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.2);
    border-color: var(--secondary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    background: var(--gradient-2);
    color: var(--primary-color);
    transform: rotateY(360deg);
}

.feature-card h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 18px;
}

.feature-card p {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.feature-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.feature-link:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Section Headers */
.section-header {
    margin-bottom: 15px;
    position: relative;
}

.section-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    display: block;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color);
}

.section-header i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1.8rem;
}

/* Latest News */
.latest-news {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border-left: 5px solid var(--secondary-color);
}

.news-item {
    padding: 15px 0px;
    border-bottom: 1px dashed var(--border-color);
    transition: all 0.3s;
}
.news-item p {
    margin-bottom: 5px;
}

.news-item:hover {
    /*background: var(--light-bg);*/
    transform: translateX(5px);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h5 a {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
    text-decoration: none;
}
.news-item p {
    font-size: 14px;
}
.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.read-more:hover {
    color: var(--primary-color);
}

.all-news-btn {
    color: var(--secondary-color);
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}
.all-news-btn:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Entertainment Section */
.entertainment-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.knowledge-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.knowledge-list li {
    padding: 5px 0;
    /*border-bottom: 1px dashed var(--border-color);*/
}

.knowledge-list li:last-child {
    border-bottom: 0px none;
}

.knowledge-list a {
    color: var(--dark-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    font-size: 14px;
}

.knowledge-list a:hover {
    color: var(--secondary-color);
    /*padding-left: 5px;*/
}

.knowledge-list i {
    color: var(--secondary-color);
    width: 25px;
}
.accordion-button::after {
    color: #fff;
}
.accordion-button:focus {
    box-shadow: none;
}
.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
}
.accordion-button.collapsed {
    background: var(--light-bg);
    color: #000000;
}
/* Video Gallery */
.video-gallery {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.video-thumbnail {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.video-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(218, 165, 32, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.8rem;
}

/* Photo Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--secondary-color);
    font-size: 2rem;
}

/* Login Widget */
.login-widget {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.login-widget h4 {
    color: var(--primary-color);
    text-align: center;
    font-weight: 600;
    margin-bottom: 25px;
}

.btn-login {
    background: var(--primary-color);
    color: white;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
}

.btn-login:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* Follow Section */
.follow-section {
    background: linear-gradient(135deg, #4267b2, #3b5998);
    color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.follower-count {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 15px 0;
}

.btn-follow {
    background: white;
    color: #4267b2;
    border: none;
    padding: 12px 35px;
    border-radius: 25px;
    font-weight: 600;
}

/* Footer Contact Details */
.footer .contact-details {
    background: var(--primary-color);
    color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.footer .contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.footer .contact-info i {
    width: 30px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.btn-contact {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
}

.btn-contact:hover {
    background: white;
    color: var(--primary-color);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.tool-item {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 5px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.tool-item:hover {
    background: var(--secondary-color);
    color: white;
}

.tool-item i {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 5px;
    display: block;
}

.tool-item:hover i {
    color: white;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 999;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
}

.back-to-top:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

/* Footer */
.footer {
    background: #2c1810;
    color: white;
    padding: 60px 0 20px;
    margin-top: 50px;
    border-top: 3px solid var(--secondary-color);
}

.footer-widget h5 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h5::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    margin-right: 10px;
    transition: all 0.3s;
}

.footer .social-links a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-slider,
    .hero-slide {
        height: 400px;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .counter-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .logo-area {
        flex-direction: column;
        text-align: center;
    }

    .logo-box {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .ticker-label {
        display: block;
        margin-bottom: 10px;
        text-align: center;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* Advertisement */
.ad-space {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-bottom: 30px;
    border: 2px dashed var(--border-color);
}

.ad-placeholder {
    height: 250px;
    background: rgba(139, 69, 19, 0.03);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}
