/*
Theme Name: K6 Tegen Kanker Custom
Theme URI:
Author: K6 Tegen Kanker
Description: Custom WordPress theme for K6 Tegen Kanker.
Version: 0.3.0
*/

/* =========================================================
   RESET / BASIC
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #111827;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.k6-container {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    width: 100%;
    background: #ffffff;
    border-top: 2px solid #111827;
    border-bottom: 1px solid #e5e7eb;
}

.site-header .k6-container {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-branding a {
    color: #111827;
    text-decoration: none;
}

.site-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.site-description {
    display: none;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation li {
    margin: 0;
    padding: 0;
}

.main-navigation a {
    position: relative;
    display: block;
    padding: 28px 0;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.main-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    height: 2px;
    background: #168bd1;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: #168bd1;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
    transform: scaleX(1);
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 28px;
    cursor: pointer;
}


/* =========================================================
   HERO
   ========================================================= */

.k6-hero {
    padding: 100px 20px;
    background: #1769aa;
    color: #ffffff;
    text-align: center;
}

.k6-hero h1 {
    margin: 0 0 15px;
    color: #ffffff;
    font-size: 52px;
    line-height: 1.15;
}

.k6-hero p {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
}


/* =========================================================
   EVENTS SECTION
   ========================================================= */

.k6-events-section {
    padding: 90px 20px;
    background: #f5f7f9;
}

.k6-section-heading {
    margin-bottom: 45px;
    text-align: center;
}

.k6-section-label {
    display: block;
    margin-bottom: 10px;
    color: #1769aa;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.k6-section-heading h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 38px;
    line-height: 1.2;
}

.k6-section-heading p {
    margin: 0;
    color: #6b7280;
    font-size: 17px;
}


/* =========================================================
   EVENT GRID
   ========================================================= */

.k6-events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}


/* =========================================================
   EVENT CARD
   ========================================================= */

.k6-event-card {
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.k6-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   EVENT IMAGE
   ========================================================= */

.k6-event-image {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #dfe6ec;
}

.k6-event-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.k6-event-card:hover .k6-event-image img {
    transform: scale(1.04);
}

.k6-event-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #1769aa;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
}


/* =========================================================
   EVENT CONTENT
   ========================================================= */

.k6-event-content {
    padding: 25px;
}

.k6-event-content h3 {
    margin: 0 0 20px;
    color: #111827;
    font-size: 23px;
    line-height: 1.3;
}

.k6-event-content h3 a {
    color: #111827;
    text-decoration: none;
}

.k6-event-content h3 a:hover {
    color: #1769aa;
}


/* =========================================================
   EVENT META
   ========================================================= */

.k6-event-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.k6-event-meta-item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #5f6b76;
    font-size: 15px;
}

.k6-event-icon {
    width: 20px;
    flex-shrink: 0;
}


/* =========================================================
   EVENT LINK
   ========================================================= */

.k6-event-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1769aa;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.k6-event-link:hover {
    color: #0d4f80;
}

.k6-event-link span {
    transition: transform 0.2s ease;
}

.k6-event-link:hover span {
    transform: translateX(4px);
}


/* =========================================================
   ALL EVENTS BUTTON
   ========================================================= */

.k6-events-button-wrapper {
    margin-top: 45px;
    text-align: center;
}

.k6-button {
    display: inline-block;
    padding: 13px 27px;
    border: 2px solid #1769aa;
    border-radius: 3px;
    background: #1769aa;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.k6-button:hover {
    background: #ffffff;
    color: #1769aa;
}


/* =========================================================
   NO EVENTS
   ========================================================= */

.k6-no-events {
    padding: 40px;
    background: #ffffff;
    color: #6b7280;
    text-align: center;
}


/* =========================================================
   GENERAL WORDPRESS CONTENT
   ========================================================= */

.site-main {
    width: 100%;
}

.entry-content {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 20px;
}

