/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    height: 80px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.25rem;
    white-space: nowrap;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #667eea;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff10" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Section Styles */
section {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    text-align: center;
}

.profile-pic {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 6px;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.skill-tag:active {
    transform: scale(0.95);
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: white;
    border: 3px solid #667eea;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background: white;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.timeline-content h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.timeline-content .company {
    font-weight: bold;
    color: #764ba2;
    margin-bottom: 0.5rem;
}

.timeline-content .date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #667eea;
    transition: transform 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.achievement-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.achievement-icon:hover {
    animation: pulse 1s infinite;
}

/* Media Section */
.media {
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 1rem auto 0;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.media-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.media-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.media-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.interview-badge {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.article-badge {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.media-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-card:hover .media-image {
    transform: scale(1.05);
}

.media-content {
    padding: 1.5rem;
}

.media-title {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.media-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.media-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.media-link:hover {
    gap: 10px;
}

.external-link-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.media-link:hover .external-link-icon {
    transform: translateX(3px) translateY(-3px);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 30px;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    border-left: 3px solid transparent;
    transition: border-left 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23667eea' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-left: 3px solid #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: #25D366;
    color: white;
    border: 2px solid #128C7E;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-btn i {
    font-size: 1.2rem;
}

.loading {
    display: none;
}

.spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid white;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

/* Footer */
footer {
    background: #1b1e2b;
    color: #cbd5e0;
    padding: 3.5rem 0 1.5rem;
}

/* Multi-column footer layout */
.footer-content {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.3fr;
    gap: 2.5rem;
    text-align: left;
    padding-bottom: 2.2rem;
    border-bottom: 1px solid #313548;
}

.footer-brand h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.footer-brand p {
    opacity: 0.75;
    line-height: 1.7;
    font-size: 0.92rem;
    max-width: 380px;
    margin: 0;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.3s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
    color: #818cf8;
    padding-left: 4px;
}

.footer-contact p {
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
    opacity: 0.9;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.footer-contact i {
    color: #818cf8;
    width: 16px;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.footer-contact a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #818cf8;
}

/* Social icons (inside footer-brand) */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.3rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2a2e42;
    color: #cbd5e0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.footer-social a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    transform: translateY(-3px);
}

/* Bottom bar: copyright + SEO keywords */
.footer-bottom {
    text-align: center;
    padding-top: 1.6rem;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}

.footer-bottom a {
    color: #818cf8;
    text-decoration: none;
}

.footer-seo {
    font-size: 0.78rem;
    opacity: 0.55;
    margin-top: 0.7rem !important;
    line-height: 1.7;
}

.footer-dev {
    font-size: 0.82rem;
    opacity: 0.7;
    margin-top: 0.9rem !important;
}

.footer-dev a {
    color: #a5b4fc;
    font-weight: 600;
}

@media (max-width: 768px) {
    footer {
        padding: 2.25rem 0 1.25rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        padding-bottom: 1.5rem;
    }
    .footer-brand p {
        margin: 0 auto;
        font-size: 0.88rem;
    }
    .footer-social {
        justify-content: center;
        margin-top: 1rem;
    }
    /* Quick Links in 2 columns to roughly halve the footer height on phones */
    .footer-links ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem 1rem;
        max-width: 260px;
        margin: 0 auto;
    }
    .footer-links li {
        margin-bottom: 0.2rem;
    }
    .footer-contact p {
        justify-content: center;
    }
    .footer-bottom {
        padding-top: 1.2rem;
    }
    /* SEO keyword string is low-value on mobile — keep it but make it small & unobtrusive */
    .footer-seo {
        font-size: 0.68rem;
        opacity: 0.4;
        max-height: 4.5em;
        overflow: hidden;
    }
}

/* Disclaimer Modal */
.disclaimer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.disclaimer-content {
    background: white;
    padding: 30px;
    max-width: 600px;
    border-radius: 10px;
    text-align: center;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.disclaimer-content h2 {
    color: #764ba2;
}

.disclaimer-content p {
    margin-top: 15px;
}

.disclaimer-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.disclaimer-btn:hover {
    background: #5568d3;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation: collapse the full menu into a hamburger dropdown once the
   10 links no longer fit on one line alongside the logo (~1150px and below). */
@media (max-width: 1150px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1.5rem 1rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.85rem 0;
        border-bottom: 1px solid #eee;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .right {
        left: 0%;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .achievements-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }
}

/* FILTERS */
.media-filters {
    text-align: center;
    margin: 40px 0;
}

.filter-btn {
    margin: 0 10px;
    padding: 10px 22px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    background: #eee;
    font-weight: 600;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

/* NEWS GRID (reused) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

.lightbox img {
    max-width: 90%;
    max-height: 60vh;
    border-radius: 15px;
    margin-bottom: 20px;
}

.lightbox h3 {
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}


.view-all-container {
    text-align: center;
    margin-top: 40px;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.35);
}


.breadcrumb{margin-top:80px;background:#f8f9fc;padding:12px;font-size:.9rem}
.breadcrumb a{color:#667eea;font-weight:600}

.page-hero{padding:160px 0 80px;text-align:center;
background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}

.media-filters{text-align:center;margin:40px 0}
.filter-btn{padding:10px 22px;border-radius:25px;border:none;margin:0 5px;cursor:pointer}
.filter-btn.active{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}

.news-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:30px}

.news-card{position:relative;overflow:hidden;border-radius:15px;cursor:pointer}
.news-card img{width:100%;height:100%;object-fit:cover;transition:.4s}
.news-overlay{position:absolute;inset:0;background:rgba(0,0,0,.55);
display:flex;align-items:center;justify-content:center;opacity:0;transition:.4s}
.news-overlay h3{color:#fff;text-align:center;padding:20px}
.news-card:hover img{filter:blur(2px);transform:scale(1.05)}
.news-card:hover .news-overlay{opacity:1}

.lightbox{display:none;position:fixed;inset:0;background:rgba(0,0,0,.85);
align-items:center;justify-content:center;flex-direction:column;z-index:9999}
.lightbox img{max-width:90%;max-height:60vh;border-radius:15px;margin-bottom:20px}
.lightbox h3{color:#fff;margin-bottom:15px}
.lightbox-close{position:absolute;top:20px;right:30px;font-size:40px;color:#fff;cursor:pointer}

/* ============================================================
   Language switcher (dropdown) + first-visit popup
   Used on the Cyber Crime helpline pages (EN / HI / TE)
   ============================================================ */
.lang-switcher {
    position: relative;
    flex-shrink: 0;
    margin-left: 0.5rem;
}
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #667eea12;
    border: 1px solid #667eea33;
    color: #4c51bf;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.lang-btn:hover { background: #667eea1f; border-color: #667eea55; }
.lang-btn .lang-caret { font-size: 0.7rem; transition: transform 0.2s; }
.lang-switcher.open .lang-btn .lang-caret { transform: rotate(180deg); }

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    list-style: none;
    margin: 0;
    padding: 0.4rem;
    background: #fff;
    border: 1px solid #ececf5;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
    z-index: 1200;
}
.lang-switcher.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
}
.lang-menu-item:hover { background: #667eea12; color: #4c51bf; }
.lang-menu-item.is-active { color: #667eea; font-weight: 700; }
.lang-menu-item i { font-size: 0.8rem; color: #667eea; }

/* Popup / modal */
.lang-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 27, 75, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.lang-popup-overlay.show { opacity: 1; }
.lang-popup {
    background: #fff;
    border-radius: 18px;
    max-width: 440px;
    width: 100%;
    padding: 2.4rem 2rem 1.8rem;
    text-align: center;
    box-shadow: 0 24px 60px rgba(30, 27, 75, 0.35);
    transform: translateY(14px) scale(0.98);
    transition: transform 0.25s ease;
}
.lang-popup-overlay.show .lang-popup { transform: translateY(0) scale(1); }
.lang-popup-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}
.lang-popup-title {
    font-size: 1.4rem;
    color: #222;
    margin: 0 0 0.6rem;
}
.lang-popup-sub {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0 auto 1.6rem;
    max-width: 340px;
}
.lang-popup-choices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.3rem;
}
.lang-popup-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 0.5rem;
    background: #f7f7fc;
    border: 2px solid #ececf5;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.lang-popup-choice:hover {
    border-color: #667eea;
    background: #667eea0d;
    transform: translateY(-2px);
}
.lang-popup-choice.is-active { border-color: #667eea; background: #667eea14; }
.lang-popup-native { font-size: 1.15rem; font-weight: 700; color: #333; }
.lang-popup-name { font-size: 0.78rem; color: #888; }
.lang-popup-dismiss {
    background: none;
    border: none;
    color: #667eea;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
}
.lang-popup-dismiss:hover { text-decoration: underline; }

@media (max-width: 400px) {
    .lang-popup-choices { grid-template-columns: 1fr; }
    .lang-popup-choice { flex-direction: row; justify-content: center; gap: 0.5rem; }
}

/* Keep the language switcher visible (outside the hamburger) on small screens */
@media (max-width: 1150px) {
    .lang-switcher { margin-left: auto; margin-right: 0.5rem; }
}

/* ============================================================
   FAQ accordion — used on the Cyber Crime helpline pages (EN / HI / TE)
   ============================================================ */
.faq-section { background: #fff; padding: 1rem 0 4rem; }
.faq-section .container { max-width: 900px; }
.faq-title {
    text-align: center;
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 0.4rem;
}
.faq-sub {
    text-align: center;
    color: #777;
    font-size: 0.97rem;
    margin-bottom: 2rem;
}
.faq-item {
    border: 1px solid #ececf5;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    background: #fbfbff;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    padding: 1.1rem 3rem 1.1rem 1.4rem;
    font-weight: 600;
    color: #2b2b3a;
    font-size: 1rem;
    line-height: 1.5;
    list-style: none;
    position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '\002B';
    position: absolute;
    right: 1.3rem;
    top: 1rem;
    color: #667eea;
    font-size: 1.3rem;
    font-weight: 700;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:hover { color: #667eea; }
.faq-answer {
    padding: 0 1.4rem 1.2rem;
    color: #555;
    line-height: 1.75;
    font-size: 0.95rem;
}
.faq-answer a { color: #667eea; font-weight: 600; text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }

/* On very narrow screens, collapse the switcher to just the globe icon so it
   never crowds the logo / hamburger. */
@media (max-width: 480px) {
    .lang-btn { padding: 0.45rem 0.6rem; gap: 0.3rem; }
    .lang-btn .lang-btn-label { display: none; }
}
