/* Air Alsie IT Self-Service Portal Styles */

/* CSS Variables */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --accent-color: #f39c12;
    --background-light: #f8f9fa;
    --light-gray: #e9ecef;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --text-gray: #7f8c8d;
}

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

html, body { height: 100%; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1 0 auto; }
.footer { flex-shrink: 0; }

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

/* Header Styles */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand .logo-link {
    display: inline-block;
    cursor: pointer;
}

.nav-brand .logo-image {
    height: 40px;
    width: auto;
    max-width: 200px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a:hover {
    color: white;
    background: rgba(255,255,255,0.15);
    font-weight: 500;
}

.nav-links a.active {
    color: white;
    background: rgba(255,255,255,0.2);
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Search Container */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 4rem 1rem 1.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    outline: none;
    transition: box-shadow 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 4px 25px rgba(0,0,0,0.2);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #2980b9;
}

/* Categories Section */
.categories {
    padding: 4rem 0;
    background: white;
}

.categories h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

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

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.category-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.category-card p {
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* Solutions Section */
.solutions {
    padding: 4rem 0;
    background: #f8f9fa;
    display: none;
}

.solutions.active {
    display: block;
}

.solutions h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.solutions .subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Link Banner */
.link-banner {
    background: #ffffff;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 2.5rem 0;
}

.link-banner-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.link-banner-header h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.link-banner-header p {
    color: #7f8c8d;
}

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

.link-group h3 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

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

.link-card {
    display: block;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.link-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.link-title {
    font-weight: 600;
    color: #2c3e50;
}

.link-desc {
    color: #6c757d;
    font-size: 0.95rem;
}

.access-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.access-badge.external {
    background: #eaf4ff;
    color: #1f6feb;
    border: 1px solid #bee3ff;
}

.access-badge.internal {
    background: #fff5e6;
    color: #d35400;
    border: 1px solid #ffd9a3;
}

@media (max-width: 768px) {
    .link-banner {
        padding: 2rem 0;
    }
    .links-grid {
        grid-template-columns: 1fr;
    }
}

.back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 2rem;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: #5a6268;
}

.solutions-grid {
    display: grid;
    gap: 2rem;
}

.solution-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-3px);
}

.solution-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1.5rem;
}

.solution-header h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.solution-header p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.solution-content {
    padding: 2rem;
}

.solution-steps {
    margin-bottom: 1.5rem;
}

.solution-steps h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.solution-steps ol {
    padding-left: 1.5rem;
}

.solution-steps li {
    margin-bottom: 0.8rem;
    color: #495057;
    line-height: 1.5;
}

.solution-steps li strong {
    color: #2c3e50;
}

.tips-section {
    background: #e8f4fd;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #3498db;
}

.tips-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tips-section ul {
    padding-left: 1.5rem;
}

.tips-section li {
    margin-bottom: 0.5rem;
    color: #495057;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    border-left: 4px solid #f39c12;
}

.warning-box strong {
    color: #856404;
}

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: 2px solid #3498db;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.external-link:hover {
    background: #3498db;
    color: white;
}

/* Diagram Container Styles */
.diagram-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
}

