/*
Theme Name: ZLCC Education Theme
Theme URI: https://zlccabroadeducation.org
Description: Custom bilingual theme for ZLCC Abroad Education Consultancy - Nepali/English
Author: ZLCC Dev Team
Version: 1.0.0
Text Domain: zlcc
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Devanagari:wght@300;400;500;600;700&display=swap');

:root {
    --primary-50: #eff6ff; --primary-100: #dbeafe; --primary-200: #bfdbfe;
    --primary-300: #93c5fd; --primary-400: #60a5fa; --primary-500: #3b82f6;
    --primary-600: #1d4ed8; --primary-700: #1e3a8a; --primary-800: #1e2d5f;
    --primary-900: #0f172a;
    --accent-400: #facc15; --accent-500: #eab308;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', 'Noto Sans Devanagari', sans-serif; color: #1f2937; line-height: 1.6; -webkit-font-smoothing: antialiased; }
html[lang="ne"] body, html[lang="ne-NP"] body { font-family: 'Noto Sans Devanagari', 'Inter', sans-serif; }
a { color: var(--primary-600); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-700); }
img { max-width: 100%; height: auto; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 5rem 0; }
.section-alt { background: #f8fafc; }
.text-center { text-align: center; }

/* Top Bar */
.top-bar { background: var(--primary-900); color: white; padding: 0.5rem 0; font-size: 0.85rem; }
.top-bar a { color: rgba(255,255,255,0.8); }
.top-bar a:hover { color: var(--accent-400); }
.top-bar .inner { display: flex; justify-content: space-between; align-items: center; }
.top-bar .left { display: flex; gap: 1.5rem; align-items: center; }
.top-bar .right { display: flex; gap: 1rem; align-items: center; }

