/* Hero Section */
.hero {
    background: url('/static/images/seo-groningen-stad.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    animation: fadeIn 1.5s ease-in-out;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.hero-content .cta-button {
    background-color: #ff6600;
    color: #fff;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.hero-content .cta-button:hover {
    background-color: #cc5200;
}

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

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

/* When visible, apply the animation */
.grid-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.grid-item {
        opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: slideUp 1s ease-in-out forwards;
}

.grid-item:nth-child(1) {
    animation-delay: 0.2s;
}

.grid-item:nth-child(2) {
    animation-delay: 0.4s;
}

.grid-item:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.grid-item h3 {
    font-size: 1.5rem;
    color: #00509E;
    margin-bottom: 10px;
}

.grid-item p {
    font-size: 1rem;
    color: #444;
}

/* Call-to-Action Section */
.cta-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.cta-section h2 {
    font-size: 2rem;
    color: #003366;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.cta-section .cta-button {
    background-color: #00509E;
    color: #fff;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-section .cta-button:hover {
    background-color: #003366;
}

.cta-button {
    background-color: #00509E;
    color: #fff;
     display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
        font-size: 16px;
    text-align: center;
    white-space: nowrap; /* Prevents text wrapping */
    overflow: hidden;
    text-overflow: ellipsis; /* Adds "..." if the text overflows */
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #003366;
    transform: scale(1.1);
}

.cta-button.secondary {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    margin-left: 10px;
}
.cta-button.secondary:hover {
    background-color: #e0e0e0;
    color: #000;
}

@media (max-width: 768px) {
    .cta-button {
        font-size: 14px; /* Adjust font size for smaller screens */
        padding: 8px 16px; /* Adjust padding for smaller screens */
        width: 40%; /* Make the button take full width */
        margin-bottom: 10px; /* Add spacing between buttons */
    }

    .cta-button.secondary {
        margin-left: 0; /* Remove left margin for stacked layout */
    }
}