* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #212529;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

header {
    background: linear-gradient(135deg, #0d2b3e, #1a4a6f);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

header h1 a {
    color: white;
    text-decoration: none;
    font-size: 2.5rem;
    transition: opacity 0.2s;
}

header h1 a:hover {
    opacity: 0.9;
}

header p {
    opacity: 0.9;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

.search-box {
    margin-top: 1.5rem;
}

#searchInput {
    width: 100%;
    max-width: 550px;
    padding: 14px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}

#searchInput:focus {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem;
    margin: 2.5rem 0;
}

.question-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.question-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.question-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.question-card h3 a {
    color: #1a4a6f;
    text-decoration: none;
}

.question-card h3 a:hover {
    text-decoration: underline;
}

.question-card .short-answer {
    color: #495057;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
    font-style: normal;
}

.question-card .category {
    display: inline-block;
    background: #e7f1ff;
    color: #1a4a6f;
    padding: 0.25rem 0.9rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#questionDetail {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

#questionDetail h1 {
    margin-bottom: 1rem;
    color: #0d2b3e;
    font-size: 2rem;
}

#questionDetail .answer {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
}

#questionDetail .answer p {
    margin-bottom: 1rem;
}

#questionDetail .answer ul, #questionDetail .answer ol {
    margin: 1rem 0 1rem 2rem;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
    font-size: 1.1rem;
}

footer {
    background: #e9ecef;
    text-align: center;
    padding: 1.8rem;
    margin-top: auto;
    color: #495057;
}

/* About & Contact sections */
.info-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 3rem 0 2rem;
    border-top: 1px solid #e0e0e0;
    padding-top: 2rem;
}

.about-section, .contact-section {
    flex: 1;
    min-width: 250px;
    background: #fefefe;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}

.about-section:hover, .contact-section:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.about-section h2, .contact-section h2 {
    color: #1a4a6f;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.about-section p, .contact-section p {
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.contact-details li {
    margin-bottom: 0.75rem;
}

.contact-details a {
    color: #1a4a6f;
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
}

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

/* Premium Domains Section */
.domains-section {
    margin: 3rem 0 2rem;
    border-top: 1px solid #e0e0e0;
    padding-top: 2rem;
}

.domains-section h2 {
    color: #1a4a6f;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.domains-intro {
    text-align: center;
    color: #495057;
    margin-bottom: 2rem;
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
    margin: 1.5rem 0;
}

.domain-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    text-align: center;
    border: 1px solid #eef2f5;
}

.domain-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    border-color: #cbdde9;
}

.domain-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0d2b3e;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.domain-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a4a6f;
    background: #e7f1ff;
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 40px;
    margin: 0.75rem 0;
}

.domain-card .domain-desc {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 0.75rem 0;
}

.buy-btn {
    display: inline-block;
    background: #1a4a6f;
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.4rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
    margin-top: 0.5rem;
}

.buy-btn:hover {
    background: #0d2b3e;
}

.domains-note {
    text-align: center;
    background: #f1f3f5;
    padding: 1rem;
    border-radius: 50px;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.domains-note a {
    color: #1a4a6f;
    text-decoration: none;
    font-weight: 600;
}

.domains-note a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .questions-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    header h1 a {
        font-size: 1.8rem;
    }
    
    #questionDetail {
        padding: 1.2rem;
    }
    
    #questionDetail h1 {
        font-size: 1.5rem;
    }

    .info-sections {
        flex-direction: column;
        gap: 1.5rem;
    }

    .domain-name {
        font-size: 1.4rem;
    }
    .domain-price {
        font-size: 1.2rem;
    }
}
