/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Header Styles */
.header {
    background-color: #1e3a8a;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-section {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
}

.logo-image {
    height: 80px;
    width: 100%;
    object-fit: cover;
    max-width: 200px;
    display: block;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background-color: rgba(255,255,255,0.1);
    padding: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Mobile responsive logo */
@media (max-width: 768px) {
    .logo-image {
        height: 60px;
        width: 100%;
        min-width: 120px;
        padding: 0;
        object-fit: cover;
        border-radius: 6px;
    }
    
    .logo-section {
        width: 120px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 50px;
        width: 100%;
        min-width: 100px;
        padding: 0;
        object-fit: cover;
        border-radius: 4px;
    }
    
    .logo-section {
        width: 100px;
        height: 50px;
    }
}

.logo-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    border-color: rgba(255,255,255,0.5);
}

.logo-fallback {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 10px;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.header-text {
    flex: 1;
}

.header-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.header-date {
    font-size: 1.1rem;
    opacity: 0.9;
}

.header-right {
    flex: 0 0 auto;
}

.search-bar {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    width: 250px;
    background-color: white;
    color: #333;
}

.search-bar::placeholder {
    color: #666;
}

/* Navigation Styles */
.navigation {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    gap: 0;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.nav-item {
    background: none;
    border: none;
    color: white;
    padding: 12px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: white;
}

/* Main Content Styles */
.main-content {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 10px;
}

.content-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
}

.content-title {
    font-size: 2rem;
    font-weight: bold;
    color: #1e3a8a;
    margin-bottom: 30px;
    line-height: 1.3;
}

.content-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1e3a8a;
    margin-top: 20px;
    margin-bottom: 10px;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
}

.impact-list {
    list-style: none;
    padding-left: 0;
}

.impact-list li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.impact-list li::before {
    content: '•';
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

.nested-list {
    list-style: none;
    padding-left: 20px;
    margin-top: 8px;
}

.nested-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 5px;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.nested-list li::before {
    content: '○';
    color: #3b82f6;
    font-weight: bold;
    font-size: 1rem;
    position: absolute;
    left: 0;
    top: 0;
}

/* Overview Page Styles */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.highlight-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.highlight-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: white;
}

.highlight-text {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.industry-category {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    transition: transform 0.2s ease;
}

.industry-category:hover {
    transform: translateX(5px);
}

.category-title {
    color: #007bff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 1.5rem;
}

.category-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.category-list li:last-child {
    border-bottom: none;
}

.update-timeline {
    position: relative;
    margin: 2rem 0;
    padding-left: 2rem;
}

.update-timeline:before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #007bff, #28a745);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-left: 1rem;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: -2rem;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #007bff;
}

