   :root {
            --primary: #0066cc;
            --secondary: #ffc107;
            --dark: #333;
            --light: #f8f9fa;
            --accent: #28a745;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: var(--light);
            color: var(--dark);
            line-height: 1.6;
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        header {
            background: linear-gradient(135deg, #0066cc, #004080);
            color: white;
            padding: 20px 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .logo h1 {
            font-size: 28px;
            font-weight: 700;
        }
        
        .logo span {
            color: var(--secondary);
        }
        
        nav {
            background-color: white;
            padding: 15px 0;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        }
        
        .nav-links {
            display: flex;
            list-style: none;
            gap: 30px;
        }
        
        .nav-links a {
            text-decoration: none;
            color: var(--dark);
            font-weight: 500;
            transition: color 0.3s;
        }
        
        .nav-links a:hover {
            color: var(--primary);
        }
        
        .hero {
            background: url("../img/bg.jpg") center/cover;
            height: 400px;
            display: flex;
            align-items: center;
            position: relative;
        }
        
        .hero::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
        }
        
        .hero-content {
            position: relative;
            z-index: 2;
            color: white;
            max-width: 600px;
        }
        
        .hero h2 {
            font-size: 36px;
            margin-bottom: 20px;
        }
        
        .search-box {
            display: flex;
            margin: 40px 0;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            overflow: hidden;
        }
        
        .search-box input {
            flex: 1;
            padding: 15px 20px;
            border: none;
            outline: none;
            font-size: 16px;
        }
        
        .search-box select {
            padding: 15px;
            border: none;
            outline: none;
            background-color: #f0f0f0;
            cursor: pointer;
        }
        
        .search-box button {
            padding: 15px 25px;
            background-color: var(--primary);
            color: white;
            border: none;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        
        .search-box button:hover {
            background-color: #0055aa;
        }
        
        .features {
            padding: 60px 0;
            background-color: white;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 40px;
            font-size: 32px;
            color: var(--dark);
        }
        
        .features-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
        }
        
        .feature-card {
            background-color: white;
            border-radius: 8px;
            padding: 30px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s;
        }
        
        .feature-card:hover {
            transform: translateY(-5px);
        }
        
        .feature-icon {
            width: 60px;
            height: 60px;
            background-color: #e6f0ff;
            color: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            font-size: 24px;
        }
        
        .feature-card h3 {
            margin-bottom: 15px;
            font-size: 20px;
        }
        
        .languages {
            padding: 60px 0;
            background-color: #f8f9fa;
        }
        
        .language-list {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
        }
        
        .language-card {
            background-color: white;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            text-align: center;
            transition: all 0.3s;
        }
        
        .language-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .language-card img {
            width: 100%;
            height: 150px;
            object-fit: cover;
            border-radius: 6px;
            margin-bottom: 15px;
        }
        
        .language-card h3 {
            margin-bottom: 10px;
            font-size: 18px;
        }
        
        .language-card p {
            color: #666;
            font-size: 14px;
        }
        
        .cta {
            padding: 80px 0;
            background: linear-gradient(135deg, #004080, #0066cc);
            color: white;
            text-align: center;
        }
        
        .cta h2 {
            font-size: 36px;
            margin-bottom: 20px;
        }
        
        .cta p {
            max-width: 600px;
            margin: 0 auto 30px;
            font-size: 18px;
        }
        
        .btn {
            display: inline-block;
            padding: 12px 30px;
            background-color: var(--secondary);
            color: var(--dark);
            text-decoration: none;
            border-radius: 6px;
            font-weight: 600;
            transition: all 0.3s;
        }
        
        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        footer {
            background-color: var(--dark);
            color: white;
            padding: 60px 0 30px;
        }
        
        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 40px;
            margin-bottom: 40px;
        }
        
        .footer-col h3 {
            margin-bottom: 20px;
            font-size: 18px;
            position: relative;
            padding-bottom: 10px;
        }
        
        .footer-col h3::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 2px;
            background-color: var(--secondary);
        }
        
        .footer-col ul {
            list-style: none;
        }
        
        .footer-col ul li {
            margin-bottom: 10px;
        }
        
        .footer-col ul li a {
            color: #ccc;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-col ul li a:hover {
            color: var(--secondary);
        }
        
        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 20px;
            text-align: center;
            font-size: 14px;
            color: #aaa;
        }
        
        @media (max-width: 768px) {
            .features-grid {
                grid-template-columns: 1fr;
            }
            
            .language-list {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .footer-grid {
                grid-template-columns: 1fr;
                gap: 30px;
            }
        }
		
		
	    .translation-result {
            background-color: #fff;
            border-radius: 12px;
            padding: 30px;
            margin: 40px auto;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
            max-width: 960px;
            display: flex;
            flex-direction: column;
            gap: 30px;
            font-family: 'Segoe UI', sans-serif;
        }

        .translation-header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            border-bottom: 2px solid #e0e0e0;
            padding-bottom: 10px;
        }

        .translation-title {
            font-size: 20px;
            font-weight: bold;
            color: var(--dark);
        }

        .translation-languages {
            font-size: 15px;
            color: #555;
        }

        .translation-languages span {
            color: var(--primary);
            font-weight: 600;
        }

        .translation-content {
            display: flex;
            flex-wrap: wrap;
            gap: 30px;
        }

        .translation-column {
            flex: 1 1 45%;
            min-width: 280px;
        }

        .translation-label {
            font-size: 15px;
            font-weight: 500;
            color: #666;
            margin-bottom: 6px;
        }

        .translation-text {
            font-size: 26px;
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 10px;
        }

        .pronunciation {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
        }

        .pronunciation span {
            font-size: 14px;
            font-style: italic;
            color: #555;
        }

        .play-btn {
            width: 28px;
            height: 28px;
            background-color: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            cursor: pointer;
            transition: background 0.2s ease;
        }

        .play-btn:hover {
            background-color: #1565c0;
        }

        .translation-details p,
        .translation-details ul {
            margin: 0;
            font-size: 14px;
            color: #444;
        }

        .translation-details ul {
            padding-left: 20px;
            list-style-type: disc;
        }

        .translation-examples {
            margin-top: 10px;
        }

        .example-item {
            padding-left: 16px;
            border-left: 3px solid #e0e0e0;
            margin-bottom: 12px;
        }

        .example-item p {
            margin: 2px 0;
            font-size: 14px;
        }

        .example-item .original {
            color: #777;
        }

        .example-item .translated {
            font-weight: 500;
            color: var(--dark);
        }

        .translation-tools {
            display: flex;
            justify-content: space-between;
            padding-top: 15px;
            border-top: 1px solid #e0e0e0;
        }

        .tool-buttons {
            display: flex;
            gap: 12px;
        }

        .tool-btn {
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            color: #444;
            transition: color 0.2s ease;
        }

        .tool-btn:hover {
            color: var(--primary);
        }
		
		@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        text-align: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

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

    .nav-toggle {
        display: block;
        cursor: pointer;
        font-size: 24px;
        color: var(--dark);
    }
}
@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 60px 20px;
        text-align: center;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
        gap: 10px;
    }

    .search-box input,
    .search-box select,
    .search-box button {
        width: 100%;
        border-radius: 6px;
    }
}

