/* General */
a,
a.menu-link {
    outline: none;
}

button#menu-toggle-close {
    z-index: 999;
}

/* Astra Menu */
.ast-desktop .ast-builder-menu-1 .menu-item .sub-menu .menu-link {
    padding: 15px !important;
    padding-left: 30px !important;
    border-style: none;
    font-size: 16px;
    text-transform: none;
}

.ast-desktop .submenu-with-border .sub-menu > .menu-item:last-child > .menu-link {
    border-bottom-style: none;
    padding-bottom: 30px;
}

/* Lists */
.rb-lijst a,
.opleiding-balken a {
    text-decoration: none !important;
}

/* Advanced Headers */
.ast-advanced-headers-title {
    position: relative;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 45pt;
    padding-left: 75px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.ast-advanced-headers-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-image: url('https://damstedelyceum.nl/wp-content/uploads/2025/10/pijl.png');
    background-size: contain;
    background-repeat: no-repeat;
}

/* Header Layout */
.site-header-above-section-right.site-header-section.ast-flex.ast-grid-right-section {
    z-index: 999;
}

.site-primary-header-wrap.ast-builder-grid-row-container.site-header-focus-item.ast-container {
    border-bottom: 2px solid black;
}

/* Specific Menu Items */
li#menu-item-38 a {
    color: #a5241e;
}

li#menu-item-38 a:hover {
    color: #143150;
}

/* Quotes */
.quote-line {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    min-height: 130px;
    flex-wrap: wrap;
}

.quote-arrow {
    width: 0;
    height: 0;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-left: 40px solid #2f6d6a;
}

.quote-content {
    position: relative;
    max-width: 70%;
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 160px auto;
    height: 175px;
    padding-top: 20px;
    margin-top: -20px;
}

.quote-text {
    font-style: italic;
    color: #2f6d6a;
    margin: -8px 0 5px 0;
    font-size: 1.2em;
    letter-spacing: 1px;
    margin-bottom: 4px !important;
}

.quote-name {
    color: #76c4c4;
    font-style: italic;
    font-size: 1.2em;
    margin: 0;
    letter-spacing: 1px;
    padding-left: 3%;
}

.quote-text,
.quote-name {
    position: relative;
    z-index: 1;
}

.quote-right .quote-content {
    background-position: right 20% top;
}

.quote-left .quote-content {
    background-position: left 20% top;
}

/* Grid Layout */
.slimme-lesmethode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 40px 0;
    align-items: stretch;
}

.slimme-lesmethode-item {
    display: flex;
    flex-direction: column;
    font-family: inherit;
    height: 100%;
    box-sizing: border-box;
}

.slimme-lesmethode-title {
    color: #b6401d;
    text-transform: uppercase;
    font-size: 18pt;
    font-weight: 700;
    margin: 0 0 12px 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
    line-height: 1.3;
    min-height: 70px;
}

.slimme-lesmethode-title::before {
    content: "";
    color: #b6401d;
    font-size: 26px;
    transform: rotate(90deg);
    display: inline-block;
    margin-top: 4px;
}

.slimme-lesmethode-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.slimme-lesmethode-content {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
    margin-top: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lees-meer {
    color: #b6401d;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    align-items: center;
    transition: all 0.2s ease;
}

.lees-meer span.arrow {
    letter-spacing: -5px;
    font-size: 13pt;
    font-family: arial;
}

.lees-meer:hover {
    transform: translateX(3px);
}

/* News Slider */
.laatste-nieuws-wrapper {
    position: relative;
    width: 100%;
    padding-left: 0;
}

.laatste-nieuws-slider {
    overflow: hidden;
    padding-bottom: 50px;
}

.nieuws-item {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 340px;
    margin-right: 30px;
    transition: transform 0.3s ease;
}

.nieuws-item:hover {
    transform: translateY(-4px);
}

.nieuws-image {
    height: 200px;
    overflow: hidden;
}

.nieuws-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nieuws-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #003a40;
    padding: 15px;
    padding-bottom: 0px;
    margin: 12px 15px 8px 15px;
    line-height: 1.3;
}

.nieuws-title a {
    color: inherit;
    text-decoration: none !important;
}

.nieuws-title a:hover {
    text-decoration: underline;
}

.nieuws-excerpt {
    color: #222;
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 12px;
    padding-bottom: 35px;
    margin: 0 15px 15px 15px;
    flex-grow: 1;
}

.entry-content a,
.ast-comment-content a:not(.ast-comment-edit-reply-wrap a) {
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* Pagination */
.triangle-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin-top: 20px;
}

.swiper-pagination-bullet {
    background: none !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    margin: 0 !important;
    border: none !important;
}

.vc_separator.vc_sep_border_width_3 .vc_sep_holder .vc_sep_line {
    border-top-width: 2px !important;
}

.triangle-bullet {
    font-size: 35px;
    line-height: 1;
    color: #356f6b;
    transform: rotate(90deg);
    display: inline-block;
    cursor: pointer;
    transition: color 0.3s ease;
    opacity: 1 !important;
}

.triangle-bullet.swiper-pagination-bullet-active {
    color: #ffffff !important;
    opacity: 1 !important;
}

.triangle-bullet:hover {
    color: #ffffff;
}

:root {
    --swiper-pagination-bullet-inactive-opacity: 1 !important;
    --swiper-pagination-bullet-opacity: 1 !important;
}

/* Media Queries */
@media (max-width: 1024px) {
    .nieuws-item {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .quote-content {
        height: auto !important;
    }

    span.triangle-bullet.swiper-pagination-bullet {
        font-size: 30px;
    }

    h1.ast-advanced-headers-title {
        font-size: 18pt;
        text-align: left;
        padding-left: 50px;
    }

    .ast-advanced-headers-title::before {
        width: 30px;
        height: 30px;
    }

    .nieuws-item {
        width: 80%;
        margin-right: 20px;
    }

    .triangle-pagination {
        justify-content: center;
    }
}