/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.logo h1 a {
    font-size: 2rem;
    font-weight: 700;
    color: #2c5aa0;
    text-decoration: none;
    background: linear-gradient(135deg, #2c5aa0, #1e3d72);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.menu-item {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu-item:hover {
    color: #2c5aa0;
}

.login-btn {
    background: #2c5aa0;
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
    transition: background 0.3s ease;
}

.login-btn:hover {
    background: #1e3d72;
}

/* Main Navigation */
.main-nav {
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    padding: 15px 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2c5aa0;
}

.nav-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #2c5aa0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.search-section {
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-input-group {
    display: flex;
    background: white;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 20px 25px;
    border: none;
    font-size: 1.1rem;
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 20px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #1e3d72;
}

.search-options {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.search-option {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.search-option:hover {
    background: #2c5aa0;
    color: white;
}

/* Quick Search */
.quick-search {
    margin: 40px 0;
}

.quick-search h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.quick-search-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 15px 25px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    text-decoration: none;
    display: inline-block;
}

.quick-btn:hover {
    border-color: #2c5aa0;
    color: #2c5aa0;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Trending Keywords */
.trending-keywords {
    margin-top: 40px;
}

.trending-keywords h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #666;
}

.keywords-list {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.keyword-tag {
    background: #f8f9fa;
    color: #2c5aa0;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.keyword-tag:hover {
    background: #2c5aa0;
    color: white;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2c5aa0, #1e3d72);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.service-btn {
    background: #2c5aa0;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    display: inline-block;
}

.service-btn:hover {
    background: #1e3d72;
}

/* Registration Section */
.registration {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c5aa0, #1e3d72);
    color: white;
}

.registration-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.registration-info {
    flex: 1;
}

.registration-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.registration-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.registration-btn {
    background: white;
    color: #2c5aa0;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 20px;
}

.registration-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.registration-badge {
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
}

.registration-image {
    flex: 1;
    text-align: center;
}

.registration-image i {
    font-size: 8rem;
    opacity: 0.3;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
    max-height: 200px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
}

.faq-more {
    text-align: center;
    margin-top: 40px;
}

.more-btn {
    background: #2c5aa0;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.more-btn:hover {
    background: #1e3d72;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #ecf0f1;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.company-info p {
    margin-bottom: 8px;
    color: #bdc3c7;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #2c5aa0;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

/* Search Results Page Styles */
.search-results-page {
    padding: 40px 0;
}

.search-header {
    margin-bottom: 40px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-info h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.search-info p {
    color: #666;
    font-size: 1rem;
}

.search-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2c5aa0;
    border-color: #2c5aa0;
    color: white;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.result-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.result-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.result-category.scrap-yard {
    background: #fff3e0;
    color: #f57c00;
}

.result-details {
    margin-bottom: 20px;
}

.result-phone,
.result-address {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #666;
}

.result-phone i,
.result-address i {
    width: 16px;
    color: #2c5aa0;
}

.copy-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #f8f9fa;
    color: #2c5aa0;
}

.result-description {
    margin-top: 10px;
}

.result-description p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.result-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.action-btn.primary {
    background: #2c5aa0;
    color: white;
}

.action-btn.primary:hover {
    background: #1e3d72;
}

.action-btn.secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
}

.action-btn.secondary:hover {
    background: #e9ecef;
    color: #333;
}

.pagination {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 40px;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
}

.page-btn:hover:not(:disabled) {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

.page-btn.active {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #666;
    font-weight: bold;
    user-select: none;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-content i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-results-content h3 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 10px;
}

.no-results-content p {
    color: #999;
    margin-bottom: 30px;
}

.suggestions {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.suggestions h4 {
    color: #333;
    margin-bottom: 10px;
}

.suggestions ul {
    list-style: none;
    padding: 0;
}

.suggestions li {
    color: #666;
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.suggestions li::before {
    content: '•';
    color: #2c5aa0;
    position: absolute;
    left: 0;
}

/* Spam Check Page Styles */
.spam-check-page {
    padding: 40px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-header h1 i {
    color: #dc3545;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
}

.check-form {
    max-width: 600px;
    margin: 0 auto 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #2c5aa0;
}

.check-btn {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-btn:hover:not(:disabled) {
    background: #1e3d72;
}

.check-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.input-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    margin-top: 8px;
}

.input-hint i {
    color: #2c5aa0;
}

.check-result {
    max-width: 800px;
    margin: 0 auto 50px;
}

.result-header h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
}

.spam-alert {
    background: #fff5f5;
    border: 2px solid #dc3545;
    border-radius: 12px;
    padding: 25px;
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.alert-header i {
    color: #dc3545;
    font-size: 1.5rem;
}

.alert-header h4 {
    color: #dc3545;
    font-size: 1.3rem;
    margin: 0;
}

.alert-details {
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.detail-item .label {
    font-weight: 600;
    color: #333;
    min-width: 100px;
}

.detail-item .value {
    color: #666;
}

.phone-number {
    font-weight: 600;
    color: #333;
    font-family: monospace;
}

.type-badge {
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.safe-result {
    background: #f8fff8;
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 25px;
}

.safe-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.safe-header i {
    color: #28a745;
    font-size: 1.5rem;
}

.safe-header h4 {
    color: #28a745;
    font-size: 1.3rem;
    margin: 0;
}

.safe-badge {
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.safe-message {
    margin: 20px 0;
    color: #666;
}

.safe-message p {
    margin-bottom: 8px;
}

.alert-actions,
.safe-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.action-btn.danger {
    background: #dc3545;
    color: white;
}

.action-btn.danger:hover {
    background: #c82333;
}

.action-btn.warning {
    background: #ffc107;
    color: #212529;
}

.action-btn.warning:hover {
    background: #e0a800;
}

.action-btn.secondary {
    background: #6c757d;
    color: white;
}

.action-btn.secondary:hover {
    background: #5a6268;
}

.recent-checks {
    margin-bottom: 50px;
}

.recent-checks h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
}

.spam-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spam-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.spam-item:hover {
    transform: translateY(-2px);
}

.spam-phone {
    font-weight: 600;
    color: #333;
    font-family: monospace;
}

.spam-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.spam-type {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.spam-type.scam {
    background: #dc3545;
    color: white;
}

.spam-type.spam {
    background: #ffc107;
    color: #212529;
}

.spam-type.harassment {
    background: #6f42c1;
    color: white;
}

.spam-type.fraud {
    background: #fd7e14;
    color: white;
}

.spam-reports {
    color: #666;
    font-size: 0.9rem;
}

.spam-check-btn {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.spam-check-btn:hover {
    background: #1e3d72;
}

.spam-report {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.spam-report h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.spam-report p {
    color: #666;
    margin-bottom: 20px;
}

.report-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.report-btn:hover {
    background: #c82333;
}

.safety-tips h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tip-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.tip-item:hover {
    transform: translateY(-5px);
}

.tip-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2c5aa0, #1e3d72);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.tip-icon i {
    font-size: 1.5rem;
    color: white;
}

.tip-item h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}

.tip-item p {
    color: #666;
    line-height: 1.5;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.modal-body {
    padding: 25px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: #2c5aa0;
    color: white;
}

.btn-primary:hover {
    background: #1e3d72;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}
/* Government Page Specific Styles */
.government-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 10px;
    text-align: center;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
}

.category-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2c5aa0;
    border-color: #2c5aa0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.results-section {
    margin-bottom: 50px;
}

.results-header {
    margin-bottom: 30px;
    text-align: center;
}

.results-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.results-header p {
    color: #666;
    font-size: 1rem;
}

.government-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.government-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.government-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #2c5aa0;
}

.government-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.government-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.government-category {
    background: linear-gradient(135deg, #2c5aa0, #1e3d72);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.government-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-item i {
    width: 20px;
    color: #2c5aa0;
    font-size: 1rem;
}

.phone-number {
    font-weight: 600;
    color: #333;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
}

.address {
    color: #666;
    flex: 1;
}

.description {
    color: #666;
    line-height: 1.5;
}

.website-link {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.website-link:hover {
    color: #1e3d72;
    text-decoration: underline;
}

.call-btn,
.map-btn {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.call-btn:hover,
.map-btn:hover {
    background: #1e3d72;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(44, 90, 160, 0.3);
}

.map-btn {
    background: #28a745;
}

.map-btn:hover {
    background: #218838;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
}

.quick-access {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.quick-access h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.quick-link-group {
    text-align: center;
}

.quick-link-group h4 {
    font-size: 1.1rem;
    color: #2c5aa0;
    margin-bottom: 15px;
    font-weight: 600;
}

.quick-link {
    display: block;
    color: #666;
    text-decoration: none;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.quick-link:hover {
    background: #f8f9fa;
    color: #2c5aa0;
    transform: translateX(5px);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2c5aa0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #666;
    font-size: 1.1rem;
}

/* Error State */
.error-message {
    background: #fff5f5;
    border: 2px solid #fed7d7;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin: 20px 0;
}

.error-message i {
    font-size: 3rem;
    color: #e53e3e;
    margin-bottom: 15px;
}

.error-message h3 {
    color: #e53e3e;
    margin-bottom: 10px;
}

.error-message p {
    color: #666;
    margin-bottom: 20px;
}

.retry-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.retry-btn:hover {
    background: #c53030;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 10000;
    max-width: 400px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #28a745;
}

.notification.error {
    border-left: 4px solid #dc3545;
}

.notification.info {
    border-left: 4px solid #17a2b8;
}

.notification.warning {
    border-left: 4px solid #ffc107;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.notification-title {
    font-weight: 600;
    color: #333;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    padding: 0;
}

.notification-message {
    color: #666;
    line-height: 1.4;
}

/* Search Enhancement */
.search-form {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.search-suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.suggestion-category {
    font-size: 0.8rem;
    color: #666;
}

/* Statistics Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 8px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-card.central .stat-number { color: #dc3545; }
.stat-card.local .stat-number { color: #28a745; }
.stat-card.public .stat-number { color: #ffc107; }
.stat-card.community .stat-number { color: #17a2b8; }
.stat-card.judicial .stat-number { color: #6f42c1; }