  .rtw-header {
            background: linear-gradient(135deg, #DD3333, #000);
            padding: 30px;
            border-radius: 25px;
            margin-bottom: 20px;
            text-align: left;
        }

        .rtw-header h1 {
            font-size: 28px !important;
            font-weight: bold;
            color: white !important;
            line-height: 1.2;
        }

        .rtw-header p {
            font-size: 14px !important;
            color: white !important;
            margin-top: -5px;
        }

        .rtw-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }
        
        .rtw-grid7 {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 15px;
    border: 1px solid #eee;
    margin: 40px 0;
}

        .rtw-grid-row-2 {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-top: 20px;
        }

        .rtw-card {
            background: white;
            padding: 20px;
            border-radius: 25px;
            color: black;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        /* Instructor Card */
        .rtw-instructor {
            text-align: left;
            padding: 20px;
         
            align-items: flex-start !important;
        }

        .rtw-instructor-title {
            font-size: 1rem;
            color: #333;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .rtw-instructor img {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            margin-bottom: 10px;
            object-fit: cover;
        }

        .rtw-instructor-name {
            background: #DD3333;
            color: white;
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 14px;
            display: inline-block;
            margin-top: 5px;
        }

        /* Certificate Card */
        .rtw-certificate {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 100%;
            text-align: center;
            padding: 15px;
        }

        .rtw-certificate img {
            width: 120px;
            height: auto;
            border-radius: 15px;
        }

        .rtw-detail h3, .rtw-material h3 {
    font-size: 1rem !important;
    color: #333 !important;
    font-weight: bold;
    margin-bottom: 10px;
        }

        .rtw-detail p {
            color: #DD3333 !important;
            font-size: 1.8rem !important;
            font-weight: bold;
            line-height: 1.2 !important;
            text-align: center;
        }

        .rtw-material button, .rtw-signup-button {
            background: #DD3333 !important;
            color: white !important;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 1rem !important;
            cursor: pointer;
            transition: background 0.3s;
        }

        .rtw-material button:hover, .rtw-signup-button:hover {
            background: #d63b3b !important;
        }

        .rtw-signup-button {
            margin-top: 20px;
            display: inline-block;
            font-weight: bold;
            font-size: 1.1rem;
        }

        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .rtw-header {
                padding: 20px;
            }


            .rtw-grid, .rtw-grid-row-2 {
                grid-template-columns: 1fr;
            }

            .rtw-card {
                padding: 15px;
            }

            .rtw-certificate {
                max-width: 100%;
            }
        }
        
        
        
 /* Styl dla popupów */
/* Styl dla popupów */
.rtw-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Przyciemnione tło */
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.rtw-popup[aria-hidden="false"] {
    display: flex;
}

.rtw-popup-content {
    background: #fff;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 60vh; /* Ograniczenie wysokości do 90% ekranu */
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    font-size: 1rem;
    text-align: left;
    overflow-y: auto; /* Włączenie przewijania w pionie */
}

.rtw-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.rtw-popup-header h2 {
    font-size: 1.5rem;
    margin: 0;
    color: #333;
}

.rtw-popup-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.rtw-popup-body p {
    margin-bottom: 20px;
    line-height: 1.5;
    color: #555;
}

.rtw-popup-body ul {
    padding: 0;
    list-style: none;
    margin-bottom: 20px;
}

.rtw-popup-body ul li {
    margin-bottom: 10px;
    color: #555;
}

.rtw-popup-footer {
    margin-top: 20px;
    text-align: right;
}

.rtw-button {
    display: inline-block;
    width: 100%;
    margin: 20px 0;
    padding: 10px 20px;
    background: #DD3333 !important;
    color: #fff !important;
    text-decoration: none;
    border-radius: 15px;
    font-size: 1rem;
    transition: background 0.3s;
    text-align: center;
    font-weight: bold;
}

.rtw-button:hover {
    background: #000;
}

/* Styl dla formularza */
.rtw-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.rtw-form label {
    font-weight: bold;
    color: #333;
}