.diagram-container object,
.diagram-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0 0.5rem; /* slightly tighter on mobile */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo {
    height: 60px;
    width: auto;
    max-width: 150px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

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

.footer-section a:hover {
    color: #3498db;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideInRight 0.3s ease;
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-info {
    border-left: 4px solid #007bff;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 12px;
}

.notification-content i:first-child {
    color: #28a745;
    font-size: 1.2em;
}

.notification-info .notification-content i:first-child {
    color: #007bff;
}

.notification-content span {
    flex: 1;
    color: #2c3e50;
    font-size: 0.9em;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.notification-close:hover {
    background: #f8f9fa;
    color: #495057;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive notifications */
@media (max-width: 480px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification-content {
        padding: 12px 15px;
    }
}

/* Contact Section Styles */
.contact-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.contact-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 50px;
    font-size: 2.5em;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.contact-info p {
    color: #6c757d;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-2px);
}

.contact-method.emergency {
    border-left: 4px solid #dc3545;
}

.contact-method i {
    font-size: 1.5em;
    color: #007bff;
    margin-top: 5px;
}

.contact-method.emergency i {
    color: #dc3545;
}

.contact-method h4 {
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-size: 1.1em;
}

.contact-method p {
    margin: 0 0 5px 0;
    color: #6c757d;
    font-size: 0.9em;
}

.contact-method a {
    color: #007bff;
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.5em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

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

.submit-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.submit-btn:hover {
    background: #0056b3;
}

.submit-btn:active {
    transform: translateY(1px);
}

/* Contact section responsive design */
@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-section h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .contact-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 30px 0;
    }
    
    .contact-section h2 {
        font-size: 1.8em;
    }
    
    .contact-method {
        padding: 15px;
    }
    
    .contact-form {
        padding: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
    }
}

/* Search Results Styles */
.search-results {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.search-header h2 {
    color: #2c3e50;
    margin: 0;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-result-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-result-item:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.15);
    transform: translateY(-2px);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.result-header h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.2em;
    flex: 1;
}

.result-category {
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
    margin-left: 15px;
}

.result-description {
    color: #6c757d;
    margin: 10px 0;
    line-height: 1.5;
}

.result-preview {
    margin-top: 15px;
}

.step-preview {
    color: #495057;
    font-size: 0.9em;
    margin: 5px 0;
    padding-left: 10px;
}

.more-steps {
    color: #6c757d;
    font-style: italic;
    font-size: 0.85em;
    margin-top: 8px;
    padding-left: 10px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.no-results h3 {
    color: #6c757d;
    margin-bottom: 15px;
}

.no-results p {
    color: #868e96;
    margin-bottom: 25px;
}

/* Search term highlighting */
mark {
    background-color: #fff3cd;
    color: #856404;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 500;
}

/* Enhanced search input */
.search-container {
    position: relative;
}

#searchInput {
    padding-right: 45px;
}

/* Responsive search results */
@media (max-width: 768px) {
    .search-results {
        padding: 15px;
    }
    
    .search-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .result-category {
        margin-left: 0;
        align-self: flex-start;
    }
    
    .search-result-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .search-results {
        padding: 10px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .result-header h3 {
        font-size: 1.1em;
    }
    
    .no-results {
        padding: 40px 15px;
    }
}

/* Responsive diagram adjustments */
@media (max-width: 768px) {
    .diagram-container {
        margin: 1.5rem 0;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .diagram-container {
        margin: 1rem 0;
        padding: 0.8rem;
    }
}

/* Guide Detail Page Styles */
.guide-navigation {
    margin-bottom: 2rem;
    padding-top: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    background-color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    font-size: 1rem;
}

.back-link:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.guide-content {
    max-width: 800px;
    margin: 0 auto;
}

.guide-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-gray);
}

.category-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.guide-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.guide-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.guide-body {
    margin-bottom: 3rem;
}

.guide-steps,
.guide-tips,
.guide-images,
.guide-diagram,
.guide-external-link,
.guide-tags,
.guide-applies {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--light-gray);
}

.guide-steps h2,
.guide-tips h3,
.guide-images h3,
.guide-diagram h3,
.guide-external-link h3,
.guide-tags h3,
.guide-applies h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.steps-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.steps-list li {
    counter-increment: step-counter;
    position: relative;
    padding: 1rem 0 1rem 3rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--light-gray);
    background: var(--background-light);
    border-radius: 8px;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0.25rem;
    top: 0.75rem;
    background: var(--primary-color);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    position: relative;
    padding: 0.8rem 0 0.8rem 2rem;
    margin-bottom: 0.8rem;
    background: var(--background-light);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.tips-list li::before {
    content: "💡";
    position: absolute;
    left: 0.5rem;
    top: 0.8rem;
}

.guide-diagram img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 1rem auto;
    display: block;
}

/* Guide Images Styles */
.images-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.guide-image-item {
    background: var(--background-light);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.guide-image-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.guide-step-image {
    width: 100%;
    min-height: 200px;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background: white;
    cursor: pointer;
}

.guide-step-image:hover {
    transform: scale(1.05);
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 768px) {
    .images-container {
        grid-template-columns: 1fr;
    }
    
    .guide-step-image {
        max-height: 400px;
    }
}

@media (min-width: 1200px) {
    .guide-step-image {
        max-height: 600px;
    }
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-caption {
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    margin-top: 1rem;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-navigation:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Add click indicator to images */
.guide-step-image {
    position: relative;
}

.guide-step-image::after {
    content: "🔍";
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guide-step-image:hover::after {
    opacity: 1;
}

.external-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.external-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.guide-footer {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--light-gray);
}

.guide-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
}

.guide-feedback {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

.guide-feedback p {
    margin-bottom: 1rem;
    color: var(--text-gray);
    font-weight: 500;
}

.feedback-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.feedback-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.feedback-btn.helpful {
    background: #10b981;
    color: white;
}

.feedback-btn.helpful:hover {
    background: #059669;
}

.feedback-btn.not-helpful {
    background: #ef4444;
    color: white;
}

.feedback-btn.not-helpful:hover {
    background: #dc2626;
}

.error-message {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.error-message i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.error-message h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.error-message p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* Search Result Enhancements */
.result-action {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
    text-align: center;
}

.view-guide-hint {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.search-result-item:hover .view-guide-hint {
    color: var(--primary-dark);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

/* Responsive Design for Guide Page */
@media (max-width: 768px) {
    .guide-title {
        font-size: 2rem;
    }
    
    .guide-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .feedback-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .steps-list li {
        padding-left: 2rem;
    }
    
    .steps-list li::before {
        left: -1rem;
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.8rem;
    }
}
.contact-page {
    padding: 4rem 0;
    background: white;
}

.contact-page h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.contact-intro {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-info-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.contact-detail {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 0.5rem;
}
/* Ensure contact links do not show underlines */
.contact-detail a { text-decoration: none; }
.contact-detail a:hover, .contact-detail a:focus { text-decoration: none; }

.contact-note {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.emergency-contact {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    width: 100%;
    max-width: none;
}

.emergency-banner {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.emergency-banner i {
    font-size: 2rem;
    color: #fff;
}

.emergency-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.emergency-content p {
    margin-bottom: 0.3rem;
    opacity: 0.9;
}

.emergency-info p {
    margin-bottom: 0.5rem;
}

.emergency-contact {
    font-size: 1.2rem;
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: inline-block;
    margin: 0.5rem 0;
}

/* Search Page Styles */
.search-page {
    padding: 4rem 0;
    background: white;
}

.search-page h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.search-intro {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

.search-container-main {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.search-input-wrapper input {
    width: 100%;
    padding: 1rem 4rem 1rem 1.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    outline: none;
    transition: box-shadow 0.3s ease;
}

.search-input-wrapper input:focus {
    box-shadow: 0 4px 25px rgba(0,0,0,0.2);
}

.search-input-wrapper button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-input-wrapper button:hover {
    background: #2980b9;
}

.search-tips {
    background: #e8f4fd;
    border-left: 4px solid #3498db;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    text-align: center;
}

.search-tips p {
    margin: 0;
    color: #2c3e50;
}

.search-results {
    background: #f8f9fa;
    padding: 2rem 0;
}

.search-status {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
    font-size: 1.1rem;
}

.search-results-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-top: 2rem;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.results-count {
    color: #666;
    font-style: italic;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.search-result-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-result-item:hover {
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.result-title {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.result-category {
    background: #3498db;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.result-description {
    color: #666;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.result-steps {
    margin: 1rem 0;
}

.result-steps h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.result-steps ol {
    padding-left: 1.5rem;
}

.result-steps li {
    margin-bottom: 0.3rem;
    color: #555;
}

.result-tags {
    margin-top: 1rem;
}

.result-tag {
    background: #ecf0f1;
    color: #555;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.3rem;
    display: inline-block;
}

.highlight {
    background: #fff3cd;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header: stack brand and links, match current HTML */
    header nav { flex-direction: column; align-items: center; gap: 1rem; }
    .nav-links { display: flex; justify-content: center; gap: 1rem; }

    .hero h2 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .category-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .category-card { padding: 1.5rem; }
    .solution-content { padding: 1.5rem; }
    .footer-content { grid-template-columns: 1fr; gap: 1.5rem; }
    .contact-info-grid { grid-template-columns: 1fr; }
    .contact-page h1, .search-page h1 { font-size: 2rem; }
    .search-section, .search-results-section { padding: 1.5rem; }
    .result-header { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .hero { padding: 1.5rem 0; }
    .hero h2 { font-size: 1.8rem; }
    .categories { padding: 1.5rem 0; }
    .solutions { padding: 1.5rem 0; }
    .category-card { padding: 0.9rem; }
    .category-card i { font-size: 2rem; }
    .solution-content { padding: 0.9rem; }
    .search-input { padding: 0.7rem 2.6rem 0.7rem 0.9rem; font-size: 1rem; }
    .search-btn { padding: 0.5rem 0.9rem; }

    /* Header mobile tweaks matching current markup */
    .nav-brand .logo-image { height: 32px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
    .nav-links a { padding: 0.3rem 0.7rem; font-size: 0.9rem; }

    /* Footer mobile spacing */
    .footer { padding: 1.2rem 0 0.4rem; }
    .footer-content { gap: 1rem; margin-bottom: 1rem; }
    .footer-bottom { padding-top: 1rem; }
}