@charset "utf-8";
:root {
    --primary: #1a5276;
    --secondary: #e74c3c;
    --accent: #f39c12;
    --light: #f8f9fa;
    --dark: #212529;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 4rem 0;
}

h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary);
}

/* Header Styles */
header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    color: var(--primary);
    margin: 0;
    font-size: 1.5rem;
}

.logo p {
    color: var(--secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: var(--secondary);
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
#home {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/caste-census.webp');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 0 6rem;
    margin-top: 60px;
}

#home h2 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

#home p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    margin: 0.5rem;
}

.btn-primary {
    background: var(--secondary);
    color: white;
    border: 2px solid var(--secondary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--secondary);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

/* Search */
.search-box {
    background-color: var(--primary);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.search-box h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 16px;
}

.search-input {
    display: flex;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
}

.search-input select {
    border: none;
    padding: 10px;
    background-color: #f0f0f0;
    font-size: 14px;
    width: 100%;
}

.search-input input {
    flex: 1;
    border: none;
    padding: 10px;
    font-size: 14px;
}

/* About Section */
#about {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-image {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Quick Links */
#quick-links {
    background: var(--light);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* SECC Lists Section */
#secc-lists {
    background: white;
}

/* Registration Form */
#register {
    background: var(--light);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, 
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
}

/* FAQ Section */
#faq {
    background: white;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-header {
    padding: 1rem;
    background: var(--light);
    cursor: pointer;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-content {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 1rem;
    max-height: 500px;
}

/* Contact Section */
#contact {
    background: var(--primary);
    color: white;
}

#contact h2 {
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-info h3 {
    color: white;
}

.contact-info p {
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: white;
    margin: 0 1rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    nav li {
        margin: 0.5rem 0;
    }

    .mobile-menu {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    #home h2 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box input {
        border-radius: 5px;
        margin-bottom: 0.5rem;
    }

    .search-box button {
        border-radius: 5px;
        padding: 0.8rem;
    }
}