/* Study Guide and Legacy Page Specific Styles */

/* Study Guide - Table of Contents */
.table-of-contents {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.table-of-contents h2 {
    color: var(--aus-green);
    margin-bottom: 20px;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.table-of-contents li:last-child {
    border-bottom: none;
}

.table-of-contents a {
    color: var(--aus-green);
    text-decoration: none;
    font-weight: 500;
}

.table-of-contents a:hover {
    text-decoration: underline;
}

/* Guide Sections */
.guide-section {
    background: #fff;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.guide-section h2 {
    color: var(--aus-green);
    font-size: 32px;
    margin-bottom: 20px;
}

.guide-section h3 {
    color: var(--aus-green);
    font-size: 24px;
    margin: 30px 0 15px 0;
}

.guide-section h4 {
    color: var(--aus-green);
    font-size: 20px;
    margin: 20px 0 10px 0;
}

/* Info Tables */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.info-table th {
    background: var(--aus-green);
    color: white;
    padding: 12px;
    text-align: left;
}

.info-table td {
    padding: 12px;
    border: 1px solid #ddd;
}

.info-table tr:nth-child(even) {
    background: #f9f9f9;
}

/* Highlight Box */
.highlight-box {
    background: #e6f3f9;
    padding: 20px;
    border-left: 4px solid var(--aus-green);
    margin: 20px 0;
}

.highlight-box h4 {
    color: var(--aus-green);
    margin-bottom: 10px;
}

/* Government Levels */
.government-level {
    background: #f5f5f5;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.government-level h4 {
    color: var(--aus-green);
    margin-bottom: 10px;
}

/* Critical Section */
.critical-section {
    border: 2px solid #ff6b6b;
    padding: 30px;
    border-radius: 8px;
    background: #fff5f5;
}

.warning-box {
    background: #ff6b6b;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Value Boxes */
.value-box {
    background: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.value-box h4 {
    color: var(--aus-green);
    margin-bottom: 10px;
}

/* Symbol Info */
.symbol-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
    margin: 20px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--aus-green);
}

.timeline-item {
    position: relative;
    padding: 20px 0;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -34px;
    top: 25px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--aus-green);
}

.timeline-item h4 {
    color: var(--aus-green);
    margin-bottom: 5px;
}

/* Tips Box */
.tips-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tips-box > div {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

.tips-box h4 {
    color: var(--aus-green);
    margin-bottom: 10px;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--aus-green) 0%, var(--aus-green-dark) 100%);
    color: white;
    border-radius: 8px;
    margin: 40px 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 10px;
}

.cta-section p {
    color: white;
    opacity: 0.9;
    margin-bottom: 20px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.secondary-button {
    padding: 12px 30px;
    background: white;
    color: var(--aus-green);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.secondary-button:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

/* Contact Page Specific */
.contact-info {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.contact-info h3 {
    color: var(--aus-green);
    margin-bottom: 15px;
}

.contact-category {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-left: 4px solid var(--aus-green);
    border-radius: 4px;
}

.contact-category h4 {
    color: var(--aus-green);
    margin-bottom: 15px;
}

.contact-form-section {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    background: #f5f5f5;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--aus-green);
    color: white;
}

.important-note {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ffeeba;
    margin: 30px 0;
}

/* About Page Specific */
.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.mission, .vision {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.mission h3, .vision h3 {
    color: var(--aus-green);
    margin-bottom: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.feature-item h4 {
    color: var(--aus-green);
    margin-bottom: 10px;
}

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

.values-list li {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 30px 0;
    text-align: center;
}

.stat {
    background: var(--aus-gold);
    color: white;
    padding: 30px;
    border-radius: 8px;
}

.stat h4 {
    font-size: 24px;
    margin-bottom: 10px;
    color: white;
}

/* Settings Page */
.setting-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item h3 {
    color: var(--aus-green);
    margin-bottom: 10px;
}

.setting-item p {
    margin-bottom: 15px;
    color: #666;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    position: relative;
    padding-right: 25px !important;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 5px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 20px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
}

.dropdown-item.active {
    background-color: var(--aus-green, #00698f);
    color: white;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .lang-dropdown {
        width: 100%;
        margin-top: 10px;
    }
    
    .dropdown-toggle {
        width: 100%;
    }
    
    .dropdown-menu {
        left: 0;
        right: 0;
        width: 100%;
    }
}

/* RTL Support for Study Guide */
[dir="rtl"] .timeline {
    padding-left: 0;
    padding-right: 30px;
}

[dir="rtl"] .timeline:before {
    left: auto;
    right: 0;
}

[dir="rtl"] .timeline-item:before {
    left: auto;
    right: -34px;
}

[dir="rtl"] .value-box,
[dir="rtl"] .highlight-box {
    border-left: none;
    border-right: 4px solid var(--aus-green);
}

/* Responsive */
@media (max-width: 768px) {
    .guide-section {
        padding: 20px;
    }
    
    .info-table {
        font-size: 14px;
    }
    
    .info-table th,
    .info-table td {
        padding: 8px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tips-box {
        grid-template-columns: 1fr;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
}