/* Custom Styles for Vienna Palace */

/* Color Variables */
:root {
    --palace-gold: #D4AF37;
    --palace-dark: #1A1A1A;
    --palace-red: #800020;
    --palace-cream: #F5F5DC;
}

/* Custom Button Styles */
.btn-primary {
    background-color: var(--palace-gold);
    color: white;
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #ca8a04;
    transform: translateY(-0.125rem);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.btn-secondary {
    border: 2px solid var(--palace-dark);
    color: var(--palace-dark);
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--palace-dark);
    color: white;
}

/* Card Styles */
.card-museum {
    position: relative;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    transition: all 0.5s ease;
}

.card-museum:hover {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.card-museum img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.group:hover .card-museum img {
    transform: scale(1.1);
}

/* Section Title */
.section-title {
    position: relative;
    margin-bottom: 1.5rem;
    display: inline-block;
    font-family: "Playfair Display", serif;
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    color: var(--palace-dark);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
}

.section-title::after {
    content: '';
    display: block;
    width: 6rem;
    height: 0.25rem;
    background-color: var(--palace-gold);
    margin: 1rem auto 0;
}

/* Text Shadow Utility */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Gold Border Bottom */
.gold-border-bottom {
    border-bottom: 3px solid var(--palace-gold);
}

/* Line Clamp */
.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* Custom Colors for Tailwind */
.bg-palace-gold {
    background-color: var(--palace-gold);
}

.bg-palace-dark {
    background-color: var(--palace-dark);
}

.bg-palace-red {
    background-color: var(--palace-red);
}

.bg-palace-cream {
    background-color: var(--palace-cream);
}

.text-palace-gold {
    color: var(--palace-gold);
}

.text-palace-dark {
    color: var(--palace-dark);
}

.text-palace-red {
    color: var(--palace-red);
}

.text-palace-cream {
    color: var(--palace-cream);
}

.border-palace-gold {
    border-color: var(--palace-gold);
}

.border-palace-dark {
    border-color: var(--palace-dark);
}

/* Animation */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 1s ease-out;
}

/* Blog Content Typography Styles */
.blog-content {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #374151;
}

.blog-content>*+* {
    margin-top: 1.5em;
}

.blog-content h1 {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--palace-dark);
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.blog-content h2 {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--palace-dark);
    margin-top: 1.8em;
    margin-bottom: 0.7em;
    padding-bottom: 0.3em;
    border-bottom: 2px solid var(--palace-gold);
}

.blog-content h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--palace-dark);
    margin-top: 1.6em;
    margin-bottom: 0.6em;
}

.blog-content h4 {
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 700;
    color: var(--palace-dark);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.blog-content h5,
.blog-content h6 {
    font-family: "Playfair Display", serif;
    font-size: 1.125rem;
    line-height: 1.6;
    font-weight: 700;
    color: var(--palace-dark);
    margin-top: 1.4em;
    margin-bottom: 0.5em;
}

.blog-content p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    line-height: 1.75;
}

.blog-content strong {
    font-weight: 700;
    color: var(--palace-dark);
}

.blog-content em {
    font-style: italic;
}

.blog-content a {
    color: var(--palace-gold);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.blog-content a:hover {
    color: #ca8a04;
}

.blog-content ul,
.blog-content ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.5em;
}

.blog-content ul {
    list-style-type: disc;
}

.blog-content ol {
    list-style-type: decimal;
}

.blog-content li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    line-height: 1.75;
}

.blog-content li::marker {
    color: var(--palace-gold);
    font-weight: 700;
}

.blog-content ul>li>ul,
.blog-content ul>li>ol,
.blog-content ol>li>ul,
.blog-content ol>li>ol {
    margin-top: 0.75em;
    margin-bottom: 0.75em;
}

.blog-content blockquote {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    padding-left: 1.5em;
    border-left: 4px solid var(--palace-gold);
    font-style: italic;
    color: #6b7280;
    background-color: #f9fafb;
    padding: 1.5em;
    border-radius: 0.25rem;
}

.blog-content blockquote p {
    margin-top: 0;
    margin-bottom: 0;
}

.blog-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875em;
    background-color: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    color: #dc2626;
    font-weight: 500;
}

.blog-content pre {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    padding: 1.5em;
    background-color: #1f2937;
    color: #f9fafb;
    border-radius: 0.5rem;
    overflow-x: auto;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.blog-content pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    color: inherit;
    font-size: 0.875em;
    font-weight: 400;
}

.blog-content img {
    margin-top: 2em;
    margin-bottom: 2em;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    max-width: 100%;
    height: auto;
}

.blog-content figure {
    margin-top: 2em;
    margin-bottom: 2em;
}

.blog-content figcaption {
    margin-top: 0.75em;
    font-size: 0.875rem;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

.blog-content table {
    width: 100%;
    margin-top: 2em;
    margin-bottom: 2em;
    border-collapse: collapse;
    font-size: 0.875rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.blog-content thead {
    background-color: var(--palace-dark);
    color: white;
}

.blog-content thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.blog-content tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.blog-content tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.blog-content tbody tr:hover {
    background-color: #f3f4f6;
}

.blog-content tbody td {
    padding: 0.75rem 1rem;
}

.blog-content hr {
    margin-top: 3em;
    margin-bottom: 3em;
    border: 0;
    border-top: 2px solid #e5e7eb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-content {
        font-size: 1rem;
    }

    .blog-content h1 {
        font-size: 2rem;
    }

    .blog-content h2 {
        font-size: 1.75rem;
    }

    .blog-content h3 {
        font-size: 1.375rem;
    }

    .blog-content h4 {
        font-size: 1.125rem;
    }

    .blog-content table {
        font-size: 0.75rem;
    }

    .blog-content thead th,
    .blog-content tbody td {
        padding: 0.5rem;
    }
}

/* First paragraph larger */
.blog-content>p:first-of-type {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #4b5563;
}

/* Lead paragraph class */
.blog-content .lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #4b5563;
}