/* Navigation */
.site-nav { background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 50; }
.site-nav .inner { display: flex; justify-content: space-between; align-items: center; height: 5rem; }
.site-logo { display: flex; align-items: center; gap: 0.75rem; }
.site-logo .icon { width: 3rem; height: 3rem; background: var(--primary-600); border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 1.1rem; }
.site-logo .text .name { font-size: 1.3rem; font-weight: 700; color: var(--primary-700); }
.site-logo .text .name span { font-weight: 300; color: #6b7280; }
.site-logo .text .sub { font-size: 0.65rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.1em; margin-top: -3px; }
.nav-menu { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-menu a { font-weight: 500; color: #4b5563; position: relative; padding-bottom: 2px; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary-700); }
.nav-menu a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--accent-400); transition: width 0.3s; }
.nav-menu a:hover::after { width: 100%; }
.nav-cta { background: var(--primary-600); color: white !important; padding: 0.6rem 1.5rem; border-radius: 0.5rem; font-weight: 600; box-shadow: 0 4px 6px rgba(29,78,216,0.25); }
.nav-cta:hover { background: var(--primary-700); color: white !important; }
.nav-cta::after { display: none !important; }
.lang-switch { display: flex; gap: 0.25rem; margin-left: 0.5rem; }
.lang-switch a { padding: 0.25rem 0.5rem; border-radius: 0.25rem; font-size: 0.75rem; font-weight: 600; }
.lang-switch a.active { background: var(--primary-600); color: white !important; }
.lang-switch a:not(.active) { background: #f3f4f6; color: #4b5563 !important; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }

/* Hero */
.hero { background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #3b82f6 100%); color: white; padding: 6rem 0; position: relative; overflow: hidden; }
.hero .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero .badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.1); padding: 0.5rem 1rem; border-radius: 2rem; font-size: 0.85rem; margin-bottom: 1.5rem; backdrop-filter: blur(4px); }
.hero .badge .dot { width: 0.5rem; height: 0.5rem; background: #34d399; border-radius: 50%; animation: pulse 2s infinite; }
.hero h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--accent-400); }
.hero .desc { font-size: 1.1rem; color: rgba(219,234,254,0.9); margin-bottom: 2rem; max-width: 500px; }
.hero .buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-accent { background: var(--accent-400); color: var(--primary-900) !important; padding: 0.9rem 2rem; border-radius: 0.5rem; font-weight: 700; display: inline-block; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn-accent:hover { background: var(--accent-500); }
.btn-outline { background: rgba(255,255,255,0.1); color: white !important; padding: 0.9rem 2rem; border-radius: 0.5rem; font-weight: 600; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(4px); display: inline-block; }
.btn-outline:hover { background: rgba(255,255,255,0.2); }
.hero .countries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hero .country-card { text-align: center; padding: 1rem; background: rgba(255,255,255,0.1); border-radius: 0.75rem; backdrop-filter: blur(4px); }
.hero .country-card .flag { font-size: 2rem; margin-bottom: 0.25rem; }
.hero .country-card .label { font-size: 0.75rem; }

/* Stats Bar */
.stats { position: relative; z-index: 10; margin-top: -2rem; }
.stats .inner { background: white; border-radius: 1rem; box-shadow: 0 10px 25px rgba(0,0,0,0.08); padding: 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat { text-align: center; }
.stat .num { font-size: 2rem; font-weight: 800; color: var(--primary-600); }
.stat .label { font-size: 0.85rem; color: #6b7280; margin-top: 0.25rem; }

/* Service Cards */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.service-card { background: white; border-radius: 0.75rem; padding: 1.5rem; transition: transform 0.3s, box-shadow 0.3s; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.service-card .icon { width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: #111827; }
.service-card p { font-size: 0.85rem; color: #6b7280; line-height: 1.6; }

/* Destinations Grid */
.dest-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; margin-top: 3rem; }
.dest-card { text-align: center; padding: 1.5rem; border: 2px solid #f3f4f6; border-radius: 1rem; transition: all 0.3s; }
.dest-card:hover { border-color: var(--primary-200); background: var(--primary-50); transform: translateY(-4px); }
.dest-card .flag { font-size: 3rem; margin-bottom: 0.75rem; }
.dest-card h3 { font-weight: 700; color: #111827; font-size: 0.95rem; }
.dest-card .count { font-size: 0.75rem; color: #9ca3af; margin-top: 0.25rem; }

/* Section Headers */
.section-label { color: var(--primary-600); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.section-title { font-size: 2.25rem; font-weight: 800; color: #111827; }

/* Testimonials */
.testimonials { background: var(--primary-700); color: white; }
.testimonials .section-label { color: var(--accent-400); }
.testimonials .section-title { color: white; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.testimonial-card { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); border-radius: 1rem; padding: 2rem; backdrop-filter: blur(4px); }
.testimonial-card .stars { color: var(--accent-400); margin-bottom: 1rem; }
.testimonial-card .quote { color: rgba(219,234,254,0.9); margin-bottom: 1.5rem; font-size: 0.95rem; line-height: 1.7; }
.testimonial-card .author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-card .avatar { width: 2.5rem; height: 2.5rem; background: var(--primary-600); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.testimonial-card .name { font-weight: 600; }
.testimonial-card .uni { font-size: 0.8rem; color: rgba(191,219,254,0.8); }

/* CTA */
.cta-section { padding: 5rem 0; text-align: center; }
.cta-section h2 { font-size: 2.25rem; font-weight: 800; margin-bottom: 1rem; }
.cta-section p { font-size: 1.1rem; color: #6b7280; max-width: 600px; margin: 0 auto 2rem; }
.btn-primary { background: var(--primary-600); color: white !important; padding: 1rem 2.5rem; border-radius: 0.75rem; font-weight: 700; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 0.5rem; box-shadow: 0 4px 6px rgba(29,78,216,0.25); }
.btn-primary:hover { background: var(--primary-700); }

/* Footer */
.site-footer { background: var(--primary-900); color: white; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-col h4 { font-weight: 600; margin-bottom: 1.25rem; }
.footer-col p, .footer-col li { font-size: 0.85rem; color: rgba(191,219,254,0.7); line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col a { color: rgba(191,219,254,0.7); }
.footer-col a:hover { color: var(--accent-400); }
.footer-nec { font-size: 0.75rem; color: rgba(191,219,254,0.5); margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: rgba(191,219,254,0.5); }
.footer-bottom a { color: rgba(191,219,254,0.5); }
.footer-bottom a:hover { color: var(--accent-400); }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.blog-card { border-radius: 0.75rem; overflow: hidden; background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card .content { padding: 1.5rem; }
.blog-card .cat { font-size: 0.75rem; color: var(--primary-600); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.blog-card h3 { font-size: 1.1rem; margin: 0.5rem 0; font-weight: 700; }
.blog-card .excerpt { font-size: 0.85rem; color: #6b7280; }
.blog-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; font-size: 0.8rem; color: #9ca3af; }

/* Page content */
.page-content { padding: 4rem 0; }
.page-content h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
.page-content h2 { font-size: 1.75rem; font-weight: 700; margin: 2rem 0 1rem; }
.page-content p { margin-bottom: 1rem; color: #374151; line-height: 1.8; }
.page-content ul, .page-content ol { margin: 1rem 0 1rem 2rem; color: #374151; }
.page-content li { margin-bottom: 0.5rem; }

/* Contact Form */
.contact-form { max-width: 600px; }
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%; padding: 0.75rem 1rem; border: 1px solid #d1d5db; border-radius: 0.5rem;
    font-size: 1rem; margin-bottom: 1rem; font-family: inherit;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form button {
    background: var(--primary-600); color: white; padding: 0.75rem 2rem; border: none;
    border-radius: 0.5rem; font-weight: 600; cursor: pointer; font-size: 1rem;
}
.contact-form button:hover { background: var(--primary-700); }

/* Sidebar */
.content-with-sidebar { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.sidebar .widget { background: #f8fafc; border-radius: 0.75rem; padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar .widget h4 { font-weight: 700; margin-bottom: 1rem; font-size: 1rem; }

/* Chat Widget */
.zlcc-chat-btn { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 3.5rem; height: 3.5rem; background: var(--primary-600); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; cursor: pointer; box-shadow: 0 4px 12px rgba(29,78,216,0.4); z-index: 1000; border: none; transition: transform 0.2s; }
.zlcc-chat-btn:hover { transform: scale(1.1); }

/* Animations */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeInUp 0.6s ease-out; }

/* Responsive */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .dest-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonial-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero .inner { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .hero .countries { display: none; }
    .stats .inner { grid-template-columns: repeat(2, 1fr); }
    .nav-menu { display: none; }
    .mobile-toggle { display: block; }
    .services-grid { grid-template-columns: 1fr; }
    .dest-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: 1fr; }
    .content-with-sidebar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .top-bar .left span:nth-child(2) { display: none; }
}

/* Language Switcher */
.lang-switcher { display: inline-flex; gap: 4px; margin-left: 12px; }
.lang-switcher a { padding: 2px 8px; border-radius: 3px; font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-decoration: none; color: rgba(255,255,255,0.7); transition: all 0.2s; }
.lang-switcher a:hover { color: #fff; background: rgba(255,255,255,0.15); }
.lang-switcher a.active-lang { color: #fff; background: rgba(255,255,255,0.2); border-bottom: 2px solid #fbbf24; }

/* Polylang widget styles */
.widget_polylang { margin-bottom: 1rem; }
.widget_polylang ul { list-style: none; padding: 0; display: flex; gap: 8px; }
.widget_polylang li { display: inline; }
.widget_polylang a { padding: 4px 12px; border-radius: 4px; border: 1px solid var(--border); font-size: 14px; text-decoration: none; color: var(--text); }
.widget_polylang .current-lang a { background: var(--primary); color: #fff; border-color: var(--primary); }

/* About section responsive */
@media (max-width: 768px) {
    .section > .container[style*="grid-template-columns"] {
        display: block !important;
    }
    .section > .container[style*="grid-template-columns"] > div:last-child {
        margin-top: 2rem;
    }
}

/* Destination cards with images */
.dest-card[style*="background-image"] {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}
.dest-card[style*="background-image"] .flag { font-size: 2rem; }
.dest-card[style*="background-image"] h3 { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.dest-card[style*="background-image"] .count { color: rgba(255,255,255,0.9); }

/* Dropdown Navigation */
.has-dropdown { position: relative; }
.has-dropdown > a { cursor: pointer; }
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    padding: 0.5rem 0;
    z-index: 100;
    list-style: none;
    border: 1px solid #e5e7eb;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li { margin: 0; }
.dropdown a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.15s;
    white-space: nowrap;
}
.dropdown a:hover { background: #f0f9ff; color: var(--primary); }

/* Page hero banner */
.page-hero { margin-top: -1px; }
.page-hero h1 { font-size: 2.25rem; margin: 0; }
.page-hero p { margin: 0; }

@media (max-width: 768px) {
    .dropdown { position: static; box-shadow: none; border: none; padding-left: 1rem; background: #f9fafb; }
    .has-dropdown:hover .dropdown { display: block; }
    .page-hero h1 { font-size: 1.75rem; }
}
