/* Global Styles */
:root {
    --primary-color: #0056b3;
    /* Medical Blue - 30% */
    --secondary-color: #17a2b8;
    /* Teal - 10% */
    --bg-color: #ffffff;
    /* White - 60% */
    --bg-light: #f8f9fa;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e9ecef;
    --font-main: 'Inter', sans-serif;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #004494;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: #138496;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.py-5 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

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

/* Header */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 86, 179, 0.6)), url('../images/algemeen/hero.png') no-repeat center center/cover;
    color: white;
    padding: 8rem 0;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 4rem 0 2rem;
}

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

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }

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

    .mobile-menu-btn {
        display: block;
    }

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

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 1001;
    text-decoration: none;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 10px;
}

/* Logo Styles */
.logo span {
    color: var(--secondary-color);
    font-size: 2rem;
}

/* Footer Links */
.footer-links a[href^="mailto:"],
.footer-links a[href^="tel:"] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Utility Classes for Images */
.img-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.avatar-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
}

/* Blog Link */
.blog-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.blog-link:hover {
    text-decoration: underline;
}

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

/* Blog Date Styling */
.blog-date {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Hero Buttons Container */
.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Role list styling */
[role="list"] {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* SVG icons in footer links */
.footer-links svg {
    vertical-align: middle;
    flex-shrink: 0;
}

/* Privacy Policy specific styles */
.content-block {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.content-block:last-child {
    border-bottom: none;
}

.content-block h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content-block h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem 0;
}

.styled-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.styled-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.styled-list li:before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.text-muted {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-info {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Breadcrumb styles */
.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    color: var(--text-light);
    font-weight: 500;
}

.breadcrumb [aria-hidden="true"] {
    color: var(--text-light);
}

/* Print styles for legal documents */
@media print {
    .content-block {
        page-break-inside: avoid;
    }

    header,
    footer,
    .breadcrumb {
        display: none;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* Over Ons specific styles */
.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* Story Section */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.story-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Team Cards */
.team-card {
    text-align: center;
}

.team-role {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
}

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

.value-item {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.value-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.value-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 480px) {
    .story-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* Ervaringen/Testimonials specific styles */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.rating {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.star {
    display: inline-block;
}

.star.half {
    position: relative;
    color: #ccc;
}

.star.half:before {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: var(--secondary-color);
}

.testimonial-text {
    margin: 0 0 1.5rem 0;
    font-style: italic;
    line-height: 1.6;
    flex-grow: 1;
}

.testimonial-text p {
    margin: 0;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-info span {
    font-size: 0.9rem;
}

.company {
    color: var(--secondary-color);
    font-weight: 500;
}

.testimonial-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Statistics Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 180px;
}

.testimonials-intro {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 1.5rem;
    }
}

/* Contact Page specific styles */
.contact-intro {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* Contact Methods */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-link {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-address {
    font-style: normal;
    color: var(--text-color);
    line-height: 1.6;
}

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Contact Info */
.contact-details {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
}

.detail-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-item h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.opening-hours {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.opening-hours li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.day {
    font-weight: 500;
}

.hours {
    color: var(--text-light);
}

.note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.business-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.business-info li {
    margin-bottom: 0.5rem;
}

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

.social-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #004494;
}

/* Contact Form */
.contact-form-wrapper {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.checkbox-label a:hover {
    text-decoration: none;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    position: relative;
}

.btn-text {
    display: block;
}

.btn-loader {
    display: none;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-input:invalid:not(:focus):not(:placeholder-shown),
.form-select:invalid:not(:focus),
.form-textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #dc3545;
}

.success-message {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #d4edda;
    border-radius: var(--radius);
    color: #155724;
}

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

.success-message h3 {
    color: #155724;
    margin-bottom: 1rem;
}

/* Map Section */
.map-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-address {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.map-address h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.map-address p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .contact-methods {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Resources Page specific styles */
.resources-intro {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.resource-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.resource-icon {
    margin-bottom: 1.5rem;
    text-align: center;
}

.resource-icon svg {
    display: inline-block;
}

.resource-content {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.resource-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(23, 162, 184, 0.1);
    color: var(--secondary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.resource-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.resource-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.file-size {
    color: var(--text-light);
    font-weight: 500;
}

.download-count {
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.resource-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

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

.category-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
}

.category-card:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.category-count {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Newsletter Form */
.newsletter-cta h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.newsletter-cta p {
    color: var(--text-light);
    line-height: 1.6;
}

.newsletter-form input {
    font-family: var(--font-main);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

/* Popular Badge */
.popular-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #ff6b6b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

/* New Badge */
.new-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .resources-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-form .form-group {
        flex-direction: column;
    }

    .newsletter-form .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .resource-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Blog Page specific styles */
.blog-intro {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* Blog Search */
.blog-search {
    margin-bottom: 2rem;
}

.search-form {
    width: 100%;
}

.search-wrapper {
    position: relative;
    display: flex;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

.search-btn {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-light);
}

.search-btn svg {
    display: block;
}

/* Blog Categories */
.blog-categories {
    margin-bottom: 3rem;
    overflow-x: auto;
}

.categories-list {
    display: flex;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-wrap: nowrap;
}

.category-link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.category-link:hover,
.category-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Blog Container */
.blog-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 1rem;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.blog-read-time,
.blog-author {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-card-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--secondary-color);
}

.blog-excerpt {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.6;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.blog-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.blog-comments,
.blog-shares {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Pagination */
.blog-pagination {
    margin-top: 3rem;
}

.pagination-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-link:hover,
.pagination-link.active {
    background-color: var(--primary-color);
    color: white;
}

.pagination-link.next {
    width: auto;
    padding: 0 1rem;
    border-radius: 20px;
}

.pagination-ellipsis {
    color: var(--text-light);
    padding: 0 0.5rem;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.widget-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.sidebar-newsletter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-newsletter input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: var(--font-main);
}

.sidebar-newsletter button {
    width: 100%;
}

.small-text {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Popular Posts */
.popular-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-post-link {
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    transition: color 0.3s ease;
}

.popular-post-link:hover {
    color: var(--secondary-color);
}

.popular-post-link:last-child {
    border-bottom: none;
}

.popular-post-title {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.popular-post-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Sidebar Categories */
.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    transition: color 0.3s ease;
}

.sidebar-category-link:hover {
    color: var(--secondary-color);
}

.sidebar-category-link:last-child {
    border-bottom: none;
}

.category-count {
    background-color: var(--bg-light);
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-light);
    color: var(--text-color);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

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

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.cta-widget .widget-title,
.cta-widget p {
    color: white;
}

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

.cta-widget .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .blog-container {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .categories-list {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .blog-card-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .blog-stats {
        width: 100%;
        justify-content: space-between;
    }

    .pagination-list {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .blog-card-image {
        height: 150px;
    }

    .blog-card-content {
        padding: 1rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}