@media (max-width: 768px) {
    .translation-content {
        flex-direction: column;
    }

    .translation-column {
        width: 100%;
    }
}
@media (max-width: 500px) {
    .language-list {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .cta h2 {
        font-size: 28px;
    }

    .cta p {
        font-size: 16px;
    }
}
@media (max-width: 500px) {
    .container {
        padding: 0 10px;
    }

    body {
        font-size: 15px;
    }
}
  .language-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    margin-top: 40px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.language-tab {
    flex: 0 0 auto;
    padding: 12px 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px 8px 0 0;
    position: relative;
    border: 1px solid transparent;
    white-space: nowrap;
    scroll-snap-align: start;
}
        .language-tab.active {
            background-color: white;
            border: 1px solid #e0e0e0;
            border-bottom: none;
        }
        
        .language-tab.active::after {
            content: "";
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: white;
        }
        
        .language-tab:nth-child(1) {
            color: var(--primary);
        }
        
        .language-tab:nth-child(2) {
            color: var(--red);
        }
        
        .language-tab:nth-child(3) {
            color: var(--green);
        }
        
        .language-tab:nth-child(4) {
            color: var(--purple);
        }
        
        .alphabet-nav {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            margin: 20px 0;
            gap: 5px;
        }
        
        .alphabet-link {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background-color: white;
            color: var(--dark);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        }
        
        .alphabet-link:hover {
            background-color: var(--primary);
            color: white;
            transform: scale(1.1);
        }
        
        .alphabet-link.active {
            background-color: var(--primary);
            color: white;
        }  .dictionary-section {
            background-color: white;
            border-radius: 8px;
            padding: 30px;
            margin-bottom: 40px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        }
        
        .section-header {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .section-letter {
            width: 60px;
            height: 60px;
            background-color: var(--primary);
            color: white;
            font-size: 32px;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            margin-right: 20px;
        }
        
        .word-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .word-card {
            border-bottom: 1px solid #eee;
            padding-bottom: 15px;
            cursor: pointer;
        }
        
        .word-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .word {
            font-size: 20px;
            font-weight: 600;
            color: var(--dark);
        }
        
        .pronunciation {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #666;
            font-style: italic;
            font-size: 14px;
        }
        
        .play-btn {
            width: 28px;
            height: 28px;
            background-color: #f0f0f0;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .play-btn:hover {
            background-color: var(--primary);
            color: white;
        }
        
        .word-details {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .part-of-speech {
            font-size: 14px;
            color: #666;
            font-style: italic;
        }
        
        .definition {
            font-size: 15px;
            color: var(--dark);
        }
        
        .example {
            font-size: 14px;
            color: #666;
            margin-left: 15px;
            border-left: 2px solid #eee;
            padding-left: 10px;
            margin-top: 5px;
        }
        
        .translations {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 10px;
        }
        
        .translation-tag {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .translation-tag.tagalog {
            background-color: rgba(52, 152, 219, 0.1);
            color: var(--primary);
        }
        
        .translation-tag.waray {
            background-color: rgba(231, 76, 60, 0.1);
            color: var(--red);
        }
        
        .translation-tag.pangasinense {
            background-color: rgba(46, 204, 113, 0.1);
            color: var(--green);
        }
        
        .translation-tag.bisaya {
            background-color: rgba(155, 89, 182, 0.1);
            color: var(--purple);
        }
        
        .translation-result {
            background-color: white;
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 40px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .translation-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #eee;
            padding-bottom: 15px;
        }
        
        .translation-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--dark);
        }
        
        .translation-languages {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #666;
            font-size: 14px;
        }
        
        .translation-languages span {
            color: var(--primary);
            font-weight: 600;
        }
        
        .translation-content {
            display: flex;
            gap: 30px;
        }
        
        .translation-column {
            flex: 1;
        }
        
        .translation-label {
            font-size: 14px;
            color: #666;
            margin-bottom: 8px;
        }
        
        .translation-text {
            font-size: 22px;
            color: var(--dark);
            margin-bottom: 12px;
        }
        
        .pronunciation {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .pronunciation span {
            font-size: 14px;
            color: #666;
            font-style: italic;
        }
        
        .translation-examples {
            margin-top: 15px;
        }
        
        .example-item {
            margin-bottom: 10px;
            padding-left: 15px;
            border-left: 2px solid #eee;
        }
        
        .example-item p {
            margin-bottom: 5px;
            font-size: 14px;
        }
        
        .example-item .original {
            color: #666;
        }
        
        .example-item .translated {
            color: var(--dark);
            font-weight: 500;
        }
        
        .translation-tools {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
            padding-top: 15px;
            border-top: 1px solid #eee;
        }
        
        .tool-buttons {
            display: flex;
            gap: 15px;
        }
        
        .tool-btn {
            display: flex;
            align-items: center;
            gap: 5px;
            color: #666;
            font-size: 14px;
            cursor: pointer;
            transition: color 0.2s;
        }
        
        .tool-btn:hover {
            color: var(--primary);
        }
        
        .related-words {
            margin-top: 10px;
        }
        
        .related-words-title {
            font-size: 14px;
            color: #666;
            margin-bottom: 8px;
        }
        
        .related-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .related-tag {
            padding: 5px 10px;
            background-color: #f0f7ff;
            color: var(--primary);
            border-radius: 20px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .related-tag:hover {
            background-color: #deeaff;
        }