/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f9f9f9;
}

body[lang="np"] {
    font-family: 'Annapurna SIL', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background: linear-gradient(90deg, #4A90E2, #6AB0FF);
    background-image: 
        radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%),
        linear-gradient(90deg, #4A90E2, #6AB0FF);
    color: #fff;
    padding: 0.8rem 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-header {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 100px;
    height: 80px;
    margin-right: 1rem;
    
}

.header-text {
    display: flex;
    flex-direction: column;
}

.header-line {
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.header-line.blue {
    color: #fff;
}

.header-line.maroon {
    color: #800000;
}

.header-line.large {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.15rem 0;
}

.flag {
    width: 100px;
    height: 80px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}
/* Navigation */
.nav {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 15px;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin: 0 0.8rem;
}

.nav ul li a {
    color: #003087;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav ul li a:hover,
.nav ul li a.active {
    background-color: #800000;
    color: #fff;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #003087;
    transition: 0.4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: #fff;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #800000;
}

input:checked + .slider:before {
    transform: translateX(32px);
}

.labels {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 0.8rem;
    transform: translateY(-50%);
}

.lang-en { opacity: 1; }
.lang-np { opacity: 0.5; }
input:checked ~ .labels .lang-en { opacity: 0.5; }
input:checked ~ .labels .lang-np { opacity: 1; }

/* News Ticker */
.news-ticker {
    background-color: #800000;
    color: #fff;
    padding: 0.5rem 0;
    font-size: 0.8rem;
}

.ticker-content {
    display: flex;
    align-items: center;
}

.ticker-label {
    font-weight: 700;
    margin-right: 0.8rem;
}

.ticker-items {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 18s linear infinite;
}

.ticker-items span {
    margin-right: 1.5rem;
}

.ticker-content:hover .ticker-items {
    animation-play-state: paused;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Hero Section */
.hero {
    background: url('hero.jpg') no-repeat center center/cover;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 2.8rem;
    color: #800000;
    margin-bottom: 0.8rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background: linear-gradient(90deg, #003087, #004aad);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn:hover {
    background: linear-gradient(90deg, #800000, #a52a2a);
    transform: translateY(-2px);
}

/* Main Content and Sidebar */
.main-container {
    display: flex;
    gap: 1rem;
    padding: 2rem 15px;
}

.main-content {
    width: 80%;
}

.sidebar {
    width: 20%;
}

.section-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #f9f9f9);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

/* About Section */
.about h2 {
    font-size: 2.2rem;
    color: #800000;
    margin-bottom: 0.8rem;
}

.about p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Office Chief Section */
.chief h2 {
    font-size: 2.2rem;
    color: #800000;
    margin-bottom: 0.8rem;
}

.chief-card {
    max-width: 280px;
    margin: 0 auto;
    background-color: #fff;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chief-card:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.chief-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 0.8rem;
    border: 2px solid #800000;
}

.chief-card h3 {
    font-size: 1.3rem;
    color: #003087;
}

.chief-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Services, Projects, Resources, Events, Testimonials */
.services h2, .projects h2, .resources h2, .events h2, .testimonials h2 {
    font-size: 2.2rem;
    color: #800000;
    margin-bottom: 0.8rem;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.tab-button {
    padding: 0.5rem 1rem;
    border: none;
    background-color: #f4f4f4;
    color: #003087;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover,
.tab-button.active {
    background-color: #800000;
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.project-grid, .event-grid, .testimonial-grid, .resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.project-card, .event-card, .testimonial-card, .resource-card {
    background-color: #fff;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover, .event-card:hover, .testimonial-card:hover, .resource-card:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.project-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.8rem;
}

.project-card h3, .event-card h3, .testimonial-card h3, .resource-card h3 {
    font-size: 1.3rem;
    color: #003087;
}

.project-card p, .event-card p, .testimonial-card p, .resource-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Sidebar */
.sidebar {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #f9f9f9);
    padding: 1.2rem;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section h3 {
    font-size: 1.3rem;
    color: #800000;
    margin-bottom: 0.8rem;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section ul li {
    margin-bottom: 0.6rem;
}

.sidebar-section ul li a {
    color: #003087;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.sidebar-section ul li a:hover {
    color: #800000;
}

.sidebar-section p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.6rem;
}

/* Footer */
.footer {
    background: linear-gradient(90deg, #003087, #004aad);
    color: #fff;
    padding: 1.5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.footer h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #ffd700;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.6rem;
}

.footer ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: #ffd700;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons img {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .main-content, .sidebar {
        width: 100%;
    }

    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .flag {
        position: static;
        margin-top: 0.6rem;
    }

    .nav .container {
        flex-direction: column;
    }

    .nav ul {
        flex-direction: column;
        text-align: center;
    }

    .nav ul li {
        margin: 0.3rem 0;
    }

    .lang-switcher {
        margin-top: 0.6rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .project-grid, .event-grid, .testimonial-grid, .resource-grid {
        grid-template-columns: 1fr;
    }
}