* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 95px;
    text-align: center;
    font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(51, 51, 51, 0.9);
    border-color: rgba(51, 51, 51, 0.9);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    cursor: pointer;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Middle Section */
.middle-section {
    text-align: center;
    padding: 2rem 0;
    background: #fff;
}

.middle-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Content Section */
.content {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #b8860b;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.content p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Leadership Grid */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.leader-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.leader-card h3 {
    color: #b8860b;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.leader-card p {
    color: #666;
    line-height: 1.6;
}

.leader-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.learn-more-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.learn-more-btn:hover {
    transform: translateY(-2px);
}

/* Footer Image Section */
.footer-image-section {
    text-align: center;
    padding: 2rem 0;
    background: #fff;
}

.footer-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background: #b8860b;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

.footer-credit {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #ffd700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffd700;
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        justify-content: center;
        margin: 0.2rem 0;
        border-radius: 0;
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }

    .hamburger {
        display: flex;
    }
}

    .hero-content {
        padding: 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* About Page Styles */
.family-tree {
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.tree-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.tree-generation {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.tree-member {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.tree-member h3 {
    margin-bottom: 0.5rem;
}

.tree-member .role {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Politics Page Styles */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #b8860b;
}

.timeline-item {
    position: relative;
    padding: 2rem;
    width: calc(50% - 2rem);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: calc(50% + 2rem);
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 3px solid #b8860b;
    border-radius: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd)::before {
    right: -2.5rem;
}

.timeline-item:nth-child(even)::before {
    left: -2.5rem;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

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

/* Contact Page Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem 0;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }
    
    .leadership-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .profile-content h2 {
        font-size: 1.8rem;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline::before {
        left: 1rem;
    }
    
    .timeline-item:nth-child(odd)::before {
        right: -1rem;
    }
    
    .timeline-item:nth-child(even)::before {
        left: -1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .content h2 {
        font-size: 2rem;
    }
    
    .tree-generation {
        flex-direction: column;
        align-items: center;
    }
    
    .service-category {
        margin-bottom: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffd700;
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        justify-content: center;
        margin: 0.2rem 0;
        border-radius: 0;
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .hamburger {
        display: flex;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .content h2 {
        font-size: 1.8rem;
    }
    
    .leader-card {
        padding: 1.5rem;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .profile-image img {
        height: 300px;
    }
    
    .timeline-item {
        padding: 1.5rem;
    }
    
    .tree-member {
        padding: 1rem;
        min-width: 280px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .map-container {
        padding: 1.5rem;
    }
}

.profile-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.profile-content h2 {
    color: #b8860b;
    margin-bottom: 1rem;
}

.profile-content h3 {
    color: #666;
    margin-bottom: 0.5rem;
}

.achievements-impact {
    margin: 3rem 0;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.achievement-item {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.achievement-item h3 {
    color: #b8860b;
    margin-bottom: 1rem;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.final-position {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.final-position h3 {
    color: #b8860b;
    margin-bottom: 1rem;
}

.final-position p {
    color: #333;
    margin: 0.5rem 0;
    font-weight: 500;
}

.current-position {
    background: rgba(0, 150, 0, 0.1);
    border: 2px solid #009639;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.current-position h3 {
    color: #009639;
    margin-bottom: 1rem;
    text-align: center;
}

.current-position p {
    color: #333;
    margin: 0.3rem 0;
    font-weight: 500;
}

.current-position p strong {
    color: #009639;
}

.rammohan-position {
    background: rgba(0, 123, 255, 0.1);
    border: 2px solid #007bff;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.rammohan-position h3 {
    color: #007bff;
    margin-bottom: 1rem;
    text-align: center;
}

.rammohan-position p {
    color: #333;
    margin: 0.3rem 0;
    font-weight: 500;
}

.rammohan-position p strong {
    color: #007bff;
}

.bhavani-position {
    background: rgba(255, 105, 180, 0.1);
    border: 2px solid #ff69b4;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.bhavani-position h3 {
    color: #ff69b4;
    margin-bottom: 1rem;
    text-align: center;
}

.bhavani-position p {
    color: #333;
    margin: 0.3rem 0;
    font-weight: 500;
}

.bhavani-position p strong {
    color: #ff69b4;
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #b8860b;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e1e8ed;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3c72;
}

.submit-btn {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.map-container {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-placeholder {
    background: #f0f0f0;
    height: 300px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 2rem;
    }

    .timeline-item {
        width: calc(100% - 4rem);
        left: 4rem !important;
    }

    .timeline-item::before {
        left: -2.5rem !important;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .tree-generation {
        flex-direction: column;
        align-items: center;
    }
}