/* === Anigdha Ausbildung — Components (Courses, FAQ, Archive) === */

/* FAQ accordion marker */
details summary::-webkit-details-marker {
    display: none;
}

/* ═══════════════════════════════════════
   COURSES ARCHIVE PAGE
   ═══════════════════════════════════════ */

.course-archive-card {
    transition: transform .25s ease;
}

.course-archive-card:hover {
    transform: translateY(-4px);
}

.course-archive-card:hover .course-arrow-btn {
    background: #DD0000 !important;
}

.courses-pagination a:hover {
    background: #E8E8E8 !important;
}

/* ═══════════════════════════════════════
   CF7 COURSE SIDEBAR FORM STYLING
   ═══════════════════════════════════════ */

.course-sidebar .wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.course-sidebar .wpcf7 label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.course-sidebar .wpcf7 input[type="text"],
.course-sidebar .wpcf7 input[type="email"],
.course-sidebar .wpcf7 input[type="tel"],
.course-sidebar .wpcf7 input[type="url"],
.course-sidebar .wpcf7 input[type="number"] {
    width: 100%;
    height: 50px;
    border-radius: 5px;
    border: 1px solid #E8E8E8;
    background: #F8F9FA;
    padding: 0 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #1A1A1A;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}

.course-sidebar .wpcf7 input[type="text"]:focus,
.course-sidebar .wpcf7 input[type="email"]:focus,
.course-sidebar .wpcf7 input[type="tel"]:focus {
    border-color: #DD0000;
}

.course-sidebar .wpcf7 select {
    width: 100%;
    height: 50px;
    border-radius: 5px;
    border: 1px solid #E8E8E8;
    background: #F8F9FA;
    padding: 0 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #1A1A1A;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8A8A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
    box-sizing: border-box;
}

.course-sidebar .wpcf7 textarea {
    width: 100%;
    height: 110px;
    border-radius: 5px;
    border: 1px solid #E8E8E8;
    background: #F8F9FA;
    padding: 14px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #1A1A1A;
    outline: none;
    resize: vertical;
    transition: border-color .2s;
    box-sizing: border-box;
}

.course-sidebar .wpcf7 textarea:focus {
    border-color: #DD0000;
}

.course-sidebar .wpcf7 input[type="submit"] {
    width: 100%;
    height: 52px;
    border-radius: 6px;
    background: #DD0000;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background .2s;
    margin-top: 4px;
}

.course-sidebar .wpcf7 input[type="submit"]:hover {
    background: #1A1A1A;
}

.course-sidebar .wpcf7 .wpcf7-response-output {
    font-size: 13px;
    border-radius: 5px;
    margin: 10px 0 0 !important;
}

.course-sidebar .wpcf7 .wpcf7-not-valid-tip {
    font-size: 12px;
    color: #DD0000;
    margin-top: 4px;
}

/* ═══════════════════════════════════════
   SINGLE COURSE PAGE
   ═══════════════════════════════════════ */

/* Related course links hover */
.related-course-link:hover {
    background: #DD0000 !important;
    color: #fff !important;
}

/* Sidebar CTA email hover */
.course-sidebar a[href^="mailto"]:hover {
    border-color: #DD0000 !important;
    color: #fff !important;
}

/* Gutenberg content styling inside course article */
.course-article h1 {
    font-size: 35px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 26px;
    letter-spacing: -1.2px;
}

.course-article h2 {
    font-size: 29px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 18px;
    letter-spacing: -0.8px;
}

.course-article h3 {
    font-size: 25px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 28px 0 14px;
}

.course-article h4 {
    font-size: 21px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 22px 0 12px;
}

.course-article p {
    font-size: 16px;
    line-height: 1.8;
    color: #000000;
    margin: 0 0 18px;
}

.course-article ul,
.course-article ol {
    margin: 0 0 20px;
    padding-left: 24px;
    color: #000000;
    font-size: 16px;
    line-height: 1.8;
}

.course-article li {
    margin-bottom: 6px;
}

.course-article img {
    border-radius: 10px;
    margin: 20px 0;
}

.course-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}

.course-article table th {
    background: #1A1A1A;
    color: #fff;
    font-weight: 700;
    padding: 14px 20px;
    text-align: left;
}

.course-article table td {
    padding: 12px 20px;
    border: 1px solid #cecccc;
    color: #000000;
}

.course-article table tr:nth-child(even) td {
    background: #F8F9FA;
}

/* Content box — black variant */
.content-box-black {
    background: #1A1A1A;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 36px 40px;
    margin: 36px 0;
}

.content-box-black h2,
.content-box-black h3,
.content-box-black h4 {
    color: #fff !important;
    margin-top: 0 !important;
}

.content-box-black p,
.content-box-black li {
    color: rgba(255,255,255,.8) !important;
}

.content-box-black a {
    color: #FFCE03 !important;
}

.content-box-black strong {
    color: #fff;
}

/* Content box — red variant */
.content-box-red {
    background: #DD0000;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 12px;
    padding: 36px 40px;
    margin: 36px 0;
}

