/* Main Container */
.nato-phonetic-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Hero Section */
.nato-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nato-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.nato-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.nato-hero-graphic {
    margin-top: 30px;
    width: 100%;
    max-width: 400px;
}

.nato-radio-graphic {
    height: 150px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50"><circle cx="50" cy="25" r="20" fill="none" stroke="white" stroke-width="2"/><circle cx="50" cy="25" r="15" fill="none" stroke="white" stroke-width="2"/><circle cx="50" cy="25" r="10" fill="none" stroke="white" stroke-width="2"/><text x="50" y="25" font-family="Arial" font-size="8" fill="white" text-anchor="middle" dominant-baseline="middle">NATO</text></svg>') center no-repeat;
    background-size: contain;
    position: relative;
}

/* Tool Section */
.nato-tool-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.nato-input-container, .nato-output-container {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nato-input-label, .nato-output-label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #2a5298;
}

.nato-input-textarea, .nato-output-textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s;
}

.nato-input-textarea:focus {
    border-color: #2a5298;
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.2);
}

.nato-output-textarea {
    background-color: #f9f9f9;
    font-weight: 500;
}

.nato-controls, .nato-output-controls {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.nato-convert-btn, .nato-clear-btn, .nato-copy-btn, .nato-speak-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nato-convert-btn {
    background-color: #2a5298;
    color: white;
}

.nato-convert-btn:hover {
    background-color: #1e3c72;
    transform: translateY(-2px);
}

.nato-clear-btn {
    background-color: #f5f5f5;
    color: #555;
}

.nato-clear-btn:hover {
    background-color: #e0e0e0;
}

.nato-copy-btn {
    background-color: #4CAF50;
    color: white;
}

.nato-copy-btn:hover {
    background-color: #3e8e41;
    transform: translateY(-2px);
}

.nato-speak-btn {
    background-color: #2196F3;
    color: white;
}

.nato-speak-btn:hover {
    background-color: #0b7dda;
    transform: translateY(-2px);
}

.nato-btn-icon {
    font-size: 1.1rem;
}

/* Info Boxes Section */
.nato-info-section {
    margin-bottom: 50px;
}

.nato-section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2a5298;
    position: relative;
}

.nato-section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #2a5298, #1e3c72);
    margin: 15px auto 0;
    border-radius: 2px;
}

.nato-info-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.nato-info-box {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.nato-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.nato-info-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.nato-info-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2a5298;
}

.nato-info-box p {
    color: #666;
    line-height: 1.6;
}

.nato-info-box-1 {
    border-top: 4px solid #4CAF50;
}

.nato-info-box-2 {
    border-top: 4px solid #2196F3;
}

.nato-info-box-3 {
    border-top: 4px solid #FF5722;
}

/* Details Section */
.nato-details-section {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nato-details-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nato-feature-highlight {
    margin: 25px 0;
    padding-left: 20px;
    border-left: 4px solid #2a5298;
}

.nato-feature-highlight h3 {
    color: #2a5298;
    margin-bottom: 10px;
}

.nato-feature-highlight p {
    color: #555;
    line-height: 1.6;
}

.nato-alphabet-chart {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nato-chart-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #2a5298;
}

.nato-alphabet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.nato-alphabet-item {
    background: #f5f7fa;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s;
}

.nato-alphabet-item:hover {
    background: #e0e6f0;
    transform: translateY(-2px);
}

.nato-alphabet-item span {
    display: block;
    font-weight: 700;
    font-size: 1.3rem;
    color: #2a5298;
    margin-bottom: 5px;
}

/* FAQ Section */
.nato-faq-section {
    margin-bottom: 50px;
}

.nato-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.nato-faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nato-faq-question {
    width: 100%;
    padding: 20px;
    text-align: left;
    background: #2a5298;
    color: white;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.nato-faq-question:hover {
    background: #1e3c72;
}

.nato-faq-icon {
    font-size: 1.3rem;
    transition: transform 0.3s;
}

.nato-faq-question.active .nato-faq-icon {
    transform: rotate(45deg);
}

.nato-faq-answer {
    background: white;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.nato-faq-answer.show {
    padding: 20px;
    max-height: 1000px;
}

.nato-faq-answer p, .nato-faq-answer ul {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.nato-faq-answer ul {
    padding-left: 20px;
}

.nato-related-link {
    color: #2a5298;
    font-weight: 600;
    text-decoration: none;
}

.nato-related-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nato-hero-content h1 {
        font-size: 2rem;
    }
    
    .nato-subtitle {
        font-size: 1rem;
    }
    
    .nato-section-title {
        font-size: 1.7rem;
    }
    
    .nato-info-box {
        min-width: 100%;
    }
    
    .nato-alphabet-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .nato-hero {
        padding: 30px 15px;
    }
    
    .nato-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .nato-input-container, .nato-output-container {
        padding: 15px;
    }
    
    .nato-controls, .nato-output-controls {
        flex-direction: column;
    }
    
    .nato-convert-btn, .nato-clear-btn, .nato-copy-btn, .nato-speak-btn {
        width: 100%;
        justify-content: center;
    }
    
    .nato-alphabet-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}