/* ========================================
   CSS Variables & Base Styles
======================================== */
:root {
    --primary: #00aeef;          /* nachole.com blå */
    --primary-dark: #0090c8;
    --primary-light: #e6f7fd;
    --accent: #f7941d;           /* nachole.com orange */
    --accent-light: #fef3e2;
    --text-dark: #1a1a2e;
    --text-muted: #6b7280;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Language Toggle
======================================== */
.lang-toggle {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 10px;
    margin-left: 12px;
}
.lang-btn {
    cursor: pointer;
    padding: 4px 8px;
    border: none;
    background: transparent;
    color: inherit;
    font-size: inherit;
    transition: opacity 0.2s;
}
.lang-btn:hover {
    opacity: 0.7;
}
.lang-btn.active {
    font-weight: 700;
    text-decoration: underline;
}

/* ========================================
   Typography
======================================== */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
}

h2 {
    font-size: 2rem;
    color: var(--primary-dark);
}

h3 {
    font-size: 1.25rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

.btn-login{
    background: transparent;
    border: none;
    color: var(--primary);
}

.btn-login:hover{
     background: transparent;
    color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.header-auth .btn-sm {
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
    border-radius: 20px;
    line-height: 1.2;
}

/* ========================================
   Header & Navigation
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;

}

.logo a {
    display: inline-block;

}
.logo-img {
    height: 132px;
    width: auto;
    display: block;
    object-fit: contain;

}

.logo-icon {
    font-size: 2.5rem;
}

.logo-text h1 {
    font-size: 1.25rem;
    color: var(--primary);
    margin: 0;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav a {
    display: block;
    padding: 8px 16px;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.nav a:hover,
.nav a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   Hero Section
======================================== */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    margin-top: 90px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='[w3.org](http://www.w3.org/2000/svg)'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    padding: 60px 20px;
}

.hero-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: white;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Stats Section
======================================== */
.stats {
    padding: 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========================================
   Section Styles
======================================== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header p {
    color: var(--text-muted);
    margin-top: 8px;
    font-size: 1.1rem;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* ========================================
   News Section
======================================== */
.news {
    background: var(--bg-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.news-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.news-content {
    padding: 20px;
}

.news-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.news-category {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.news-content h3 {
    margin-bottom: 8px;
    transition: var(--transition);
}

.news-card:hover .news-content h3 {
    color: var(--primary);
}

.news-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========================================
   Services Section
======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.service-card h3 {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.service-link {
    font-weight: 500;
    color: var(--primary);
}

.service-link:hover {
    color: var(--accent);
}

/* ========================================
   Events Section
======================================== */
.events {
    background: var(--bg-white);
}

.events-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.event-card:hover {
    background: var(--primary-light);
}

.event-date {
    min-width: 70px;
    text-align: center;
    padding: 12px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
}

.event-date .day {
    font-size: 1.75rem;
    font-weight: 700;
    display: block;
}

.event-date .month {
    font-size: 0.85rem;
    opacity: 0.9;
}

.event-info h4 {
    margin-bottom: 6px;
}

.event-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.event-location {
    font-size: 0.85rem;
    color: var(--primary);
}

/* Calendar Widget */
.calendar-widget {
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-header h3 {
    color: var(--primary);
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 5px 10px;
    color: var(--text-muted);
    transition: var(--transition);
}

.calendar-nav:hover {
    color: var(--primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.calendar-day-header {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 8px;
}

.calendar-day {
    padding: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.calendar-day:hover {
    background: var(--primary-light);
}

.calendar-day.today {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.calendar-day.has-event {
    position: relative;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.calendar-day.other-month {
    color: var(--border);
}

/* ========================================
   Community Forum Section
======================================== */
.community-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.forum-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.forum-post {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.author-info strong {
    display: block;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-category-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.post-content {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 16px;
}

.post-actions {
    display: flex;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.post-action {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.post-action:hover {
    color: var(--primary);
}

/* New Post Form */
.new-post-form {
    background: var(--bg-white);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
}

.new-post-form h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ========================================
   Emergency Section
======================================== */
.emergency {
    background: linear-gradient(135deg, var(--accent) 0%, #d32f2f 100%);
    padding: 40px 0;
}

.emergency h2 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.emergency-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.emergency-card:hover {
    background: rgba(255, 255, 255, 0.25);
}

.emergency-icon {
    font-size: 2rem;
}

.emergency-info {
    color: white;
}

.emergency-info strong {
    display: block;
    margin-bottom: 4px;
}

.emergency-info a {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
}

/* ========================================
   Contact Section
======================================== */
.contact {
    background: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--primary);
}

.contact-form {
    background: var(--bg-light);
    padding: 32px;
    border-radius: var(--radius);
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 5px 0;
}

/* ========================================
   Toast Notification
======================================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-dark);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--primary);
}

.toast.error {
    background: var(--accent);
}

/* ========================================
   Modal
======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 3000;
    padding: 20px;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent);
}

.modal-body {
    padding: 40px;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 992px) {
    .events-container,
    .community-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .calendar-widget {
        order: -1;
    }
    
    .new-post-form {
        position: static;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .logo-img {
        height: 85px;
    }

    .header-content {
        height: 80px;
    }

     .lang-toggle {
        padding: 2px 2px;
        margin-left: 5px;
    }

    .lang-btn {
        font-size: 0.7rem;
        padding: 2px 2px;
    }
    .btn-sm {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav ul {
        flex-direction: column;
    }
    
    .nav a {
        padding: 12px 20px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 400px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        flex-direction: column;
        text-align: center;
    }
}