.entry-title {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 20px 20px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding: 45px 20px;
    background: #111827;
    color: #ffffff;
}

.site-footer .k6-container {
    text-align: center;
}

.site-footer p {
    margin: 0;
    color: #d1d5db;
    font-size: 14px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .site-header .k6-container {
        min-height: 72px;
    }

    .main-navigation ul {
        gap: 20px;
    }

    .main-navigation a {
        font-size: 14px;
    }

    .k6-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .k6-hero h1 {
        font-size: 44px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .site-header .k6-container {
        min-height: 70px;
    }

    .site-title {
        font-size: 23px;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        width: 100%;
    }

    .main-navigation.is-open {
        display: block;
    }

    .main-navigation ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 0 20px;
    }

    .main-navigation a {
        padding: 12px 0;
    }

    .main-navigation a::after {
        display: none;
    }

    .k6-events-section {
        padding: 60px 20px;
    }

    .k6-section-heading {
        margin-bottom: 35px;
    }

    .k6-section-heading h2 {
        font-size: 30px;
    }

    .k6-events-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .k6-event-image {
        height: 210px;
    }

    .k6-hero {
        padding: 70px 20px;
    }

    .k6-hero h1 {
        font-size: 38px;
    }

    .k6-hero p {
        font-size: 18px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .k6-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .k6-events-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .k6-event-content {
        padding: 20px;
    }

}

/* =========================================================
   K6 HEADER - RECOVERY / MAIN HEADER
   ========================================================= */

header,
.site-header,
.k6-header {
    width: 100%;
    background: #ffffff;
    border-top: 2px solid #111827;
    border-bottom: 1px solid #e5e7eb;
}

header > div,
.site-header > div,
.k6-header > div {
    width: 100%;
    max-width: 1180px;
    min-height: 82px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* Logo / site name */

header .site-title,
header .site-branding,
header .k6-logo,
.site-header .site-title,
.site-header .site-branding,
.k6-header .site-title,
.k6-header .site-branding {
    margin: 0;
    padding: 0;
}

header .site-title a,
header .site-branding a,
header .k6-logo a,
.site-header .site-title a,
.site-header .site-branding a,
.k6-header .site-title a,
.k6-header .site-branding a {
    color: #111827;
    text-decoration: none;
    font-size: 28px;
    font-weight: 700;
}


/* Navigation */

header nav ul,
.site-header nav ul,
.k6-header nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav li,
.site-header nav li,
.k6-header nav li {
    margin: 0;
    padding: 0;
}

header nav a,
.site-header nav a,
.k6-header nav a {
    position: relative;
    display: block;
    padding: 28px 0;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

header nav a:hover,
.site-header nav a:hover,
.k6-header nav a:hover {
    color: #168bd1;
}


/* Active menu */

header nav .current-menu-item a,
.site-header nav .current-menu-item a,
.k6-header nav .current-menu-item a {
    color: #168bd1;
}


/* Active / hover underline */

header nav a::after,
.site-header nav a::after,
.k6-header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    height: 2px;
    background: #168bd1;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

header nav a:hover::after,
header nav .current-menu-item a::after,
.site-header nav a:hover::after,
.site-header nav .current-menu-item a::after,
.k6-header nav a:hover::after,
.k6-header nav .current-menu-item a::after {
    transform: scaleX(1);
}


/* =========================================================
   HEADER TABLET
   ========================================================= */

@media (max-width: 900px) {

    header > div,
    .site-header > div,
    .k6-header > div {
        min-height: 72px;
    }

    header nav ul,
    .site-header nav ul,
    .k6-header nav ul {
        gap: 20px;
    }

}


/* =========================================================
   HEADER MOBILE
   ========================================================= */

@media (max-width: 700px) {

    header > div,
    .site-header > div,
    .k6-header > div {
        min-height: 70px;
    }

    header nav ul,
    .site-header nav ul,
    .k6-header nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

}

.k6-event-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1769aa;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.k6-arrow {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 10px;
}

.k6-arrow::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 14px;
    height: 2px;
    background: currentColor;
}

.k6-arrow::after {
    content: "";
    position: absolute;
    top: 1px;
    right: 0;
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.k6-event-link:hover .k6-arrow {
    transform: translateX(4px);
    transition: transform 0.2s ease;
}
/* =========================================================
   EVENT DETAIL PAGE
   ========================================================= */

.k6-event-detail {
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 20px 90px;
}


/* Event image */

.k6-event-detail-image {
    width: 100%;
    max-height: 500px;
    margin-bottom: 45px;
    overflow: hidden;
    border-radius: 6px;
}

.k6-event-detail-image img {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
}


/* Event information */

.k6-event-detail-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 45px;
    padding: 30px;
    background: #f5f7f9;
    border-radius: 6px;
}

.k6-detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.k6-detail-item strong {
    color: #1769aa;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.k6-detail-item span {
    color: #111827;
    font-size: 17px;
    font-weight: 600;
}

.k6-map-link {
    display: block;
    margin-top: 5px;
    color: #1769aa;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.k6-map-link:hover {
    text-decoration: underline;
}


/* External button */

.k6-event-external-link {
    margin-bottom: 45px;
}


/* Event description */

.k6-event-description {
    max-width: 850px;
    margin: 0 auto 70px;
    color: #374151;
    font-size: 17px;
    line-height: 1.8;
}

.k6-event-description p {
    margin: 0 0 20px;
}


/* =========================================================
   REGISTRATION
   ========================================================= */

.k6-registration {
    max-width: 850px;
    margin: 0 auto;
    padding: 50px;
    background: #f5f7f9;
    border-radius: 6px;
}

.k6-registration-heading {
    margin-bottom: 35px;
    text-align: center;
}

.k6-registration-heading h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 32px;
    line-height: 1.2;
}

.k6-registration-heading p {
    margin: 0;
    color: #6b7280;
}


/* Form */

.k6-registration-form {
    display: grid;
    gap: 22px;
}

.k6-form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.k6-form-field label {
    color: #111827;
    font-size: 15px;
    font-weight: 600;
}

.k6-form-field input,
.k6-form-field select {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    background: #ffffff;
    color: #111827;
    font-size: 16px;
}

.k6-form-field input:focus,
.k6-form-field select:focus {
    outline: none;
    border-color: #1769aa;
    box-shadow: 0 0 0 2px rgba(23, 105, 170, 0.12);
}

.k6-registration-form .k6-button {
    justify-self: start;
    margin-top: 5px;
    cursor: pointer;
}


/* Success */

.k6-registration-success {
    margin-bottom: 30px;
    padding: 20px 25px;
    border-left: 4px solid #1769aa;
    background: #ffffff;
}

.k6-registration-success strong {
    display: block;
    margin-bottom: 5px;
    color: #111827;
}

.k6-registration-success p {
    margin: 0;
    color: #5f6b76;
}


/* Error */

.k6-registration-error {
    margin-bottom: 30px;
    padding: 20px 25px;
    border-left: 4px solid #b91c1c;
    background: #ffffff;
    color: #991b1b;
}


/* =========================================================
   EVENT DETAIL TABLET
   ========================================================= */

@media (max-width: 900px) {

    .k6-event-detail-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .k6-event-detail-image img {
        height: 400px;
    }

}


/* =========================================================
   EVENT DETAIL MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .k6-event-detail {
        padding: 50px 20px 70px;
    }

    .k6-event-detail-image {
        margin-bottom: 30px;
    }

    .k6-event-detail-image img {
        height: 260px;
    }

    .k6-event-detail-info {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px;
        margin-bottom: 35px;
    }

    .k6-event-description {
        margin-bottom: 50px;
        font-size: 16px;
    }

    .k6-registration {
        padding: 30px 20px;
    }

    .k6-registration-heading h2 {
        font-size: 27px;
    }

}