.content-box-red h2,
.content-box-red h3,
.content-box-red h4 {
    color: #fff !important;
    margin-top: 0 !important;
}

.content-box-red p,
.content-box-red li {
    color: rgba(255,255,255,.9) !important;
}

.content-box-red a {
    color: #FFCE03 !important;
}

.content-box-red strong {
    color: #fff;
}

/* Content box — yellow variant */
.content-box-yellow {
    background: #FFCE03;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 12px;
    padding: 36px 40px;
    margin: 36px 0;
}

.content-box-yellow h2,
.content-box-yellow h3,
.content-box-yellow h4 {
    color: #1A1A1A !important;
    margin-top: 0 !important;
}

.content-box-yellow p,
.content-box-yellow li {
    color: rgba(26,26,26,.85) !important;
}

.content-box-yellow a {
    color: #DD0000 !important;
}

.content-box-yellow strong {
    color: #1A1A1A;
}

@media (max-width: 768px) {
    .content-box-black, .content-box-red, .content-box-yellow { padding: 28px 22px; }
}

@media (max-width: 480px) {
    .content-box-black, .content-box-red, .content-box-yellow { padding: 22px 18px; }
}

/* ═══════════════════════════════════════
   CF7 FORMS — mid-content styling (Germany flag theme)
   ═══════════════════════════════════════ */

/* Wrapper — dark card with gold top accent */
.single-post-content .wpcf7,
.page-article .wpcf7,
.course-article .wpcf7 {
    background: #1A1A1A;
    border-radius: 12px;
    padding: 36px 32px;
    margin: 36px 0;
    border-top: 4px solid #FFCE03;
}

/* Form layout */
.single-post-content .wpcf7 form,
.page-article .wpcf7 form,
.course-article .wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Labels */
.single-post-content .wpcf7 label,
.page-article .wpcf7 label,
.course-article .wpcf7 label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    margin-bottom: 6px;
}

/* Text, email, tel, number inputs */
.single-post-content .wpcf7 input[type="text"],
.single-post-content .wpcf7 input[type="email"],
.single-post-content .wpcf7 input[type="tel"],
.single-post-content .wpcf7 input[type="url"],
.single-post-content .wpcf7 input[type="number"],
.page-article .wpcf7 input[type="text"],
.page-article .wpcf7 input[type="email"],
.page-article .wpcf7 input[type="tel"],
.page-article .wpcf7 input[type="url"],
.page-article .wpcf7 input[type="number"],
.course-article .wpcf7 input[type="text"],
.course-article .wpcf7 input[type="email"],
.course-article .wpcf7 input[type="tel"],
.course-article .wpcf7 input[type="url"],
.course-article .wpcf7 input[type="number"] {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.08);
    padding: 0 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 14.5px;
    color: #fff;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}

/* Placeholders */
.single-post-content .wpcf7 input::placeholder,
.page-article .wpcf7 input::placeholder,
.course-article .wpcf7 input::placeholder {
    color: rgba(255,255,255,.35);
}

/* Focus — gold border */
.single-post-content .wpcf7 input[type="text"]:focus,
.single-post-content .wpcf7 input[type="email"]:focus,
.single-post-content .wpcf7 input[type="tel"]:focus,
.page-article .wpcf7 input[type="text"]:focus,
.page-article .wpcf7 input[type="email"]:focus,
.page-article .wpcf7 input[type="tel"]:focus,
.course-article .wpcf7 input[type="text"]:focus,
.course-article .wpcf7 input[type="email"]:focus,
.course-article .wpcf7 input[type="tel"]:focus {
    border-color: #FFCE03;
}

/* Select */
.single-post-content .wpcf7 select,
.page-article .wpcf7 select,
.course-article .wpcf7 select {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.08);
    padding: 0 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 14.5px;
    color: #fff;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    cursor: pointer;
    box-sizing: border-box;
}

/* Textarea */
.single-post-content .wpcf7 textarea,
.page-article .wpcf7 textarea,
.course-article .wpcf7 textarea {
    width: 100%;
    height: 110px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.08);
    padding: 14px 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 14.5px;
    color: #fff;
    outline: none;
    resize: vertical;
    transition: border-color .2s;
    box-sizing: border-box;
}

.single-post-content .wpcf7 textarea::placeholder,
.page-article .wpcf7 textarea::placeholder,
.course-article .wpcf7 textarea::placeholder {
    color: rgba(255,255,255,.35);
}

.single-post-content .wpcf7 textarea:focus,
.page-article .wpcf7 textarea:focus,
.course-article .wpcf7 textarea:focus {
    border-color: #FFCE03;
}

/* Submit — red button, gold hover */
.single-post-content .wpcf7 input[type="submit"],
.page-article .wpcf7 input[type="submit"],
.course-article .wpcf7 input[type="submit"] {
    width: 100%;
    height: 52px;
    border-radius: 8px;
    background: #DD0000;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background .2s, color .2s;
    margin-top: 4px;
}

.single-post-content .wpcf7 input[type="submit"]:hover,
.page-article .wpcf7 input[type="submit"]:hover,
.course-article .wpcf7 input[type="submit"]:hover {
    background: #FFCE03;
    color: #1A1A1A;
}

