/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    margin-bottom: 10px;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: blue;
}

a:hover {
    color: #3eb370;
}

/* Header Styles */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 0.95rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    text-align: center;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s;
}

nav ul li a:hover {
    background-color: #2d2d44;
    color: #3498db;
}

/* Active nav item */
nav ul li a.active {
    background-color: #4d4d74;
    color: #fff;
}

/* Archaeology Page Specific Styles */
.archaeology-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.archaeology-header h1 {
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.archaeology-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.archaeology-tab {
    padding: 0.7rem 1.2rem;
    background-color: #f0f0f0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 500;
    font-size: 1rem;
    color: #333;
}

.archaeology-tab:hover {
    background-color: #e0e0e0;
}

.archaeology-tab.active {
    background-color: #4CAF50;
    color: white;
}

.archaeology-content {
    display: none;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.archaeology-content.active {
    display: block;
}

.archaeology-content h2 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 0.5rem;
}

/* Section Header with Add Button */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    margin: 0;
    color: #2c3e50;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 0.5rem;
    flex: 1;
}

.add-btn {
    padding: 0.7rem 1.2rem;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s;
    margin-left: 1rem;
}

.add-btn:hover {
    background-color: #219a52;
    transform: translateY(-1px);
}

.add-btn:active {
    transform: translateY(0);
}

/* Design Archives */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.archive-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.archive-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.archive-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.archive-item h3 {
    padding: 1rem 1rem 0.5rem;
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.archive-item p {
    padding: 0 1rem 1rem;
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}

.archive-item .view-details {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.archive-item .view-details:hover {
    background-color: #2980b9;
}

.archive-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.pagination-btn:hover {
    background-color: #e0e0e0;
}

.pagination-btn.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Designer Interviews */
.interview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.interview-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.interview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.interview-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.interview-item h3 {
    padding: 1rem 1rem 0.5rem;
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.interview-item p {
    padding: 0 1rem 1rem;
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}

.interview-item .watch-btn {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.interview-item .watch-btn:hover {
    background-color: #c0392b;
}

.interview-featured {
    background-color: #2c3e50;
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
}

.interview-featured h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: white;
}

.interview-featured p {
    margin-bottom: 1rem;
}

.interview-featured .series-btn {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.interview-featured .series-btn:hover {
    background-color: #2980b9;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close:hover {
    color: #333;
}

.modal h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-group input[type="file"] {
    padding: 0.5rem;
}

.submit-btn {
    background-color: #27ae60;
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #219a52;
}

.cancel-btn {
    background-color: #95a5a6;
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-left: 0.5rem;
    transition: background-color 0.3s;
}

.cancel-btn:hover {
    background-color: #7f8c8d;
}

/* Card Timeline */
.timeline-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 1rem;
}

.timeline-selector, .timeline-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-selector p, .timeline-filter p {
    margin: 0;
    font-weight: 500;
}

.timeline-selector select, .timeline-filter select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.timeline-display {
    margin-bottom: 2rem;
}

.timeline-event {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: 140px;
    top: 30px;
    bottom: -30px;
    width: 2px;
    background-color: #3498db;
}

.timeline-event:last-child::before {
    display: none;
}

.timeline-date {
    width: 140px;
    padding-right: 2rem;
    font-weight: bold;
    color: #2c3e50;
    text-align: right;
}

.timeline-content {
    flex: 1;
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-left: 2rem;
}

.timeline-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #3498db;
}

.timeline-content p {
    margin-bottom: 1rem;
}

.timeline-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 1rem;
}

.timeline-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.timeline-navigation button {
    padding: 0.7rem 1.2rem;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.timeline-navigation button:hover {
    background-color: #1a252f;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .archaeology-navigation {
        flex-direction: column;
        align-items: stretch;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .section-header h2 {
        text-align: center;
    }
    
    .timeline-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .timeline-event {
        flex-direction: column;
    }
    
    .timeline-event::before {
        left: 10px;
        top: 50px;
    }
    
    .timeline-date {
        width: 100%;
        padding-right: 0;
        text-align: left;
        margin-bottom: 1rem;
        padding-left: 30px;
    }
    
    .timeline-content {
        margin-left: 30px;
    }
    
    .archive-grid, .interview-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid #34495e;
}

footer p {
    margin: 0.5rem 0;
}