/* About Page Styles */

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Times New Roman', Times, serif;
}

/* Waris Block Styles */
.waris-block {
    background-color: #f8f8f8;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.waris-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.waris-image .waris-portrait {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.waris-text h1 {
    color: #8B0000;
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
}

.waris-text h2 {
    color: #000080;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.jawi-text {
    font-size: 18px;
    text-align: center;
    margin: 15px 0;
    font-family: 'Arial Unicode MS', 'Tahoma', sans-serif;
}

.sub-heading {
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

/* Gate Section */
.gate-section {
    text-align: center;
    margin: 30px 0;
}

.gate-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Timeline Section */
.timeline-section {
    margin: 40px 0;
}

.timeline-section h2 {
    text-align: center;
    color: #8B0000;
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000080;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.timeline-image {
    position: relative;
    flex-shrink: 0;
}

.timeline-image img {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.sultan-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #8B0000;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.timeline-content {
    flex: 1;
}

.timeline-content h3 {
    color: #000080;
    margin-top: 0;
    font-size: 20px;
}

.reign {
    color: #8B0000;
    font-weight: bold;
    margin-bottom: 10px;
}

.jawi-subtitle {
    font-family: 'Arial Unicode MS', 'Tahoma', sans-serif;
    font-size: 16px;
    margin: 10px 0;
}

.special-note {
    background-color: #e8f4f8;
    border-left: 4px solid #000080;
}

.special-note .timeline-content h3 {
    color: #8B0000;
}

/* Tab Section */
.tab-section {
    margin: 40px 0;
}

.tab-section h2 {
    text-align: center;
    color: #8B0000;
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000080;
}

.tab-container {
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    background-color: #000080;
    border-bottom: 2px solid #8B0000;
}

.tab-button {
    flex: 1;
    min-width: 120px;
    padding: 15px 10px;
    background-color: #000080;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s;
}

.tab-button:hover {
    background-color: #000066;
}

.tab-button.active {
    background-color: #8B0000;
}

.tab-content {
    padding: 20px;
    min-height: 200px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-pane h3 {
    color: #000080;
    margin-top: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.tab-pane ol {
    padding-left: 20px;
}

.tab-pane li {
    margin-bottom: 8px;
}

/* Family Section */
.family-section {
    margin: 40px 0;
}

.family-section h2 {
    text-align: center;
    color: #8B0000;
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000080;
}

.family-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.family-item {
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.family-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 15px;
}

.family-item p {
    font-weight: bold;
    color: #333;
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .waris-content {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-image {
        align-self: center;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .family-container {
        flex-direction: column;
        align-items: center;
    }
    
    .family-item {
        width: 100%;
        max-width: 100%;
    }
}