/* Validation */
.single-post-content .wpcf7 .wpcf7-response-output,
.page-article .wpcf7 .wpcf7-response-output,
.course-article .wpcf7 .wpcf7-response-output {
    font-size: 13px;
    border-radius: 5px;
    margin: 10px 0 0 !important;
    color: rgba(255,255,255,.7);
}

.single-post-content .wpcf7 .wpcf7-not-valid-tip,
.page-article .wpcf7 .wpcf7-not-valid-tip,
.course-article .wpcf7 .wpcf7-not-valid-tip {
    font-size: 12px;
    color: #FFCE03;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .single-post-content .wpcf7,
    .page-article .wpcf7,
    .course-article .wpcf7 {
        padding: 28px 22px;
    }
}

@media (max-width: 480px) {
    .single-post-content .wpcf7,
    .page-article .wpcf7,
    .course-article .wpcf7 {
        padding: 22px 16px;
    }
}

/* Table scroll — prevent squeezing, scroll horizontally on narrow screens */
.page-article .wp-block-table,
.course-article .wp-block-table,
.single-post-content .wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.page-article table,
.course-article table,
.single-post-content table {
    min-width: 600px;
}

.course-article blockquote {
    background: #1A1A1A;
    color: #fff;
    padding: 28px 30px;
    border-radius: 10px;
    margin: 24px 0;
    font-size: 16px;
    line-height: 1.7;
    border-left: 4px solid #FFCE03;
}

.course-article blockquote p {
    color: rgba(255,255,255,.85);
    margin: 0;
}

.course-article hr {
    border: none;
    height: 4px;
    background: #E8E8E8;
    margin: 44px 0;
}

/* WP Block styles */
.course-article .wp-block-separator {
    border: none;
    height: 4px;
    background: #E8E8E8;
    margin: 44px 0;
}

.course-article .wp-block-columns {
    gap: 24px;
    margin: 20px 0;
}

.course-article .wp-block-image {
    margin: 20px 0;
}

.course-article .wp-block-image img {
    border-radius: 10px;
}

/* ═══════════════════════════════════════
   RESPONSIVE — Tablet (max-width: 1024px)
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .course-hero { height: auto !important; min-height: 380px !important; }
    .course-hero h1 { font-size: 30px !important; }
    .course-stat-strip { flex-wrap: wrap !important; }
    .course-stat-strip > div { flex: 1 1 50% !important; }
    .course-content-wrap { padding: 50px 24px 70px !important; }
    .course-sidebar { width: 360px !important; margin-left: 30px !important; }
    .courses-listing { padding: 40px 24px 60px !important; }
    .courses-archive-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 22px !important; }
    .course-archive-card { height: 340px !important; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — Mobile (max-width: 768px)
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    .course-hero { min-height: 340px !important; padding-bottom: 0 !important; }
    .course-hero > div:nth-child(3) { padding: 0 24px !important; }
    .course-hero h1 { font-size: 26px !important; letter-spacing: -0.8px !important; }
    .course-hero p { font-size: 15px !important; }
    .course-stat-strip { position: relative !important; flex-wrap: wrap !important; }
    .course-stat-strip > div { flex: 1 1 50% !important; padding: 14px 18px !important; }
    /* Single column on mobile — article first, sidebar below */
    .course-content-wrap { grid-template-columns: 1fr !important; padding: 30px 18px 50px !important; }
    .course-sidebar { position: static !important; order: 2 !important; }
    .course-article { order: 1 !important; }
    .course-article h1 { font-size: 26px !important; }
    .course-article h2 { font-size: 23px !important; }
    .course-article h3 { font-size: 20px !important; }
    .course-article h4 { font-size: 18px !important; }
    .course-card { flex-direction: column !important; }
    .course-card-img { width: 100% !important; flex: none !important; height: 200px !important; }
    .courses-listing { padding: 30px 18px 50px !important; }
    .courses-archive-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .course-archive-card { height: 320px !important; }
    .course-archive-label { left: 18px !important; right: 18px !important; bottom: 18px !important; height: 70px !important; padding: 0 12px 0 20px !important; }
    .course-archive-label span:first-child { font-size: 17px !important; }
    .course-archive-label .course-arrow-btn { width: 44px !important; height: 44px !important; flex: 0 0 44px !important; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — Small Mobile (max-width: 480px)
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
    .course-hero h1 { font-size: 24px !important; }
    .course-hero p { font-size: 14px !important; margin-bottom: 20px !important; }
    .course-stat-strip > div { flex: 1 1 100% !important; }
    .course-article h1 { font-size: 24px !important; }
    .course-article h2 { font-size: 21px !important; }
    .course-article h3 { font-size: 18px !important; }
    .course-article h4 { font-size: 16px !important; }
    .course-archive-card { height: 280px !important; }
    .course-archive-label { height: 62px !important; }
    .course-archive-label span:first-child { font-size: 15px !important; }
    .course-archive-label .course-arrow-btn { width: 40px !important; height: 40px !important; flex: 0 0 40px !important; border-radius: 6px !important; }
}