.timeline-date {
    background: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.timeline-title {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-text {
    color: #666;
    line-height: 1.6;
}

.usage-guide {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.step-number {
    background: #28a745;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-text {
    color: #666;
    line-height: 1.6;
}

.impact-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.impact-item {
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.impact-item.positive {
    background: #f8fff9;
    border-left-color: #28a745;
}

.impact-item.neutral {
    background: #fff8f0;
    border-left-color: #ffc107;
}

.impact-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.impact-item.positive .impact-title {
    color: #28a745;
}

.impact-item.neutral .impact-title {
    color: #ffc107;
}

.impact-list {
    list-style: none;
    padding: 0;
}

.impact-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.impact-item.positive .impact-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.impact-item.neutral .impact-list li:before {
    content: "⚠";
    position: absolute;
    left: 0;
    color: #ffc107;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-title {
        font-size: 2rem;
    }
    
    .search-bar {
        width: 100%;
        max-width: 300px;
    }
    
    .nav-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .content-container {
        padding: 25px;
        margin: 20px 10px;
    }
    
    .content-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .section-text,
    .impact-list li {
        font-size: 1rem;
    }
    
    /* Overview responsive styles */
    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .industry-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .update-timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        margin-left: 0.5rem;
    }
    
    .timeline-item:before {
        left: -1.5rem;
    }
    
    .impact-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .guide-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
    
    /* Sub-navigation responsive styles */
    .sub-nav-container {
        flex-wrap: wrap;
        gap: 3px;
        justify-content: flex-start;
    }
    
    .sub-nav-item {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: auto;
        flex: 1 1 auto;
    }
    
    /* Table responsive improvements */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .rate-table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .company-name {
        font-size: 1.6rem;
    }
    
    .header-title {
        font-size: 1.6rem;
    }
    
    .logo-image {
        width: 50px;
        height: 50px;
    }
    
    .nav-item {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .content-container {
        padding: 20px;
    }
    
    .content-title {
        font-size: 1.4rem;
    }
}

/* Footer Styles */
.footer {
    background-color: #87ceeb;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

.footer-text {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin: 0;
}

/* Tab Content Styles */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Sub-tab Navigation Styles */
.sub-nav-container {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
    justify-content: center;
}

.sub-nav-item {
    background: none;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 10px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px 5px 0 0;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.sub-nav-item:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.sub-nav-item.active {
    background-color: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
    font-weight: bold;
}

.sub-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #1e3a8a;
}

/* Sub-tab Content Styles */
.sub-tab-content {
    display: none;
}

.sub-tab-content.active {
    display: block;
}

/* Rate Table Styles */
.table-container {
    margin: 20px 0;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rate-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background-color: white;
    font-size: 0.9rem;
}

.rate-table thead {
    background-color: #1e3a8a;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.rate-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: bold;
    font-size: 0.85rem;
    border: none;
    white-space: nowrap;
}

.rate-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.4;
    vertical-align: top;
}

.rate-table tbody tr:hover {
    background-color: #f8fafc;
}

.rate-table tbody tr:last-child td {
    border-bottom: none;
}

.rate-table td:nth-child(1) {
    background-color: #f1f5f9;
    font-weight: 600;
    color: #1e3a8a;
    min-width: 80px;
}

.rate-table td:nth-child(2) {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #374151;
    min-width: 70px;
}

.rate-table td:nth-child(3) {
    min-width: 150px;
    max-width: 250px;
}

.rate-table td:nth-child(4),
.rate-table td:nth-child(5) {
    text-align: center;
    font-weight: 600;
    min-width: 60px;
}

.rate-table td:nth-child(6) {
    min-width: 180px;
    max-width: 300px;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Comparative Analysis Table Styles */
.comparative-table {
    margin: 20px 0;
    overflow-x: auto;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.analysis-table thead {
    background-color: #1e3a8a;
    color: white;
}

.analysis-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: bold;
    font-size: 1rem;
    border: none;
}

.analysis-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.95rem;
    line-height: 1.5;
}

.analysis-table tbody tr:hover {
    background-color: #f8fafc;
}

.analysis-table tbody tr:last-child td {
    border-bottom: none;
}

.analysis-table td:first-child {
    background-color: #f1f5f9;
    font-weight: 600;
    color: #1e3a8a;
}

/* Responsive table styles */
@media (max-width: 768px) {
    .analysis-table th,
    .analysis-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
    
    .analysis-table th {
        font-size: 0.9rem;
    }
}

/* Search Functionality Styles */
.search-highlight {
    background-color: #fef3c7;
    color: #92400e;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

.search-result {
    border-left: 4px solid #3b82f6;
    padding-left: 15px;
    background-color: #f8fafc;
}

.search-message {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    color: #dc2626;
}

.search-message p {
    margin: 0;
    font-size: 1.1rem;
}

.search-message strong {
    color: #991b1b;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .header {
        padding: 15px 5px;
    }
    
    .header-left {
        gap: 8px;
    }
    
    .logo-image {
        height: 50px;
        max-width: 80px;
    }
    
    .header-title {
        font-size: 1.3rem;
    }
    
    .header-date {
        font-size: 0.8rem;
    }
    
    .nav-item {
        padding: 6px 8px;
        font-size: 0.7rem;
    }
    
    .main-content {
        margin: 10px auto;
        padding: 0 5px;
    }
    
    .content-container {
        padding: 15px;
    }
    
    .content-title {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .rate-table {
        font-size: 0.75rem;
    }
    
    .rate-table th,
    .rate-table td {
        padding: 6px 4px;
    }
    
    .rate-table td:nth-child(1) {
        min-width: 60px;
    }
    
    .rate-table td:nth-child(2) {
        min-width: 50px;
    }
    
    .rate-table td:nth-child(3) {
        min-width: 100px;
        max-width: 150px;
    }
    
    .rate-table td:nth-child(4),
    .rate-table td:nth-child(5) {
        min-width: 40px;
    }
    
    .rate-table td:nth-child(6) {
        min-width: 120px;
        max-width: 200px;
        font-size: 0.7rem;
    }
    
    /* Additional mobile improvements */
    .sub-nav-container {
        padding: 0 5px;
    }
    
    .sub-nav-item {
        padding: 6px 8px;
        font-size: 0.75rem;
        margin-bottom: 3px;
    }
    
    .content-container {
        padding: 15px 10px;
        margin: 10px 5px;
    }
    
    .header-content {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 5px;
    }
    
    .nav-item {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}

/* FAQ Styles */
.faq-container {
    max-width: 100%;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2c3e50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.faq-question {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.faq-answer {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.faq-answer br {
    margin-bottom: 0.5rem;
}

/* Search highlight styles */
.search-highlight {
    background-color: #fef08a;
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: 500;
}

.search-highlight-active {
    background-color: #fbbf24 !important;
    box-shadow: 0 0 0 2px #f59e0b;
    border-radius: 3px;
    font-weight: 600;
    animation: searchPulse 1s ease-in-out;
}

@keyframes searchPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