.rtw-form input,
.rtw-form button {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
}

.rtw-form input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.5);
}

.rtw-form button {
    background: #DD3333 !important;
    color: #fff !important;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.rtw-form button:hover {
    background: black !important;
}

.rtw-instructor-image {
    width: 80px; /* Szerokość obrazu */
    height: 80px; /* Wysokość obrazu */
    border-radius: 50%; /* Tworzy efekt koła */
    object-fit: cover; /* Zapewnia dopasowanie obrazu */
    display: block; /* Centrowanie w pionie i poziomie (opcjonalne) */
}



.rtw-accordion {
    margin: 20px 0;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.accordion-header {
    background-color: #f9f9f9;
    padding: 10px 15px;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    outline: none;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: #eaeaea;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 15px;
    background-color: #fff;
    font-size: 0.9rem;
    line-height: 1.5;
}

.accordion-content.open {
    max-height: 1000px; /* Wystarczająca wartość na tekst */
    padding: 10px 15px;
}

.accordion-content ul {
    margin: 10px 0;
    padding-left: 20px;
    list-style: disc;
}

.accordion-content ul li {
    margin-bottom: 5px;
}

.rtw-faded {
    opacity: 0.6;
    filter: grayscale(70%);
}

.rtw-past-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
}

.rtw-past-workshops {
    margin-top: 30px;
}

/* Responsywność dla telefonów i tabletów */
@media (max-width: 1024px) {
    .rtw-header {
        padding: 15px !important;
        border-radius: 15px;
    }

    .rtw-header h1 {
        font-size: 28px !important;
    }

    .rtw-header p {
        font-size: 14px !important;
    }

    .rtw-grid, 
    .rtw-grid-row-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .rtw-card {
        padding: 15px !important;
        border-radius: 20px;
    }

    .rtw-instructor img {
        width: 120px;
        height: 120px;
    }

    .rtw-instructor-name {
        font-size: 14px !important;
        padding: 8px 15px;
    }

    .rtw-detail p {
        font-size: 14px !important;
    }

    .rtw-material button, 
    .rtw-signup-button {
        font-size: 14px !important;
        padding: 8px 15px;
    }

    .rtw-certificate img {
        width: 100px;
    }
}

/* Dodatkowe poprawki dla małych ekranów */
@media (max-width: 480px) {
    .rtw-header {
        padding: 10px;
    }

    .rtw-header h1 {
        font-size: 18px !important;
    }

    .rtw-header p {
        font-size: 14px !important;
    }

    .rtw-card {
        padding: 10px;
    }
}





/* Włączenie płynnego scrollowania w całej witrynie */
html {
  scroll-behavior: smooth;
}

/* Kontener na kafelki (flex) */
.rtw-mini-tiles-container {
  display: flex;
  flex-wrap: wrap;        /* żeby się zawijały w kolejne wiersze */
  gap: 20px;
  margin: 30px 0;
  justify-content: center; /* wyśrodkowanie kafelków */
}

/* Pojedynczy kafelek */
.rtw-mini-tile {
    background: #DD3333;
    border-radius: 15px;
    padding: 8px 16px;
    min-width: 180px;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
}

/* Link w kafelku – tekst biały, brak podkreślenia */
.rtw-mini-tile a {
  text-decoration: none;
  color: #fff;
  display: block;
}

/* Efekt hover */
.rtw-mini-tile:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

/* Tytuł w kafelku */
.rtw-tile-title {
  display: block;
  font-size: 14px;
  color: white;
  font-weight: bold;
  margin-bottom: 5px;
}

/* Data w kafelku */
.rtw-tile-date {
  display: block;
  font-size: 12px;
  color: white; /* lekko jaśniejszy odcień */
}

/* Responsywne dopasowanie dla węższych ekranów */
@media (max-width: 768px) {
  .rtw-mini-tile {
    min-width: 140px;
    padding: 10px 15px;
  }
  .rtw-tile-title {
    font-size: 1.1rem;
  }
  .rtw-tile-date {
    font-size: 0.9rem;
  }
}
