/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    /* Page Header Gradient Colors */
    --gradient-start: rgba(0, 0, 0, 0.3);
    --gradient-end: rgba(99, 70, 127, 0.85);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid white;
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 2.5rem;
    width: auto;
    display: block;
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .highlight {
    color: #fbbf24;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-primary:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

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

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Page Header */
.page-header {
    background-image: linear-gradient(var(--gradient-start), var(--gradient-end));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
}

.contact-form-wrapper {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-color: var(--primary-color);
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid var(--success-color);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid var(--error-color);
}

.form-errors {
    margin-bottom: 1rem;
}

.form-errors .alert-error ul {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
    padding-left: 0;
}

.form-errors .alert-error li {
    margin-bottom: 0.25rem;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: var(--error-color) !important;
    border-width: 2px;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-features li {
    color: var(--text-light);
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #414957 0%, #2d3340 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        display: none;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .page-header h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* About Section */
.about-section {
    padding: 60px 0;
}

.about-wrapper {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.about-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.about-content a:hover {
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    line-height: 0;
}

.social-links img {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Services Overview */
.services-overview,
.methods-section {
    padding: 60px 0;
}

.services-grid-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.services-overview .service-card,
.methods-section .service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.services-overview .service-card h2,
.methods-section .service-card h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.services-overview .service-card ul,
.methods-section .service-card ul {
    list-style: none;
    padding-left: 0;
}

.services-overview .service-card ul li,
.methods-section .service-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.services-overview .service-card ul li::before,
.methods-section .service-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Service Intro */
.service-intro {
    margin-bottom: 3rem;
}

.service-intro h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.service-intro ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.service-intro ul li {
    margin-bottom: 0.5rem;
}

/* Portfolio Graphic */
.portfolio-graphic {
    margin: 3rem 0;
    text-align: center;
}

.portfolio-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Competence Section */
.competence-section {
    margin-top: 3rem;
}

.competence-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.competence-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.competence-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.competence-card p {
    line-height: 1.8;
    color: var(--text-light);
}

/* Tables */
.experience-table,
.education-table,
.references-table,
.impressum-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

.experience-table thead,
.education-table thead,
.references-table thead {
    background: var(--primary-color);
    color: white;
}

.experience-table th,
.education-table th,
.references-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.experience-table td,
.education-table td,
.references-table td,
.impressum-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.experience-table tbody tr:hover,
.education-table tbody tr:hover,
.references-table tbody tr:hover,
.impressum-table tr:hover {
    background: var(--bg-light);
}

.experience-table tbody tr:last-child td,
.education-table tbody tr:last-child td,
.references-table tbody tr:last-child td,
.impressum-table tr:last-child td {
    border-bottom: none;
}

.experience-table td:first-child,
.education-table td:first-child,
.references-table th,
.references-table td:first-child,
.impressum-table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 150px;
}

.references-table th[scope="row"] {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.content-section {
    padding: 80px 0;
}

.content-wrapper {
    max-width: 100%;
}

.content-wrapper h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.content-wrapper h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-dark);
}

.content-wrapper h4 {
    font-size: 1.25rem;
    margin: 1.25rem 0 0.75rem;
    color: var(--text-dark);
}

.content-wrapper p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.content-wrapper a {
    color: var(--primary-color);
    text-decoration: none;
}

.content-wrapper a:hover {
    text-decoration: underline;
}

/* Modern Experience & Education Cards */
.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 3rem 0 2rem;
    color: var(--text-dark);
    text-align: center;
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.experience-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.experience-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.experience-period {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    min-width: 140px;
    flex-shrink: 0;
    padding-top: 0.25rem;
}

.experience-content {
    flex: 1;
}

.experience-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.experience-content p {
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.experience-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.experience-list li {
    color: var(--text-light);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.experience-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.education-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--primary-color);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.education-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.education-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.education-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.education-list li {
    color: var(--text-light);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
}

.education-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* References Timeline */
.references-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.reference-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reference-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.reference-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.reference-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

.reference-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reference-content p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.7;
}

.reference-content p strong {
    color: var(--text-dark);
    font-weight: 600;
}

.reference-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reference-list li {
    color: var(--text-light);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.reference-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .about-wrapper {
        flex-direction: column;
    }

    .services-grid-two {
        grid-template-columns: 1fr;
    }

    .experience-table,
    .education-table,
    .references-table,
    .impressum-table {
        display: block;
        overflow-x: auto;
    }

    .experience-table thead,
    .education-table thead,
    .references-table thead {
        display: none;
    }

    .experience-table tbody,
    .education-table tbody,
    .references-table tbody {
        display: block;
    }

    .experience-table tr,
    .education-table tr,
    .references-table tr,
    .impressum-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1rem;
    }

    .experience-table td,
    .education-table td,
    .references-table td,
    .impressum-table td {
        display: block;
        padding: 0.5rem 0;
        border-bottom: none;
    }

    .experience-table td:first-child,
    .education-table td:first-child,
    .references-table th[scope="row"],
    .references-table td:first-child,
    .impressum-table td:first-child {
        font-weight: 700;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    .section-heading {
        font-size: 2rem;
        margin: 2rem 0 1.5rem;
    }

    .experience-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .experience-period {
        min-width: auto;
        padding-top: 0;
    }

    .experience-content h3 {
        font-size: 1.25rem;
    }

    .education-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .education-card {
        padding: 1.5rem;
    }

    .education-card h3 {
        font-size: 1.25rem;
    }

    .references-timeline {
        gap: 1rem;
    }

    .reference-card {
        padding: 1.5rem;
    }

    .reference-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Posts Section */
.posts-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.archive-item.post-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.archive-item.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.item-image.post-media {
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
}

.item-image.post-media img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.archive-item.post-card:hover .item-image.post-media img {
    transform: scale(1.05);
}

.formatter {
    padding: 2rem;
}

.real-content.hentry {
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    flex-wrap: wrap;
    gap: 0.25rem;
}

.post-meta time {
    color: var(--text-light);
}

.separator {
    color: var(--text-light);
    margin: 0 0.25rem;
}

.post-meta-categories a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.post-meta-categories a:hover {
    text-decoration: underline;
}

.post-title.entry-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.post-title.entry-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title.entry-title a:hover {
    color: var(--primary-color);
}

.entry-summary {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.entry-summary p {
    margin-bottom: 1rem;
}

.more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.more-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.clear {
    clear: both;
}

.under_content_tags {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.under_content_tags a {
    color: var(--text-light);
    text-decoration: none;
    margin-right: 0.5rem;
    transition: color 0.3s ease;
}

.under_content_tags a:hover {
    color: var(--primary-color);
}

.post-thumbnail {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .separator {
        display: none;
    }
    
    .formatter {
        padding: 1.5rem;
    }
}

