/* Modern UI/UX for Tamil Nadu Jairam Yathra Association */
@import url('https://fonts.googleapis.com/css2?family=Hind+Madurai:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #FF6600;
    --secondary-color: #FF9933;
    --accent-color: #FFD700;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hind Madurai', 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 2000;
}

.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo img {
    height: 70px;
    width: auto;
}

.nav-links {
    display: flex;
}

.nav-links li {
    position: relative;
    margin-left: 20px;
}

.nav-links a {
    font-weight: 600;
    color: var(--dark-color);
    padding: 10px 0;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Modern Form Design */
.contact-form {
    background: var(--white);
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-form h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.contact-form h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #edf2f7;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #f8fafc;
    color: var(--dark-color);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: var(--white);
    outline: none;
    box-shadow: 0 0 0 5px rgba(255, 102, 0, 0.15);
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 16px 35px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.3);
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 102, 0, 0.4);
    filter: brightness(1.1);
}

.form-group input[type="file"] {
    padding: 12px;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: var(--primary-color);
    background: #f8fafc;
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow);
    top: 100%;
    left: 0;
    border-radius: 4px;
    overflow: hidden;
    z-index: 2001;
    border-top: 3px solid var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li {
    margin: 0;
}

.dropdown-content a {
    padding: 12px 20px;
    display: block;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.dropdown-content a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Hero Slider */
.hero {
    height: 70vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 300%;
    height: 100%;
    display: flex;
    animation: slide 15s infinite;
}

.slide {
    width: 33.333%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.slide1 { background-image: url('../assets/hero1.jpg'); }
.slide2 { background-image: url('../assets/hero2.jpg'); }
.slide3 { background-image: url('../assets/hero3.jpg'); }

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

@keyframes slide {
    0% { transform: translateX(0); }
    30% { transform: translateX(0); }
    33% { transform: translateX(-33.333%); }
    63% { transform: translateX(-33.333%); }
    66% { transform: translateX(-66.666%); }
    96% { transform: translateX(-66.666%); }
    100% { transform: translateX(0); }
}

/* Layout Wrapper & Left Sidebar */
.layout-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.left-sidebar {
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 30px;
    border-top: 5px solid var(--primary-color);
}

.sidebar-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.vertical-ticker-wrap {
    height: 500px;
    overflow: hidden;
    position: relative;
}

.vertical-ticker-move {
    display: flex;
    flex-direction: column;
    animation: vertical-ticker 30s linear infinite;
}

.vertical-ticker-move:hover {
    animation-play-state: paused;
}

.ticker-card {
    background: var(--light-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.ticker-card:hover {
    transform: scale(1.02);
}

.ticker-card p {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.ticker-card small {
    display: block;
    color: var(--gray);
    font-size: 0.8rem;
}

@keyframes vertical-ticker {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* Sections */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.about-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--primary-color);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 25px;
    color: var(--accent-color);
}

.footer-col p {
    margin-bottom: 15px;
    color: #bdc3c7;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3e4f5f;
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Responsive */
@media (max-width: 1024px) {
    header {
        position: fixed;
        width: 100%;
    }

    body {
        padding-top: 130px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 130px;
        left: 0;
        width: 100%;
        height: calc(100vh - 130px);
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        z-index: 1999;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 10px;
        border-bottom: 1px solid #f0f0f0;
    }

    .dropdown-content {
        position: static;
        display: block;
        box-shadow: none;
        padding-left: 20px;
        background: var(--light-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown:hover .dropdown-content {
        max-height: 500px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .layout-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .left-sidebar {
        position: static;
        order: 2;
    }

    .hero {
        height: 50vh;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .layout-wrapper {
        grid-template-columns: 1fr;
    }
    .left-sidebar {
        position: static;
    }
    .vertical-ticker-wrap {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}
