/* Enhanced Markdown Content Styles */
.content-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
}

/* Headers */
.content-page h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    text-align: center;
}

.content-page h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.content-page h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Subtitle styling */
.content-page h1 + p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
}

/* Horizontal Rules */
.content-page hr {
    margin: 3rem 0;
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--secondary), transparent);
}

/* Images */
.content-page img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

/* Image alignment classes */
.img-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.img-left {
    float: left;
    margin: 0 2rem 1rem 0;
    max-width: 40%;
}

.img-right {
    float: right;
    margin: 0 0 1rem 2rem;
    max-width: 40%;
}

/* Text alignment */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* Lists */
.content-page ul, 
.content-page ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.content-page li {
    margin-bottom: 0.75rem;
}

.content-page ul li {
    list-style-type: none;
    position: relative;
}

.content-page ul li::before {
    content: '•';
    color: var(--secondary);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

/* Definition-style lists */
.definition-list dt {
    font-weight: 600;
    color: var(--primary);
    margin-top: 1rem;
}

.definition-list dd {
    margin-left: 1rem;
    color: var(--text-light);
}






/* Contact Information */
.contact-info {
    background: var(--bg);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.contact-info p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin: 0;
    transition: var(--transition);
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Special Text Styles */
.highlight {
    background: linear-gradient(120deg, rgba(0,130,171,0.1), rgba(0,185,243,0.1));
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.quote {
    font-style: italic;
    color: var(--text-light);
    border-left: 3px solid var(--secondary);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-page {
        padding: 2rem;
    }

    .content-page h1 {
        font-size: 2.5rem;
    }

    .img-left, .img-right {
        float: none;
        max-width: 100%;
        margin: 1rem 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Tabs Container */
.tabs-container {
    margin: 2rem 0;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    /* border: 1px solid rgba(0,0,0,0.08); */
    overflow: hidden;
}

/* Tabs Header */
.tabs-header {
    display: flex;
    gap: 0.45rem;
    /* padding: 1rem; */
    /* background: var(--primary); */
    border-bottom: 1px solid var(--secondary);
}

/* Tab Buttons */
.tab-button {
    padding: 0.15rem 0.5rem;;
    background: var(--primary);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px 8px 0px 0px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.tab-button:hover {
    background: var(--secondary);
    transform: translateY(-1px);
}

.tab-button.active {
    background: var(--secondary);
    border-color: var(--secondary);
}

/* Tab Content */
.tabs-body {
    background: white;
}

.tab-content {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* Tab Content Styling */
.tab-content > *:first-child {
    margin-top: 0;
}

.tab-content > *:last-child {
    margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tabs-header {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1;
        min-width: 120px;
        text-align: center;
        padding: 0.75rem 1rem;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
}

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