/* Past Religions Page Styles */
.past-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85)), url('../bannera/rel.png');
    background-size: cover;
    background-position: center;
    height: 751px;
    display: flex;
    flex-direction: column;
}

.past-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.past-section {
    margin-bottom: 80px;
}

.past-section h2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 36px;
    color: #04091e;
    margin-bottom: 25px;
    border-left: 5px solid rgb(198, 176, 105);
    padding-left: 20px;
}

.past-section p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Timeline */
.timeline-container {
    position: relative;
    padding: 40px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, rgb(198, 176, 105), #04091e);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    border-top: 4px solid rgb(198, 176, 105);
}

.timeline-icon {
    position: absolute;
    top: 30px;
    width: 60px;
    height: 60px;
    background: #04091e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(198, 176, 105);
    font-size: 24px;
    border: 4px solid white;
    box-shadow: 0 0 0 4px rgb(198, 176, 105);
    z-index: 10;
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -80px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -80px;
}

.timeline-era {
    display: inline-block;
    background: rgb(198, 176, 105);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 15px;
}

.timeline-content h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 24px;
    color: #04091e;
    margin-bottom: 15px;
}

.timeline-content p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Ancient Religions Grid */
.ancient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.ancient-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.ancient-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.ancient-image {
    height: 220px;
    background: linear-gradient(135deg, #04091e 0%, #1a1f3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ancient-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(198,176,105,0.1)" stroke-width="2"/></svg>');
    background-size: 100px 100px;
}

.ancient-image i {
    font-size: 80px;
    color: rgba(198, 176, 105, 0.3);
    position: relative;
    z-index: 1;
}

.ancient-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.ancient-body {
    padding: 30px;
}

.ancient-body h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 24px;
    color: #04091e;
    margin-bottom: 10px;
}

.ancient-date {
    color: rgb(198, 176, 105);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
}

.ancient-body p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Artifacts Section */
.artifacts-section {
    background: #04091e;
    padding: 100px 20px;
}

.artifacts-content {
    max-width: 1200px;
    margin: 0 auto;
}

.artifacts-content h2 {
    color: white;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 36px;
    margin-bottom: 50px;
}

.artifacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.artifact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(198, 176, 105, 0.3);
    border-radius: 15px;
    padding: 35px;
    text-align: center;
    transition: 0.3s;
}

.artifact-card:hover {
    background: rgba(198, 176, 105, 0.1);
    border-color: rgb(198, 176, 105);
    transform: scale(1.05);
}

.artifact-card i {
    font-size: 50px;
    color: rgb(198, 176, 105);
    margin-bottom: 20px;
}

.artifact-card h3 {
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 20px;
    margin-bottom: 15px;
}

.artifact-card p {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Transition Section */
.transition-section {
    background: linear-gradient(rgba(198, 176, 105, 0.9), rgba(198, 176, 105, 0.95)), url('back.jpg');
    background-size: cover;
    background-attachment: fixed;
    padding: 100px 20px;
}

.transition-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.transition-content h2 {
    color: #04091e;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 36px;
    margin-bottom: 30px;
}

.transition-content>p {
    color: #04091e;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 50px;
}

.transition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.transition-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.transition-item i {
    font-size: 40px;
    color: #04091e;
    margin-bottom: 15px;
}

.transition-item h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    color: #04091e;
    margin-bottom: 10px;
}

.transition-item p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* Archaeological Sites */
.archaeology-section {
    background: #f9f9f9;
    padding: 80px 20px;
}

.archaeology-content {
    max-width: 1200px;
    margin: 0 auto;
}

.archaeology-content h2 {
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 36px;
    color: #04091e;
    margin-bottom: 50px;
}

.sites-list {
    display: grid;
    gap: 25px;
}

.site-item {
    background: white;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.site-item:hover {
    transform: translateX(10px);
    border-left: 4px solid rgb(198, 176, 105);
}

.site-icon {
    width: 70px;
    height: 70px;
    background: #04091e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.site-icon i {
    font-size: 28px;
    color: rgb(198, 176, 105);
}

.site-details h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 22px;
    color: #04091e;
    margin-bottom: 8px;
}

.site-era {
    color: rgb(198, 176, 105);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.site-details p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .past-hero {
        height: auto;
        min-height: 400px;
    }

    .timeline-container::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        padding-left: 60px;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-icon {
        left: -10px !important;
        right: auto !important;
        top: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .site-item {
        flex-direction: column;
        text-align: center;
    }

    .site-icon {
        margin: 0 auto;
    }
}