:root {
    --tdp-yellow: #FFDE14;
    /* Standard TDP Yellow */
    --tdp-red: #E70D06;
    /* Alert/Action Red */
    --dark-text: #2c3e50;
    --light-text: #ecf0f1;
    --white: #ffffff;
    --gray-bg: #f9f9f9;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-heading: "Anek Telugu", sans-serif;
    --font-body: "Anek Telugu", "Poppins", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    font-family: var(--font-body);
    background-color: var(--gray-bg);
    color: var(--dark-text);
    padding-bottom: 70px;
    /* Space for bottom nav */
    padding-top: 60px;
    /* Space for fixed header */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--tdp-yellow);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    color: var(--tdp-red);
}

.splash-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--tdp-red);
    margin-bottom: 20px;
    object-fit: cover;
    background: var(--white);
}

.splash-content h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--tdp-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.loading-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--tdp-red);
    border-radius: 50%;
    margin: 0 5px;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Header */
.app-header {
    background-color: var(--white);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid var(--tdp-yellow);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tdp-logo img {
    height: 40px;
}

.app-header h1 {
    font-size: 1.2rem;
    color: var(--tdp-red);
    margin: 0;
    font-weight: 800;
}

/* Nav Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--tdp-red);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--tdp-yellow) 0%, #F7DC6F 100%);
    padding: 40px 20px 60px;
    text-align: center;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(244, 208, 63, 0.4);
}

.hero-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: var(--white);
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--tdp-red);
}

.hero-content h2 {
    color: var(--tdp-red);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.hero-content p {
    color: #555;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.cta-btn {
    background-color: var(--tdp-red);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    transition: var(--transition);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

/* Section Styling */
section {
    padding: 20px;
    margin-bottom: 20px;
}

section h3 {
    color: var(--tdp-red);
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background-color: var(--tdp-yellow);
    border-radius: 2px;
}

/* Cards */
.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.issue-card {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.issue-card:hover {
    transform: translateY(-5px);
    border-color: var(--tdp-yellow);
}

.issue-card i {
    font-size: 2rem;
    color: var(--tdp-yellow);
    margin-bottom: 15px;
    background: rgba(244, 208, 63, 0.1);
    /* light yellow bg */
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
}

.issue-card h4 {
    margin-bottom: 8px;
    color: var(--dark-text);
    font-size: 1.1rem;
}

.issue-card p {
    font-size: 0.85rem;
    color: #666;
}

/* Event Items */
.event-item {
    display: flex;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 15px;
}

.event-date {
    background-color: var(--tdp-red);
    color: var(--white);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.event-details {
    padding: 15px;
    flex-grow: 1;
}

.event-details h4 {
    color: var(--dark-text);
    margin-bottom: 5px;
}

.event-details p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 3px;
}

.event-details i {
    color: var(--tdp-yellow);
    width: 20px;
}

/* Contact Form */
input,
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: var(--font-body);
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--tdp-yellow);
    outline: none;
}

.submit-btn {
    width: 100%;
    background-color: var(--tdp-red);
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: #c0392b;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #95a5a6;
    text-decoration: none;
    font-size: 0.75rem;
    transition: var(--transition);
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--tdp-red);
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: var(--white);
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu-content {
    left: 0;
}

.menu-header {
    background: var(--tdp-yellow);
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-header h2 {
    color: var(--tdp-red);
    margin: 0;
    font-size: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--tdp-red);
    cursor: pointer;
}

.menu-list {
    list-style: none;
    padding: 20px;
}

.menu-list li {
    margin-bottom: 20px;
}

.menu-list a {
    text-decoration: none;
    color: var(--dark-text);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 10px;
    transition: var(--transition);
}

.menu-list a:hover,
.menu-list a.active {
    background: #fff9c4;
    /* Light yellow */
    color: var(--tdp-red);
}

.category-card[data-category="mandal"] i {
    color: #e67e22;
}

.category-card[data-category="rural"] i {
    color: #27ae60;
}

.category-card[data-category="village"] i {
    color: #2980b9;
}

/* Leader List Items */
.leader-item {
    background: var(--white);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.leader-info h5 {
    margin: 0;
    color: var(--dark-text);
    font-size: 1rem;
}

.leader-position {
    font-size: 0.8rem;
    color: var(--tdp-red);
    margin: 0;
}

.leader-location {
    font-size: 0.75rem;
    color: #888;
}

.leader-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
}

.call-btn {
    background-color: #3498db;
}

.whatsapp-btn {
    background-color: #25D366;
}

/* News Styles */
.news-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}

.news-date {
    background: var(--tdp-yellow);
    padding: 5px 15px;
    color: var(--tdp-red);
    font-weight: bold;
    font-size: 0.8rem;
    display: inline-block;
    width: fit-content;
    border-bottom-right-radius: 10px;
}

.news-content {
    padding: 15px;
}

.news-content h4 {
    color: var(--dark-text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.news-tags {
    margin-top: 10px;
}

.tag {
    background: #f1f1f1;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: #777;
    margin-right: 5px;
}

/* Search Button */
.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-btn {
    background-color: var(--tdp-red);
    color: var(--white);
    border: none;
    padding: 0 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: #c0392b;
}

/* Scroll To Top */
.scroll-top {
    position: fixed;
    bottom: 80px;
    /* Above bottom nav */
    right: 20px;
    background-color: var(--tdp-red);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    transform: translateY(20px);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background-color: var(--tdp-yellow);
    color: var(--tdp-red);
    transform: translateY(-5px);
}