        
        :root {
  --primary-color: #3A7BD5;
  --secondary-color: #FFF9F0;
  --accent-color: #FF7D33;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --success-color: #4CAF50;
  --warning-color: #FFC107;
}

/* Czcionka Poppins jest ładowana przez wp_enqueue_style w functions.php */


/* Reset i podstawy */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--secondary-color);
}

.container {
  width: 92%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Przyciski */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(58, 123, 213, 0.3);
  font-size: 16px;
}

.btn:hover {
  background-color: #2a65b5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 123, 213, 0.4);
}

.btn-accent {
  background-color: var(--accent-color);
  box-shadow: 0 4px 15px rgba(255, 125, 51, 0.3);
}

.btn-accent:hover {
  background-color: #e66d2a;
}

/* Nagłówek */
header {
  background-color: var(--white);
  padding: 15px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 10px rgba(58, 123, 213, 0.3);
}

.logo-text {
  font-weight: 700;
  font-size: 24px;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-links a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s;
}

.nav-links a:hover:after {
  width: 100%;
}

.auth-buttons {
  display: flex;
  gap: 15px;
}

/* Sekcja Hero */
.hero {
  padding: 100px 0;
  background: linear-gradient(135deg, #FFF9F0 0%, #ffffff 100%);
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 42px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: #555;
  margin-bottom: 30px;
}

.btn-group {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* Jak to działa? */
.how-it-works {
  padding: 80px 0;
  background-color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  position: relative;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.step {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  text-align: center;
  padding: 30px;
  background: var(--light-gray);
  border-radius: 15px;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 20px;
}

/* Ukrywanie numerów telefonów */
.dokan-store-phone,
.store-phone,
.store-info .fa-phone,
.store-info [href^="tel"] {
  display: none !important;
}

/* Ukrywanie formularza rejestracji klienta */
.wcfm_registration_form .customer_registration {
  display: none !important;
}

        
        
        
        :root {
            --primary-color: #3A7BD5;
            --secondary-color: #FFF9F0;
            --accent-color: #FF7D33;
            --text-color: #333;
            --light-gray: #f5f5f5;
            --white: #ffffff;
            --success-color: #4CAF50;
            --warning-color: #FFC107;
            --danger-color: #F44336;
            --card-shadow: 0 10px 30px rgba(0,0,0,0.08);
        }
        
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        body {
            font-family: 'Poppins', sans-serif;
            line-height: 1.6;
            color: var(--text-color);
            background-color: var(--secondary-color);
            overflow-x: hidden;
        }
        
        .moc-container {
            width: 92%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        h1, h2, h3, h4 {
            font-weight: 600;
            line-height: 1.2;
            margin-bottom: 20px;
        }
        
        p {
            margin-bottom: 15px;
            font-size: 17px;
        }
        
        .text-center {
            text-align: center;
        }
        
        .section-title {
            position: relative;
            display: inline-block;
            margin-bottom: 40px;
            color: var(--primary-color);
            font-size: 36px;
        }
        
        .section-title:after {
            content: '';
            width: 50px;
            height: 3px;
            background-color: var(--accent-color);
        }
        
        .btn {
            display: inline-block;
            padding: 12px 30px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 30px;
            font-weight: 500;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(58, 123, 213, 0.3);
            font-size: 16px;
            border: 1px solid transparent;
        }
        
        .btn:hover {
            background-color: #2a65b5;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(58, 123, 213, 0.4);
        }
        
        .btn-accent {
            background-color: var(--accent-color);
            box-shadow: 0 4px 15px rgba(255, 125, 51, 0.3);
        }
        
        .btn-accent:hover {
            background-color: #e66d2a;
            box-shadow: 0 6px 20px rgba(255, 125, 51, 0.4);
        }

        .btn-small {
            padding: 8px 20px;
            font-size: 14px;
        }

        /* Nag��wek */
        header {
            background-color: var(--white);
            padding: 15px 0;
            box-shadow: 0 2px 20px rgba(0,0,0,0.08);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            transition: transform 0.3s ease;
            min-height: 110px;
        }
        
        header.hide {
            transform: translateY(-100%);
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
            z-index: 1001;
        }
        
        .logo-img {
            width: 50px;
            height: 50px;
            background-color: var(--primary-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            box-shadow: 0 4px 10px rgba(58, 123, 213, 0.3);
            overflow: hidden;
            padding: 5px;
        }
        
        .logo-text {
            font-weight: 700;
            font-size: 24px;
            color: var(--primary-color);
            letter-spacing: -0.5px;
        }
        
        .nav-links {
            display: flex;
            gap: 35px;
        }
        
        .nav-links a {
            text-decoration: none;
            color: var(--text-color);
            font-weight: 500;
            font-size: 17px;
            transition: all 0.3s;
            position: relative;
            padding: 5px 0;
        }
        
        .nav-links a:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--accent-color);
            transition: width 0.3s;
        }
        
        .nav-links a:hover {
            color: var(--primary-color);
        }
        
        .nav-links a:hover:after {
            width: 100%;
        }
        
        .auth-buttons {
            display: flex;
            gap: 15px;
            margin-left: 30px;
        }

        .user-menu {
            position: relative;
            display: flex;
            align-items: center;
            gap: 10px;
            margin-left: 30px;
            cursor: pointer;
        }

        .user-avatar {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background-color: var(--primary-color);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 18px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(58, 123, 213, 0.2);
        }

        .user-menu:hover .user-avatar {
            transform: scale(1.1);
            box-shadow: 0 6px 15px rgba(58, 123, 213, 0.3);
        }

        .user-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            background: var(--white);
            border-radius: 15px;
            box-shadow: var(--card-shadow);
            padding: 15px 0;
            min-width: 220px;
            display: none;
            z-index: 100;
            border: 1px solid rgba(0,0,0,0.05);
            margin-top: 10px;
        }

        .user-menu:hover .user-dropdown {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .user-dropdown a {
            display: block;
            padding: 12px 20px;
            color: var(--text-color);
            text-decoration: none;
            transition: all 0.3s;
            font-size: 15px;
            font-weight: 500;
        }

        .user-dropdown a:hover {
            background-color: rgba(58, 123, 213, 0.05);
            color: var(--primary-color);
            padding-left: 25px;
        }

        .user-dropdown a i {
            margin-right: 12px;
            width: 20px;
            text-align: center;
            color: var(--primary-color);
        }

        .logout-form {
            display: block;
            width: 100%;
        }

        .logout-button {
            background: none;
            border: none;
            color: var(--text-color);
            font-family: 'Poppins', sans-serif;
            font-size: 15px;
            font-weight: 500;
            padding: 12px 20px;
            text-align: left;
            width: 100%;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: all 0.3s;
        }

        .logout-button:hover {
            background-color: rgba(58, 123, 213, 0.05);
            color: var(--primary-color);
            padding-left: 25px;
        }

        .logout-button i {
            color: var(--primary-color);
            width: 20px;
            text-align: center;
        }

        /* Menu mobilne - hamburger */
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 10px;
            z-index: 1001;
            position: relative;
        }

        .mobile-menu-btn span {
            display: block;
            width: 25px;
            height: 3px;
            margin: 5px 0;
            background-color: var(--primary-color);
            transition: all 0.3s ease;
        }

        .mobile-menu-btn.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .mobile-menu-btn.active span:nth-child(2) {
            opacity: 0;
        }

        .mobile-menu-btn.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -6px);
        }

        .mobile-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0,0,0,0.5);
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .mobile-menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .mobile-nav {
            position: fixed;
            top: 0;
            right: -300px;
            width: 300px;
            height: 100vh;
            background-color: var(--white);
            box-shadow: -2px 0 10px rgba(0,0,0,0.1);
            z-index: 1000;
            transition: right 0.3s ease;
            padding: 80px 30px 30px;
            overflow-y: auto;
        }

        .mobile-nav.active {
            right: 0;
        }

        .mobile-nav-links {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .mobile-nav-links a {
            text-decoration: none;
            color: var(--text-color);
            font-weight: 500;
            font-size: 18px;
            padding: 10px 0;
            border-bottom: 1px solid rgba(0,0,0,0.05);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .mobile-nav-links a i {
            color: var(--primary-color);
            width: 25px;
            text-align: center;
        }

        .mobile-auth-buttons {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-top: 30px;
        }

        .mobile-user-menu {
            margin-top: 30px;
            border-top: 1px solid rgba(0,0,0,0.05);
            padding-top: 20px;
        }

        .mobile-user-info {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }

        .mobile-user-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: var(--primary-color);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 20px;
        }

        .mobile-user-name {
            font-weight: 600;
            color: var(--primary-color);
        }

        .mobile-user-dropdown {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .mobile-user-dropdown a {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 12px 0;
            color: var(--text-color);
            text-decoration: none;
            font-size: 16px;
            border-bottom: 1px solid rgba(0,0,0,0.05);
        }

        .mobile-user-dropdown a i {
            color: var(--primary-color);
            width: 25px;
            text-align: center;
        }

        .mobile-logout-button {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 12px 0;
            color: var(--text-color);
            text-decoration: none;
            font-size: 16px;
            background: none;
            border: none;
            font-family: 'Poppins', sans-serif;
            cursor: pointer;
            text-align: left;
        }

        .mobile-logout-button i {
            color: var(--primary-color);
            width: 25px;
            text-align: center;
        }
        
        /* Sekcja Hero */
        .hero {
            padding: 140px 0 100px;
            background: linear-gradient(135deg, rgba(255,249,240,1) 0%, rgba(255,255,255,1) 100%);
            position: relative;
            overflow: hidden;
            margin-top: 80px;
        }
        
        .hero:before {
            content: '';
            position: absolute;
            top: -50px;
            right: -50px;
            width: 300px;
            height: 300px;
            background-color: rgba(58, 123, 213, 0.1);
            border-radius: 50%;
            z-index: 0;
        }
        
        .hero:after {
            content: '';
            position: absolute;
            bottom: -100px;
            left: -100px;
            width: 400px;
            height: 400px;
            background-color: rgba(58, 123, 213, 0.05);
            border-radius: 50%;
            z-index: 0;
        }
        
        .hero-content {
            position: relative;
            z-index: 1;
            max-width: 900px;
            margin: 0 auto;
            text-align: center;
        }
        
        .hero h1 {
            font-size: 52px;
            color: var(--primary-color);
            margin-bottom: 25px;
            line-height: 1.2;
        }
        
        .hero p {
            font-size: 19px;
            color: #555;
            margin-bottom: 35px;
            line-height: 1.7;
        }
        
        .btn-group {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-bottom: 40px;
        }
        
        /* Sekcja Jak to dzia�a? */
        .how-it-works {
            padding: 120px 0;
            background-color: var(--white);
            position: relative;
        }
        
        .steps {
            display: flex;
            justify-content: center;
            gap: 40px;
            flex-wrap: wrap;
            margin-top: 60px;
        }

        .step {
            flex: 1;
            min-width: 250px;
            max-width: 300px;
            text-align: center;
            position: relative;
        }

        .step-number {
            width: 60px;
            height: 60px;
            background-color: var(--primary-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            font-weight: 700;
            margin: 0 auto 25px;
            position: relative;
            z-index: 1;
        }

        .step:not(:last-child):after {
            content: '';
            position: absolute;
            top: 30px;
            left: 50%;
            width: calc(100% + 40px);
            height: 2px;
            background-color: rgba(58, 123, 213, 0.3);
            z-index: 0;
        }

        .step h3 {
            font-size: 22px;
            margin-bottom: 15px;
            color: var(--primary-color);
        }

        .step p {
            font-size: 16px;
            color: #555;
        }
        
        /* Sekcja O Nas */
        .about {
            padding: 120px 0;
            background-color: var(--secondary-color);
        }
        
        .about-content {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .about p {
            max-width: 850px;
            margin: 0 auto 35px;
            font-size: 18px;
            text-align: center;
            line-height: 1.8;
        }
        
        .features {
            display: flex;
            justify-content: center;
            gap: 35px;
            flex-wrap: wrap;
            margin-top: 60px;
        }
        
        .feature {
            background: var(--light-gray);
            padding: 35px;
            border-radius: 15px;
            width: 320px;
            text-align: center;
            transition: all 0.3s ease;
            box-shadow: var(--card-shadow);
        }
        
        .feature:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.12);
        }
        
        .feature i {
            font-size: 45px;
            color: var(--primary-color);
            margin-bottom: 25px;
        }
        
        .feature h3 {
            font-size: 22px;
            margin-bottom: 20px;
        }
        
        .feature p {
            font-size: 16px;
            text-align: center;
            margin-bottom: 0;
        }
        
        /* Sekcja Korepetytorzy */
        .tutors-section {
            padding: 120px 0;
            background-color: var(--white);
        }
        
        .search-filters {
            background: var(--white);
            padding: 30px;
            border-radius: 15px;
            box-shadow: var(--card-shadow);
            margin-bottom: 50px;
            border: 1px solid rgba(0,0,0,0.03);
        }

        .filter-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
        }

        .filter-header h3 {
            color: var(--primary-color);
            font-size: 20px;
            margin-bottom: 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .filter-row {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .filter-group {
            flex: 1;
            min-width: 200px;
        }

        .filter-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #555;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .input-with-icon {
            position: relative;
        }

        .input-with-icon i {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #777;
        }

        .input-with-icon input {
            padding-left: 45px !important;
        }

        .select-wrapper {
            position: relative;
        }

        .select-wrapper:after {
            content: '\f078';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #777;
            pointer-events: none;
        }

        .filter-group select, 
        .filter-group input[type="text"],
        .filter-group input[type="range"] {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-family: 'Poppins', sans-serif;
            background-color: var(--light-gray);
            transition: all 0.3s;
            appearance: none;
        }

        .filter-group select:focus, 
        .filter-group input[type="text"]:focus,
        .filter-group input[type="range"]:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.2);
        }

        .filter-group input[type="range"] {
            padding: 12px 0;
            -webkit-appearance: none;
            appearance: none;
            height: 8px;
            background: var(--light-gray);
            border-radius: 5px;
        }

        .filter-group input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            background: var(--primary-color);
            cursor: pointer;
            border-radius: 50%;
        }

        .filter-group input[type="range"]::-moz-range-thumb {
            width: 20px;
            height: 20px;
            background: var(--primary-color);
            cursor: pointer;
            border-radius: 50%;
        }

        .price-value {
            display: inline-block;
            margin-top: 5px;
            font-weight: 600;
            color: var(--primary-color);
        }

        .active-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 20px;
        }

        .filter-tag {
            background-color: rgba(58, 123, 213, 0.1);
            color: var(--primary-color);
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .filter-tag i {
            cursor: pointer;
            font-size: 12px;
        }

        /* Karty korepetytor�w */
        .tutors-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }

        .tutor-card {
            background: var(--white);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            transition: all 0.3s ease;
            border: 1px solid rgba(0,0,0,0.03);
            position: relative;
        }

        .tutor-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.12);
        }

        .tutor-header {
            position: relative;
            height: 120px;
            background: linear-gradient(135deg, var(--primary-color), #00D2FF);
        }

        .tutor-avatar {
            position: absolute;
            bottom: -40px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 80px;
            border-radius: 50%;
            border: 4px solid var(--white);
            background-color: var(--light-gray);
            overflow: hidden;
        }

        .tutor-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .tutor-body {
            padding: 50px 25px 25px;
            text-align: center;
        }

        .tutor-name {
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 5px;
            color: var(--primary-color);
        }

        .tutor-title {
            color: #777;
            font-size: 16px;
            margin-bottom: 15px;
        }

        .tutor-rating {
            color: var(--warning-color);
            margin-bottom: 15px;
            font-size: 16px;
        }

        .tutor-rating i {
            margin: 0 2px;
        }

        .tutor-subjects {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
            margin-bottom: 20px;
        }

        .subject-tag {
            background-color: rgba(58, 123, 213, 0.1);
            color: var(--primary-color);
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
        }

        .tutor-price {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 20px;
            color: var(--text-color);
        }

        .tutor-price span {
            font-size: 16px;
            font-weight: 400;
            color: #777;
        }

        .tutor-footer {
            padding: 15px;
            border-top: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            gap: 10px;
        }

        .tutor-actions {
            display: flex;
            gap: 10px;
        }

        .tutor-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background-color: var(--accent-color);
            color: white;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .no-results {
            grid-column: 1 / -1;
            text-align: center;
            padding: 50px;
            background-color: var(--white);
            border-radius: 15px;
            box-shadow: var(--card-shadow);
        }

        .no-results i {
            font-size: 50px;
            color: var(--primary-color);
            margin-bottom: 20px;
        }

        .no-results h3 {
            font-size: 24px;
            margin-bottom: 15px;
            color: var(--primary-color);
        }

        .pagination {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 50px;
        }

        .page-link {
            display: inline-block;
            width: 40px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            border-radius: 50%;
            background-color: var(--white);
            color: var(--text-color);
            text-decoration: none;
            transition: all 0.3s;
            cursor: pointer;
            box-shadow: var(--card-shadow);
        }

        .page-link:hover, 
        .page-link.active {
            background-color: var(--primary-color);
            color: white;
        }

        /* Sekcja Zosta� korepetytorem - UKRYTA */
        .become-tutor,
        [class*="become-tutor"],
        [id*="become-tutor"],
        section:has(.become-tutor) {
            display: none !important;
        }

        /* Sekcja Opinie */
        .testimonials {
            padding: 120px 0;
            background-color: var(--white);
        }

        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }

        .testimonial-card {
            background: var(--white);
            padding: 30px;
            border-radius: 15px;
            box-shadow: var(--card-shadow);
            border: 1px solid rgba(0,0,0,0.03);
            position: relative;
        }

        .testimonial-card:before {
            content: '\201C';
            position: absolute;
            top: 20px;
            left: 20px;
            font-size: 80px;
            color: rgba(58, 123, 213, 0.1);
            font-family: Georgia, serif;
            line-height: 1;
        }

        .testimonial-content {
            position: relative;
            z-index: 1;
            margin-bottom: 20px;
            font-style: italic;
            color: #555;
            line-height: 1.7;
        }

        .testimonial-author {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .author-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: var(--light-gray);
            overflow: hidden;
        }

        .author-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .author-info h4 {
            font-size: 18px;
            margin-bottom: 5px;
            color: var(--primary-color);
        }

        .author-info p {
            font-size: 14px;
            color: #777;
            margin-bottom: 0;
        }

        .testimonial-rating {
            color: var(--warning-color);
            margin-top: 5px;
            font-size: 14px;
        }

        /* Sekcja Kontakt */
        .contact-section {
            padding: 120px 0;
            background-color: var(--secondary-color);
        }
        
        .contact-container {
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
        }
        
        .contact-methods {
            display: flex;
            justify-content: center;
            gap: 50px;
            flex-wrap: wrap;
            margin-top: 60px;
        }
        
        .contact-method {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            width: 220px;
        }
        
        .contact-icon {
            width: 80px;
            height: 80px;
            background-color: rgba(58, 123, 213, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 25px;
            transition: all 0.3s ease;
        }
        
        .contact-icon i {
            font-size: 35px;
            color: var(--primary-color);
        }
        
        .contact-method:hover .contact-icon {
            background-color: var(--primary-color);
            transform: scale(1.1);
        }
        
        .contact-method:hover .contact-icon i {
            color: white;
        }
        
        .contact-method h3 {
            font-size: 20px;
            margin-bottom: 15px;
        }
        
        .contact-method p, .contact-method a {
            color: #666;
            text-decoration: none;
            transition: color 0.3s;
            font-size: 16px;
        }
        
        .contact-method a:hover {
            color: var(--primary-color);
        }
        
        /* Stopka */
        footer {
            background-color: var(--primary-color);
            color: white;
            padding: 60px 0 30px;
            text-align: center;
        }
        
        .footer-content {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            margin-bottom: 40px;
        }
        
        .footer-column {
            flex: 1;
            min-width: 280px;
            margin-bottom: 40px;
            padding: 0 20px;
        }
        
        .footer-column h3 {
            color: white;
            margin-bottom: 25px;
            font-size: 20px;
        }
        
        .footer-column p {
            color: rgba(255,255,255,0.8);
            font-size: 16px;
            line-height: 1.7;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 12px;
        }
        
        .footer-links a {
            color: rgba(255,255,255,0.8);
            text-decoration: none;
            transition: color 0.3s;
            font-size: 16px;
        }
        
        .footer-links a:hover {
            color: white;
        }
        
        .social-links {
            display: flex;
            justify-content: center;
            gap: 18px;
            margin-top: 20px;
        }
        
        .social-links a {
            display: inline-block;
            width: 45px;
            height: 45px;
            background-color: rgba(255,255,255,0.1);
            border-radius: 50%;
            text-align: center;
            line-height: 45px;
            color: white;
            transition: all 0.3s;
            font-size: 18px;
        }
        
        .social-links a:hover {
            background-color: rgba(255,255,255,0.2);
            transform: translateY(-3px);
        }
        
        .copyright {
            padding-top: 30px;
            border-top: 1px solid rgba(255,255,255,0.1);
            font-size: 15px;
            color: rgba(255,255,255,0.7);
        }

        /* Modal rejestracji */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0,0,0,0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .registration-modal {
            background-color: var(--white);
            border-radius: 15px;
            box-shadow: 0 20px 50px rgba(0,0,0,0.2);
            width: 90%;
            max-width: 500px;
            padding: 40px;
            transform: translateY(20px);
            transition: all 0.3s ease;
            position: relative;
        }

        .modal-overlay.active .registration-modal {
            transform: translateY(0);
        }

        .close-modal {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 24px;
            color: #777;
            cursor: pointer;
            transition: color 0.3s;
        }

        .close-modal:hover {
            color: var(--primary-color);
        }

        .modal-title {
            color: var(--primary-color);
            font-size: 28px;
            margin-bottom: 20px;
            text-align: center;
        }

        .modal-subtitle {
            text-align: center;
            margin-bottom: 30px;
            color: #555;
        }

        .registration-options {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .registration-option {
            background-color: var(--light-gray);
            border-radius: 10px;
            padding: 25px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            border: 2px solid transparent;
        }

        .registration-option:hover {
            border-color: var(--primary-color);
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }

        .registration-option i {
            font-size: 40px;
            color: var(--primary-color);
            margin-bottom: 15px;
        }

        .registration-option h3 {
            font-size: 20px;
            margin-bottom: 10px;
            color: var(--primary-color);
        }

        .registration-option p {
            font-size: 15px;
            color: #555;
            margin-bottom: 0;
        }

.mw-timeslot-grid {
    display: flex;
    gap: 8px;
    flex-direction: row;
    flex-wrap: wrap;
}
.mw-slot {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid black;
    border-radius: 0;
    background: #fff;
    cursor: pointer;
    font: inherit;
    line-height: 1;
}
.mw-slot:hover { border-color: #bbb; }
.mw-slot.is-selected {
  background: #3A7BD5;
  color: #fff;
  border-color: #3A7BD5;
}
.mw-slot.is-busy {
  background: #f2f2f2;
  color: #999;
  border-color: #e5e5e5;
  cursor: not-allowed;
}

/* Zakres dat (opcjonalnie) pod polem „Wybierz dzień” */
.mw-range-fields-wrap { margin-top: 1rem; }
.mw-range-fields-wrap .elementor-field-label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.mw-range-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.mw-range-item { flex: 1; min-width: 120px; }
.mw-range-item label { display: block; font-size: 0.9em; margin-bottom: 0.25rem; }
/* Pola dat – dopasowanie do reszty inputów formularza */
.mw-range-item input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cacdd0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}
.mw-range-item input[type="date"]:focus {
    border-color: #3A7BD5;
    outline: none;
    box-shadow: 0 0 0 2px rgba(58, 123, 213, 0.15);
}
.mw-range-weekdays { margin-top: 0.75rem; }
.mw-range-weekdays .elementor-field-label { font-size: 0.9em; font-weight: 500; }
/* Checkboxy obok siebie w jednym rzędzie */
.mw-range-weekdays-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-top: 0.35rem;
}
.mw-range-fields-wrap .mw-weekday-cb {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9em;
    cursor: pointer;
    width: auto;
    flex-shrink: 0;
}
.mw-range-fields-wrap .mw-weekday-cb input { margin: 0; }

/* Podsumowanie zakresu – mały font */
.mw-range-summary { margin-top: 0.75rem; font-size: 0.8rem; color: #555; line-height: 1.4; }
.mw-range-summary-line { margin: 0.25rem 0; }
.mw-range-summary-unavail { color: #c0392b; }
.mw-range-summary-count { font-weight: 500; }

.acf-field.acf-field-number.acf-field-68dea537e8db7 {
    display: none;
}

.offers-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.offers-filters label {
    display: flex;
    gap: 8px;
}

.elementor-1035 .elementor-element.elementor-element-8baff98 .elementor-field-group {
    display: flex;
    gap: 8px;
    align-content: flex-start;
}



    .offers-filters legend{font-weight:600}
    .price-range-wrapper{display:flex;flex-direction:column;gap:12px}
    .price-range-container{position:relative;height:40px;display:flex;align-items:center}
    .price-range-container input[type=range]{position:absolute;width:100%;height:6px;background:transparent;-webkit-appearance:none;appearance:none;pointer-events:none;z-index:2}
    .price-range-container input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:20px;background:#3A7BD5;border-radius:50%;cursor:pointer;pointer-events:all;box-shadow:0 2px 6px rgba(58,123,213,0.4);transition:all 0.2s ease;border:2px solid #fff}
    .price-range-container input[type=range]::-webkit-slider-thumb:hover{transform:scale(1.1);box-shadow:0 3px 8px rgba(58,123,213,0.5)}
    .price-range-container input[type=range]::-moz-range-thumb{width:20px;height:20px;background:#3A7BD5;border-radius:50%;cursor:pointer;pointer-events:all;box-shadow:0 2px 6px rgba(58,123,213,0.4);transition:all 0.2s ease;border:2px solid #fff;-moz-appearance:none;appearance:none}
    .price-range-container input[type=range]::-moz-range-thumb:hover{transform:scale(1.1);box-shadow:0 3px 8px rgba(58,123,213,0.5)}
    .price-range-container input[type=range]::-webkit-slider-runnable-track{height:6px;background:transparent}
    .price-range-container input[type=range]::-moz-range-track{height:6px;background:transparent}
    .price-range-track{position:absolute;height:6px;background:#3A7BD5;border-radius:3px;top:50%;transform:translateY(-50%);pointer-events:none;z-index:1;transition:all 0.1s ease}
    .price-range-container::before{content:'';position:absolute;top:50%;left:0;right:0;height:6px;background:#e0e0e0;border-radius:3px;transform:translateY(-50%);z-index:0}
    .price-output{text-align:center;font-size:14px;font-weight:500;color:#333;padding:8px 0}
    .price-output span{color:#3A7BD5;font-weight:600}
    .actions{display:flex;gap:8px}
    .offers-results.is-loading{opacity:.6;pointer-events:none}
    .offers-pagination{margin-top:16px}
    .offers-pagination a{cursor:pointer}

.offer-card {
    border: 1.5px solid #3A7BD5;
    border-radius: 12px;
    padding: 14px 16px;
    background: #fff;
    width: 32%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(58, 123, 213, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.offer-card:hover {
    box-shadow: 0 6px 20px rgba(58, 123, 213, 0.18);
    transform: translateY(-2px);
}

.offer-card .offer-title {
    font-size: 15px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.offer-card .offer-title a {
    color: #3A7BD5;
    text-decoration: none;
    font-weight: 600;
}

.offer-card .offer-title a:hover {
    text-decoration: underline;
}

.offer-tutor {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.offer-tutor-label {
    font-weight: 600;
    color: #444;
}

.offer-tutor a {
    color: #3A7BD5;
    text-decoration: none;
}

.offer-tutor a:hover {
    text-decoration: underline;
}

.offers-filters fieldset input[type="checkbox"] {
    transform: scale(1.3);
    accent-color: #ff853f;
}

.offers-filters fieldset:has(input[name="subject[]"]), .offers-filters fieldset:has(input[name="level[]"]) {
    width: 48%;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    line-height: 1;
    padding: 20px;
    margin: 0;
    height: fit-content;
    border: 1px solid #3a7bd53d;
}

.section-title {
    width: 100%;
}

.offers-filters fieldset:has(.price-range-wrapper) {
    width: 100%;
    border: 1px solid #3a7bd53d;
    padding: 20px;
}

.price-range-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-range-container {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}

.price-range-container input[type="range"] {
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    z-index: 2;
    border: 0;
    top: 25%;
}

.price-range-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #3A7BD5;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(58, 123, 213, 0.4);
    transition: all 0.2s ease;
    border: 2px solid #fff;
}

.price-range-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(58, 123, 213, 0.5);
}

.price-range-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #3A7BD5;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(58, 123, 213, 0.4);
    transition: all 0.2s ease;
    border: 2px solid #fff;
    -moz-appearance: none;
    appearance: none;
}

.price-range-container input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(58, 123, 213, 0.5);
}

.price-range-container input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
}

.price-range-container input[type="range"]::-moz-range-track {
    height: 6px;
    background: transparent;
}

.price-range-track {
    position: absolute;
    height: 6px;
    background: #3A7BD5;
    border-radius: 3px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
    transition: all 0.1s ease;
}

.price-range-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    transform: translateY(-50%);
    z-index: 0;
}

.price-output {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    padding: 8px 0;
}

.price-output span {
    color: #3A7BD5;
    font-weight: 600;
}

button#offers-apply {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.3);
    font-size: 16px;
}

button#offers-reset {
    display: inline-block;
    background-color: #f5f5f5;
    color: black;
    font-weight: 500;
    cursor: pointer;
    box-shadow: rgba(58, 123, 213, 0.3) 0px 4px 15px;
    font-size: 16px;
    padding: 12px 30px;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
}

.offer-actions .btn {
    display: inline-block;
    padding: 0;
    background-color: #3a7bd500;
    color: #1f1f1f;
    font-weight: 700;
    box-shadow: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0px;
    margin-top: 20px;
    border: 0;
}

.offer-actions .btn:hover {
    background-color: #2a65b500;
    transform: translateY(-2px);
    box-shadow: none;
}

.offer-actions .btn:after {
    content: ' ';
    width: 12px;
    height: 12px;
    display: inline-flex;
    background: url(https://moc-wiedzy.pl/wp-content/uploads/2025/10/images.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    line-height: 1;
    margin-left: 8px;
    vertical-align: middle;
}

.offers-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
}

header#main-header {
    display: none;
}

#register .elementor-widget-container {
    display: flex;
    align-items: center;
}

div#register {
    display: flex;
    justify-content: center;
    width: fit-content;
    padding: 10px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

/* Ukryj pozycję menu "Zaloguj" dla zalogowanych użytkowników */
body.logged-in .menu-item-1086,
body.wp-logged-in .menu-item-1086,
body.logged-in .menu-item[data-hidden="true"],
body.wp-logged-in .menu-item[data-hidden="true"] {
    display: none !important;
}

div#head-elementor a, div#head-elementor a:hover {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400!important;
}

div#head-elementor #menu a:hover, div#head-elementor #menu a.elementor-item-active
 {
    color: #3a7bd5;
    font-weight: 700;
    background: transparent;
}

div#head-elementor #menu a:hover:after, div#head-elementor #menu a.elementor-item-active:after {
    background-color: #3a7bd5;
}

.site-main--korepetytor {
    margin-top: 100px;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

main.site-main.site-main--korepetytor#primary {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-main--korepetytor article {
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    background: white;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.korepetytor-header {
    background-color: #ffffff00;
    box-shadow: none;
    position: relative;
}

figure.teacher-photo {
    width: 60%;
}

section.teacher-about {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: 16px 0;
    border: 1px solid #3a7bd53d;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    width: 40%;
    flex-direction: column;
}

.teacher-meta {
    width: 100%;
}

section.offer-summary {
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 20px;
}

ul.offer-summary-list {
    width: 35%;
    border: 1px solid #3a7bd53d;
    padding: 20px;
    list-style: none;
    height: fit-content;
}

.opis-lekcji {
    width: 65%;
    padding: 20px;
    list-style: none;
    background: rgb(246 246 246);
}

li.offer-summary-opis, li.offer-summary-opis p {
    font-size: 14px;
}

.booking-form .e-con-inner {
    max-width: 100%;
}

.elementor-field-group-field_467bbf3 input {
    display: none;
}

.booking-form label {
    width: 100%;
}

#zapis-korepetycje form[name="zapis-na-korepetycje"] input, #zapis-korepetycje form[name="zapis-na-korepetycje"] textarea {
    border: 1px solid black;
    font-family: 'Poppins', sans-serif;
}

#zapis-korepetycje form[name="zapis-na-korepetycje"] input::placeholder, #zapis-korepetycje form[name="zapis-na-korepetycje"] textarea::placeholder {
    color: black;
    font-family: 'Poppins', sans-serif;
}

#zapis-korepetycje label {
    font-family: 'Poppins', sans-serif;
}

#zapis-korepetycje button[type="submit"] {
    background: transparent;
    margin: 0;
    padding: 0;
}

#zapis-korepetycje button[type="submit"] span {
    width: fit-content;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}


.rezerwuje {
    display: flex;
    flex-direction: row-reverse;
    gap: 16px;
    padding: 20px;
}

section.booking-form {
    width: 60%;
}

section.booking-form .elementor-column.elementor-col-50,
section.booking-form .elementor-column[data-col="50"] {
    width: 48%;
}

section.booking-form .elementor-form-fields-wrapper {
    gap: 1rem;
}

.korepetytor-entry form#offers-filters {
    display: none;
}

div.inne {
    padding: 20px;
}

/* Przycisk powrotu do listy korepetycji */
.back-to-tutors-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.back-to-tutors {
    padding: 20px;
    text-align: center;
    margin: 40px auto 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.korepetytor-entry + .back-to-tutors-wrapper,
article + .back-to-tutors-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.btn-back-to-tutors {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.3);
    max-width: 100%;
    box-sizing: border-box;
}

.btn-back-to-tutors:hover {
    background-color: #2a5fa5;
    box-shadow: 0 6px 20px rgba(58, 123, 213, 0.4);
    transform: translateY(-2px);
}

.btn-back-to-tutors svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Ukryj nieaktywny kalendarz flatpickr na dole strony */
/* Ukrywamy tylko kalendarz który jest bezpośrednio w body i nie jest otwarty */
body > .flatpickr-calendar:not(.open):not(.inline):not(.static) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    z-index: -1 !important;
}

/* Upewnij się że otwarty kalendarz działa normalnie */
.flatpickr-calendar.open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: absolute !important;
    z-index: 99999 !important;
}

.flatpickr-calendar.inline,
.flatpickr-calendar.static {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Kontener główny - upewnij się że nie ma overflow */
.site-main--korepetytor,
main#primary.site-main--korepetytor {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.korepetytor-entry {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Tabela cennika */
.korepetytor-cennik {
    margin: 20px 0;
    padding: 0 20px;
}

.korepetytor-cennik h2 {
    margin-bottom: 16px;
    font-size: 24px;
}

.korepetytor-cennik-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.korepetytor-cennik-table thead {
    background-color: var(--primary-color);
    color: #fff;
}

.korepetytor-cennik-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.korepetytor-cennik-table td {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.korepetytor-cennik-table tbody tr:hover {
    background-color: #f5f5f5;
}

.korepetytor-cennik-table tbody tr:last-child td {
    border-bottom: none;
}

.korepetytor-cennik-table a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.korepetytor-cennik-table a:hover {
    text-decoration: underline;
}

.tabs-wrap { margin: 24px 0; }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid #ddd; }
.tab-btn { padding: 10px 16px; cursor: pointer; background: #f7f7f7; border: 1px solid #ddd; border-bottom: none; border-radius: 6px 6px 0 0; }
.tab-btn.active { background: #fff; font-weight: 600; }
.tab-panel { display: none; padding: 16px; border: 1px solid #ddd; border-top: none; border-radius: 0 6px 6px 6px; background: #fff; }
.tab-panel.active { display: block; }
.form-grid { display: grid; gap: 12px; }
.form-grid label { display: block; font-weight: 600; margin-bottom: 4px; }
.form-grid input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; }
.submit-row { margin-top: 12px; }
.submit-btn { padding: 10px 16px; background: #2b6cb0; color: #fff; border: none; border-radius: 6px; cursor: pointer; }
.submit-btn:hover { background: #245a93; }
.notice { margin: 12px 0; padding: 10px; border-radius: 6px; }
.notice.error { background: #ffecec; border: 1px solid #f5c2c7; color: #b42318; }
.header-note { margin-bottom: 8px; color: #555; }
.header-note strong { font-weight: 700; }

.registration-template {
    padding: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 10rem;
}

.wrap.dziekujemy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    width: fit-content;
    padding: 50px;
    border-radius: 50px;
}

body.page-template-page-dziekujemy-za-rejestracje {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

div#tab-profile .acf-fields-target {
    display: flex;
}

div#message, .acf-field[data-name="specjalizacja"] {
    display: none;
}

.acf-field[data-name="opis_wlasny"] {
    width: 75%;
}

.acf-image-uploader .image-wrap img {
    border-radius: 24px;
}

div#tab-profile h2, div#tab-offers h2, div#tab-bookings h2  {
    font-size: 14px;
    text-decoration: underline;
}

div#tab-offers .acf-repeater .acf-row-handle.order {
    background: #3a7bd5;
    color: #ffffff;
    text-shadow: none;
    display: none;
}

div#tab-offers .acf-fields.-left > .acf-field:before {
    background: #fbf5ec00;
    border-width: 0;
}

div#tab-offers input {
    padding: 10px;
    border-radius: 24px;
    border: 1px solid #cacdd0;
    font-family: 'Poppins', sans-serif;
    padding: 16px;
}

div#tab-offers input[type="radio"] {
    accent-color: #3a7bd5;
    transform: scale(1.3);
    margin-right: 8px;
}

div#tab-offers tbody.ui-sortable {
    display: flex;
    flex-direction: column;
    gap: 50px;
    background: white;
}

div#tab-offers td.acf-fields.-left {
    width: 100%;
}

div#tab-offers .acf-repeater > table {
    border: 0;
}

div#tab-offers .acf-repeater.-row {
    border: 1px solid #f2f2f2;
    padding: 24px;
    border-radius: 50px;
}

div#tab-offers .acf-table > tbody > tr > td {
    border-width: 0;
}

a.acf-button.acf-repeater-add-row.button.button-primary {
    color: #ffffff;
    background: #3a7bd5;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
}

/* Panel korepetytora – Oferty: podzakładki, formularz „Dodaj”, karty „Moje oferty” */
#tab-offers .tutor-offers-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: center;
}
#tab-offers .tutor-offers-subtab {
    border: 1px solid #3a7bd5;
    background: #fff;
    color: #3a7bd5;
    padding: 10px 20px;
    border-radius: 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
#tab-offers .tutor-offers-subtab.active {
    background: #3a7bd5;
    color: #fff;
}
#tab-offers .tutor-offers-subpane {
    display: none;
}
#tab-offers .tutor-offers-subpane.active {
    display: block;
}
#tab-offers .tutor-offer-add-box {
    max-width: 560px;
    margin: 0 auto 20px;
    padding: 28px 24px 32px;
    border: 2px solid #3a7bd5;
    border-radius: 16px;
    background: #fff;
    box-sizing: border-box;
}
#tab-offers .tutor-offer-add-inner {
    max-width: 100%;
}
#tab-offers .tutor-offer-add-heading {
    text-align: center;
    margin: 0 0 20px;
    font-size: 18px;
    color: #333;
    text-decoration: none;
}
#tab-offers .tutor-offer-field {
    margin-bottom: 16px;
}
#tab-offers .tutor-offer-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
}
#tab-offers .tutor-offer-field .req {
    color: #c62828;
}
#tab-offers .tutor-offer-field input,
#tab-offers .tutor-offer-field textarea,
#tab-offers .tutor-offer-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #cacdd0;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
}
#tab-offers .tutor-offer-field select {
    cursor: pointer;
    background-color: #fff;
}
#tab-offers .tutor-offer-field textarea {
    resize: vertical;
    min-height: 100px;
}
#tab-offers .tutor-offer-add-actions {
    text-align: center;
    margin-top: 20px;
}
#tab-offers .tutor-offer-btn-submit {
    background: #3a7bd5;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}
#tab-offers .tutor-offer-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
#tab-offers .tutor-offer-msg {
    text-align: center;
    margin-top: 12px;
    font-size: 15px;
    min-height: 1.2em;
}
#tab-offers .tutor-offer-msg--success {
    color: #2e7d32;
}
#tab-offers .tutor-offer-msg--error {
    color: #c62828;
}
#tab-offers .tutor-offers-list-empty {
    text-align: center;
    color: #666;
    margin: 24px 0;
}
#tab-offers .tutor-offers-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    #tab-offers .tutor-offers-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 520px) {
    #tab-offers .tutor-offers-cards {
        grid-template-columns: 1fr;
    }
}
#tab-offers .tutor-offer-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px 16px 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    display: flex;
    flex-direction: column;
    min-width: 0;
}
#tab-offers .tutor-offer-card-body {
    text-align: center;
}
#tab-offers .tutor-offer-card-subject {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}
#tab-offers .tutor-offer-card-level {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}
#tab-offers .tutor-offer-card-price {
    font-size: 15px;
    color: #3a7bd5;
    font-weight: 600;
}
#tab-offers .tutor-offer-card-actions {
    text-align: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eee;
}
#tab-offers .tutor-offer-card-actions-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}
#tab-offers .tutor-offer-btn-edit {
    display: inline-block;
    background: #fff;
    color: #3a7bd5;
    border: 2px solid #3a7bd5;
    padding: 8px 18px;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
#tab-offers .tutor-offer-btn-edit:hover {
    background: #f0f6fd;
}
#tab-offers .tutor-offer-btn-delete {
    display: inline-block;
    background: #c62828;
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
#tab-offers .tutor-offer-btn-delete--disabled,
#tab-offers .tutor-offer-btn-delete:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
/* Bez strzałek +/- przy polach numerycznych (spinners) w formularzu oferty */
#tab-offers .tutor-offer-add-box input[type="number"]::-webkit-outer-spin-button,
#tab-offers .tutor-offer-add-box input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#tab-offers .tutor-offer-add-box input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

    /* flex-start: unikamy wyśrodkowania pionowego — fixed aside zostaje przy top:120px, a kolumna treści musi zaczynać się na tej samej wysokości */
    body.page-template-panel-nauczyciela,
    body.page-template-single-post-uczen {
        display: flex;
        width: 100%;
        justify-content: center;
        min-height: 80vh;
        align-items: flex-start;
    }

body.page-template-panel-nauczyciela .notice.notice-success {
    display: none;
}

.mw-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.5);
    z-index: 9999;
}

.mw-modal.open {
    display: flex;
}

.mw-modal .box {
    background: #fff;
    max-width: 520px;
    width: 90%;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e5e5;
}

.mw-modal .box h3 {
    margin: 0 0 8px;
}

.mw-modal .actions {
    margin-top: 12px;
    text-align: right;
}

.mw-btn {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f7f7f7;
    cursor: pointer;
}

.mw-btn.primary {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* Przyciski - wspólne */
.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #ddd;
    background: #f7f7f7;
    color: #333;
}

.btn.primary {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.btn.btn-small {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    background: #fff;
}

.btn.btn-small:hover {
    background: #f3f3f3;
}

.btn-nav {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    background: #fff;
}

.btn-nav:hover {
    background: #f3f3f3;
}

/* Tab pane - wspólne */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane .acf-fields {
    margin: 0;
}

.tab-pane .acf-field {
    padding: 12px;
    border-top: 1px solid #f0f0f0;
}

.tab-pane .acf-field:first-child {
    border-top: none;
}

/* Notice - wspólne */
.notice {
    margin: 12px 0;
    padding: 10px;
    border-radius: 6px;
}

.notice-success {
    background: #d1e7dd;
    color: #0f5132;
}

.notice-error {
    background: #f8d7da;
    color: #842029;
}

/* Formularz logowania - Panel Ucznia */
.student-auth-wrap {
    align-items: flex-start;
    border: 1px solid #e5e5e5;
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 150px;
}

.student-auth-wrap h1 {
    margin-top: 0;
}

.student-auth-links {
    margin-top: 16px;
}

.student-auth-links a {
    display: block;
    margin: 6px 0;
    color: #2271b1;
    text-decoration: none;
}

.student-auth-links a:hover {
    text-decoration: underline;
}

form#loginform-student input[type="text"],
form#loginform-student input[type="password"] {
    width: 100%;
    padding: 10px;
}

input#rememberme {
    transform: scale(1.1);
    accent-color: #3A7BD5;
    margin-right: 4px;
}

p.login-remember {
    font-size: 14px;
}

input#wp-submit {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58,123,213,0.3);
    font-size: 16px;
}

/* Ekran "Brak uprawnień" - Panel Ucznia */
.student-noaccess {
    max-width: 680px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.student-noaccess h1 {
    margin-top: 0;
}

.student-noaccess p {
    margin: 10px 0;
}

.student-noaccess .actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Formularz logowania - Panel Korepetytora */
.tutor-auth-wrap {
    align-items: flex-start;
    border: 1px solid #e5e5e5;
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 150px;
}

.tutor-auth-wrap h1 {
    margin-top: 0;
}

.tutor-auth-links {
    margin-top: 16px;
}

.tutor-auth-links a {
    display: block;
    margin: 6px 0;
    color: #2271b1;
    text-decoration: none;
}

.tutor-auth-links a:hover {
    text-decoration: underline;
}

form#loginform-tutor input[type="text"],
form#loginform-tutor input[type="password"] {
    width: 100%;
    padding: 10px;
}

/* Ekran "Brak uprawnień" - Panel Korepetytora */
.tutor-noaccess {
    max-width: 680px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.tutor-noaccess h1 {
    margin-top: 0;
}

.tutor-noaccess p {
    margin: 10px 0;
}

.tutor-noaccess .actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Panel Ucznia - Style główne */
.student-dashboard-wrapper {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 100px 20px 50px;
}

.student-dashboard {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    position: relative;
    margin-bottom: 100px;
    max-width: 1600px;
    width: 100%;
    justify-content: center;
}

/* Strona resetu hasła jako wariant dashboardu */
.student-dashboard.reset-password-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 100px;
}

.stu-tabs {
    border: 0;
    border-radius: 24px;
    background: #fff;
    position: fixed;
    height: fit-content;
    top: 120px;
    padding: 24px;
    width: 20%;
    max-width: 320px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.stu-tabs h2 {
    margin: 0 0 8px;
    font-size: 16px;
}

.stu-tabs .tab-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 16px;
    margin: 4px 0;
    border: 1px solid #eaebec;
    border-radius: 24px;
    background: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
}

.stu-tabs .tab-link.active {
    background: #fff9f0;
    border-color: #efefef;
}

.stu-tabs .logout-wrap {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e5e5e5;
}

.stu-tabs .logout-link {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 5px;
    border: 1px solid #f1c9c9;
    border-radius: 50px;
    background: transparent;
    color: #ff853f;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.stu-tabs .logout-link:hover {
    background: #ffecec;
}

.stu-content {
    background: #fff;
    padding: 16px;
    border-radius: 24px;
    width: 75%;
    margin-left: calc(20% + 24px);
    min-width: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Ulubieni korepetytorzy – karta + panel ucznia */
.mw-favorite-bar {
    margin: 12px 0 20px;
}

.mw-fav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #e8e8e8;
    background: #fafafa;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mw-fav-toggle:hover {
    border-color: #ffb3c6;
    background: #fff5f7;
}

.mw-fav-toggle.is-favorited {
    border-color: #ff6b8a;
    background: #fff0f3;
    color: #c9184a;
}

.mw-fav-toggle .mw-fav-icon {
    font-size: 18px;
    line-height: 1;
    color: #bbb;
    transition: color 0.2s ease, transform 0.2s ease;
}

.mw-fav-toggle.is-favorited .mw-fav-icon {
    color: #e63946;
    transform: scale(1.08);
}

.mw-fav-toggle:disabled {
    opacity: 0.6;
    cursor: wait;
}

.mw-favorites-intro {
    color: #555;
    font-size: 14px;
    margin-bottom: 16px;
    max-width: 640px;
}

.mw-favorites-empty {
    color: #666;
    font-size: 14px;
}

.mw-fav-inline {
    color: #e63946;
}

.mw-student-favorites-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mw-fav-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid #eee;
    border-radius: 16px;
    background: #fafafa;
}

.mw-fav-card-main {
    min-width: 0;
    flex: 1;
}

.mw-fav-tutor {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    text-decoration: none;
}

.mw-fav-tutor:hover {
    text-decoration: underline;
}

.mw-fav-offer {
    margin-top: 6px;
    font-size: 14px;
    color: #555;
}

.mw-fav-offer-label {
    font-weight: 500;
    color: #777;
}

.mw-fav-offer--gone {
    color: #999;
}

.mw-fav-offer--whole {
    font-size: 13px;
    color: #888;
}

/* Style dla formularza profilu - Panel Ucznia */
#tab-profile form {
    margin: 0;
}

#tab-profile .fieldset {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 20px;
}

#tab-profile .fieldset legend {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding: 12px 16px;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
    box-sizing: border-box;
}

#tab-profile .fieldset p {
    padding: 12px 16px;
    margin: 0;
    border-top: 1px solid #f0f0f0;
}

#tab-profile .fieldset p:first-of-type {
    border-top: none;
}

#tab-profile .fieldset label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

#tab-profile .fieldset input[type="text"],
#tab-profile .fieldset input[type="password"],
#tab-profile .fieldset input[type="file"],
#tab-profile .fieldset textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #cacdd0;
    border-radius: 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#tab-profile .fieldset input[type="text"]:focus,
#tab-profile .fieldset input[type="password"]:focus,
#tab-profile .fieldset textarea:focus {
    border-color: #3A7BD5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.1);
}

#tab-profile .fieldset input[type="file"] {
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

#tab-profile .fieldset textarea {
    min-height: 120px;
    resize: vertical;
}

#tab-profile .fieldset img {
    max-width: 160px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 12px;
    display: block;
}

#tab-profile button[type="submit"] {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3A7BD5;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.3);
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    margin-top: 20px;
}

#tab-profile button[type="submit"]:hover {
    background-color: #2a5fa5;
    box-shadow: 0 4px 20px rgba(58, 123, 213, 0.4);
}

.student-booking-list {
    list-style: none;
    padding-left: 0;
}

.student-booking-item {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    background: #fff;
}

.status-pill {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 12px;
}

.status-pending {
    background: #fff3cd;
    color: #7a5c00;
}

.status-accepted {
    background: #d1e7dd;
    color: #0f5132;
}

.status-rejected {
    background: #f8d7da;
    color: #842029;
}

.student-calendar {
    margin: 24px 0;
}

.stu-cal {
    width: 100%;
    border-collapse: collapse;
}

.stu-cal th,
.stu-cal td {
    border: 1px solid #ddd;
    padding: 8px;
    vertical-align: top;
}

.stu-cal td.empty {
    background: #fafafa;
}

.stu-cal td .day-num {
    font-weight: 600;
    margin-bottom: 6px;
}

.stu-cal td.busy-day {
    background: #eef7ff;
}

.stu-cal td .hours {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.stu-cal td .hours li {
    background: #2271b1;
    color: #fff;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 12px;
}

.stu-cal td .free {
    color: #999;
    font-size: 12px;
}

/* Panel Korepetytora - Style główne */
.tutor-dashboard {
    display: flex;
    /* grid-template-columns: 240px 1fr; */
    gap: 24px;
    position: relative;
    padding: 24px;
    margin-top: 116px;
    max-width: 1600px;
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

.tutor-tabs {
    border: 0;
    border-radius: 24px;
    background: #fff;
    position: fixed;
    height: fit-content;
    top: 140px;
    padding: 24px;
    width: 20%;
    max-width: 320px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    z-index: 100;
}

.tutor-tabs h2 {
    margin: 0 0 8px;
    font-size: 16px;
}

.tutor-tabs .tab-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 16px;
    margin: 4px 0;
    border: 1px solid #eaebec;
    border-radius: 24px;
    background: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
}

.tutor-tabs .tab-link.active {
    background: #fff9f0;
    border-color: #efefef;
}

.tutor-tabs .logout-wrap {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e5e5e5;
}

.tutor-tabs .logout-link {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 5px;
    border: 1px solid #f1c9c9;
    border-radius: 50px;
    background: transparent;
    color: #ff853f;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.tutor-tabs .logout-link:hover {
    background: #ffecec;
}

.tutor-content {
    background: #fff;
    padding: 16px;
    border-radius: 24px;
    width: 75%;
    margin-left: calc(20% + 24px);
    min-width: 0;
}

/* Przycisk Zapisz na dole zakładek (Profil, Oferty) */
.tutor-tab-save {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tutor-save-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff853f;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.3);
    font-size: 16px;
    box-sizing: border-box;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tutor-save-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Przycisk Dodaj obrazek – standardowy wybór pliku z dysku (bez panelu mediów) */
div[data-fields="zdjecie,specjalizacja,opis_wlasny"] a.acf-button.button,
div[data-fields="zdjecie,specjalizacja,opis_wlasny"] .tutor-photo-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3A7BD5, #00D2FF);
    color: white !important;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.35);
    font-size: 12px;
    margin-top: 8px;
}

div[data-fields="zdjecie,specjalizacja,opis_wlasny"] a.acf-button.button:hover,
div[data-fields="zdjecie,specjalizacja,opis_wlasny"] .tutor-photo-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 123, 213, 0.45);
    color: white !important;
}

/* Rezerwacje i kalendarz */
.booking-list {
    list-style: none;
    padding-left: 0;
}

.booking-list.booking-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.booking-item {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.booking-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.booking-item.hidden {
    display: none;
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.booking-student {
    font-size: 16px;
    color: #333;
    margin: 0;
    flex: 1;
}

.booking-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.booking-status-pending {
    background: #fff3cd;
    color: #856404;
}

.booking-status-accepted {
    background: #d4edda;
    color: #155724;
}

.booking-status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.booking-status-cancelled {
    background: #e2e3e5;
    color: #383d41;
}

.booking-email,
.booking-topic,
.booking-date {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}

.booking-email {
    color: #3A7BD5;
    word-break: break-word;
}

.booking-topic strong,
.booking-date strong {
    color: #333;
    font-weight: 600;
}

.booking-main {
    flex: 1;
    margin-bottom: 12px;
}

.booking-actions {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 8px;
}

.booking-actions .btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    background: #fafafa;
    font-size: 13px;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.booking-actions .btn:hover {
    background: #f0f0f0;
}

.booking-actions .btn.btn-small.btn-accept,
.booking-actions .btn-accept.btn-small,
.booking-actions .btn-accept {
    background: #28a745 !important;
    color: #fff !important;
    border-color: #28a745 !important;
    font-weight: 500;
}

.booking-actions .btn.btn-small.btn-accept:hover,
.booking-actions .btn-accept.btn-small:hover,
.booking-actions .btn-accept:hover {
    background: #218838 !important;
    border-color: #1e7e34 !important;
    color: #fff !important;
}

.booking-actions .btn.btn-small.btn-reject,
.booking-actions .btn-reject.btn-small,
.booking-actions .btn-reject {
    background: #dc3545 !important;
    color: #fff !important;
    border-color: #dc3545 !important;
    font-weight: 500;
}

.booking-actions .btn.btn-small.btn-reject:hover,
.booking-actions .btn-reject.btn-small:hover,
.booking-actions .btn-reject:hover {
    background: #c82333 !important;
    border-color: #bd2130 !important;
    color: #fff !important;
}

.booking-actions .btn-cancel,
.booking-actions .btn.btn-small.btn-cancel {
    background: #6c757d !important;
    color: #fff !important;
    border-color: #6c757d !important;
}

.booking-actions .btn-cancel:hover {
    background: #5a6268 !important;
    border-color: #545b62 !important;
    color: #fff !important;
}

.booking-actions .btn-cancel-disabled,
.booking-actions .btn.btn-small.btn-cancel-disabled {
    background: #e9ecef !important;
    color: #adb5bd !important;
    border-color: #dee2e6 !important;
    cursor: not-allowed;
}

.bookings-filters {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.tutor-calendar {
    margin: 24px 0;
}

.tutor-cal-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tutor-cal {
    width: 100%;
    border-collapse: collapse;
}

.tutor-cal th,
.tutor-cal td {
    border: 1px solid #ddd;
    padding: 8px;
    vertical-align: top;
}

.tutor-cal td.empty {
    background: #fafafa;
}

.tutor-cal td .cal-day-num {
    font-weight: 600;
    margin-bottom: 6px;
}

.tutor-cal td.busy-day {
    background: #fff7f7;
}

.tutor-cal td .cal-hours {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tutor-cal td .cal-hours li {
    background: #e74c3c;
    color: #fff;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 12px;
    cursor: default;
}

.tutor-cal td .cal-hours li.cal-hour-manual {
    background: #ff9800;
    cursor: pointer;
    position: relative;
}

.tutor-cal td .cal-hours li.cal-hour-manual:hover {
    background: #f57c00;
    opacity: 0.9;
}

.tutor-cal td .cal-hours li.cal-hour-manual:after {
    content: '×';
    position: absolute;
    right: 2px;
    top: 0;
    font-size: 14px;
    line-height: 1;
}

.tutor-cal td .cal-free {
    color: #999;
    font-size: 12px;
}

.student-dashboard,
.uczen-dashboard,
[class*="student-dashboard"],
[class*="uczen-dashboard"],
[class*="student-panel"],
[class*="uczen-panel"] {
    display: flex;
    gap: 24px;
    position: relative;
    max-width: 1600px;
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
}

.stu-tabs,
.student-tabs,
.uczen-tabs,
[class*="student-tabs"],
[class*="uczen-tabs"],
[class*="stu-tabs"],
[class*="student-sidebar"],
[class*="uczen-sidebar"],
aside[class*="student"],
aside[class*="uczen"],
nav[class*="student"],
nav[class*="uczen"] {
    border: 0;
    border-radius: 24px;
    background: #fff;
    position: fixed;
    height: fit-content;
    top: 120px;
    padding: 24px;
    width: 20%;
    max-width: 320px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.stu-tabs h2,
.student-tabs h2,
.uczen-tabs h2,
[class*="student-tabs"] h2,
[class*="uczen-tabs"] h2,
[class*="stu-tabs"] h2 {
    margin: 0 0 8px;
    font-size: 16px;
}

.stu-tabs .tab-link,
.student-tabs .tab-link,
.uczen-tabs .tab-link,
[class*="student-tabs"] .tab-link,
[class*="uczen-tabs"] .tab-link,
[class*="stu-tabs"] .tab-link,
[class*="student-tabs"] button,
[class*="uczen-tabs"] button,
[class*="stu-tabs"] button,
[class*="student-tabs"] a,
[class*="uczen-tabs"] a,
[class*="stu-tabs"] a,
.student-tabs button,
.uczen-tabs button,
.stu-tabs button,
.student-tabs a,
.uczen-tabs a,
.stu-tabs a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 16px;
    margin: 4px 0;
    border: 1px solid #eaebec;
    border-radius: 24px;
    background: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.student-tabs .tab-link:hover,
.uczen-tabs .tab-link:hover,
[class*="student-tabs"] .tab-link:hover,
[class*="uczen-tabs"] .tab-link:hover,
[class*="student-tabs"] button:hover,
[class*="uczen-tabs"] button:hover {
    background: #f9f9f9;
    border-color: #ddd;
}

.stu-tabs .tab-link.active,
.student-tabs .tab-link.active,
.uczen-tabs .tab-link.active,
[class*="stu-tabs"] .tab-link.active,
[class*="student-tabs"] .tab-link.active,
[class*="uczen-tabs"] .tab-link.active,
[class*="student-tabs"] button.active,
[class*="uczen-tabs"] button.active,
.student-tabs button.active,
.uczen-tabs button.active {
    background: #fff9f0;
    border-color: #efefef;
    font-weight: 500;
}

.stu-tabs .logout-wrap,
.student-tabs .logout-wrap,
.uczen-tabs .logout-wrap,
[class*="student-tabs"] .logout-wrap,
[class*="uczen-tabs"] .logout-wrap,
[class*="stu-tabs"] .logout-wrap {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e5e5e5;
}

.stu-tabs .logout-link,
.student-tabs .logout-link,
.uczen-tabs .logout-link,
[class*="student-tabs"] .logout-link,
[class*="uczen-tabs"] .logout-link,
[class*="stu-tabs"] .logout-link {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 5px;
    border: 1px solid #f1c9c9;
    border-radius: 50px;
    background: transparent;
    color: #ff853f;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.stu-tabs .logout-link:hover,
.student-tabs .logout-link:hover,
.uczen-tabs .logout-link:hover,
[class*="student-tabs"] .logout-link:hover,
[class*="uczen-tabs"] .logout-link:hover,
[class*="stu-tabs"] .logout-link:hover {
    background: #ffecec;
}

.stu-content,
.student-content,
.uczen-content,
[class*="student-content"],
[class*="uczen-content"],
[class*="stu-content"] {
    background: #fff;
    padding: 16px;
    border-radius: 24px;
    width: 75%;
    margin-left: calc(20% + 24px);
    min-width: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Uniwersalne style dla menu bocznego w panelu ucznia - dodatkowe selektory */
.stu-tabs,
.student-tabs,
.uczen-tabs,
[class*="student-tabs"],
[class*="uczen-tabs"],
[class*="stu-tabs"],
body.page-template-panel-ucznia aside,
body.page-template-panel-ucznia nav,
body.page-template-panel-ucznia .sidebar,
.page-id-panel-ucznia aside,
.page-id-panel-ucznia nav,
.page-id-panel-ucznia .sidebar,
[data-page="panel-ucznia"] aside,
[data-page="panel-ucznia"] nav {
    border: 0;
    border-radius: 24px;
    background: #fff;
    position: fixed;
    height: fit-content;
    top: 120px;
    padding: 24px;
    width: 20%;
    max-width: 320px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.page-template-panel-ucznia aside button,
body.page-template-panel-ucznia aside a,
body.page-template-panel-ucznia nav button,
body.page-template-panel-ucznia nav a,
.page-id-panel-ucznia aside button,
.page-id-panel-ucznia aside a,
.page-id-panel-ucznia nav button,
.page-id-panel-ucznia nav a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 16px;
    margin: 4px 0;
    border: 1px solid #eaebec;
    border-radius: 24px;
    background: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

body.page-template-panel-ucznia aside button:hover,
body.page-template-panel-ucznia aside a:hover,
body.page-template-panel-ucznia nav button:hover,
body.page-template-panel-ucznia nav a:hover,
.page-id-panel-ucznia aside button:hover,
.page-id-panel-ucznia aside a:hover,
.page-id-panel-ucznia nav button:hover,
.page-id-panel-ucznia nav a:hover {
    background: #f9f9f9;
    border-color: #ddd;
}

body.page-template-panel-ucznia aside button.active,
body.page-template-panel-ucznia aside a.active,
body.page-template-panel-ucznia nav button.active,
body.page-template-panel-ucznia nav a.active,
.page-id-panel-ucznia aside button.active,
.page-id-panel-ucznia aside a.active,
.page-id-panel-ucznia nav button.active,
.page-id-panel-ucznia nav a.active {
    background: #fff9f0;
    border-color: #efefef;
    font-weight: 500;
}

/* Style dla zakładki "Profil" w panelu ucznia - takie same jak zakładka "Oferty" w panelu korepetytora */
.student-content #tab-profile,
.uczen-content #tab-profile,
[class*="student-content"] #tab-profile,
[class*="uczen-content"] #tab-profile,
body.page-template-panel-ucznia #tab-profile,
body.page-id-panel-ucznia #tab-profile,
[data-page="panel-ucznia"] #tab-profile,
.student-content .tab-pane[data-tab="profile"],
.uczen-content .tab-pane[data-tab="profile"] {
    background: #fff;
    border-radius: 8px;
    padding: 0;
}

.student-content #tab-profile h2,
.uczen-content #tab-profile h2,
[class*="student-content"] #tab-profile h2,
[class*="uczen-content"] #tab-profile h2,
body.page-template-panel-ucznia #tab-profile h2,
body.page-id-panel-ucznia #tab-profile h2,
[data-page="panel-ucznia"] #tab-profile h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding: 0;
}

/* Style dla kontenera pól w zakładce Profil - identyczne jak w zakładce Oferty */
.student-content #tab-profile .acf-fields-target,
.uczen-content #tab-profile .acf-fields-target,
[class*="student-content"] #tab-profile .acf-fields-target,
[class*="uczen-content"] #tab-profile .acf-fields-target,
body.page-template-panel-ucznia #tab-profile .acf-fields-target,
body.page-id-panel-ucznia #tab-profile .acf-fields-target,
[data-page="panel-ucznia"] #tab-profile .acf-fields-target {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 0;
    margin: 0;
}

/* Sticky save dla panelu ucznia */
.student-sticky-save,
.uczen-sticky-save {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(255 255 255 / 0%);
    border-top: 0;
    padding: 12px;
    z-index: 999;
}

.student-sticky-save .inner,
.uczen-sticky-save .inner {
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
}

.student-save-btn,
.uczen-save-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff853f;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.3);
    font-size: 16px;
}

.student-save-btn:disabled,
.uczen-save-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Uspójnienia ACF w zakładkach panelu ucznia - takie same jak w panelu korepetytora */
.student-content .tab-pane .acf-fields,
.uczen-content .tab-pane .acf-fields,
[class*="student-content"] .tab-pane .acf-fields,
[class*="uczen-content"] .tab-pane .acf-fields,
body.page-template-panel-ucznia .tab-pane .acf-fields,
body.page-id-panel-ucznia .tab-pane .acf-fields,
[data-page="panel-ucznia"] .tab-pane .acf-fields {
    margin: 0;
}

.student-content .tab-pane .acf-field,
.uczen-content .tab-pane .acf-field,
[class*="student-content"] .tab-pane .acf-field,
[class*="uczen-content"] .tab-pane .acf-field,
body.page-template-panel-ucznia .tab-pane .acf-field,
body.page-id-panel-ucznia .tab-pane .acf-field,
[data-page="panel-ucznia"] .tab-pane .acf-field {
    padding: 12px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
    border-radius: 0;
}

.student-content .tab-pane .acf-field:first-child,
.uczen-content .tab-pane .acf-field:first-child,
[class*="student-content"] .tab-pane .acf-field:first-child,
[class*="uczen-content"] .tab-pane .acf-field:first-child,
body.page-template-panel-ucznia .tab-pane .acf-field:first-child,
body.page-id-panel-ucznia .tab-pane .acf-field:first-child,
[data-page="panel-ucznia"] .tab-pane .acf-field:first-child {
    border-top: none;
}

/* Style dla kontenera pól ACF w panelu ucznia - takie same jak w panelu korepetytora */
.student-content .acf-fields-target,
.uczen-content .acf-fields-target,
[class*="student-content"] .acf-fields-target,
[class*="uczen-content"] .acf-fields-target,
body.page-template-panel-ucznia .acf-fields-target,
body.page-id-panel-ucznia .acf-fields-target,
[data-page="panel-ucznia"] .acf-fields-target {
    background: #fff;
    border-radius: 8px;
    padding: 0;
    margin: 0;
}

/* Style dla etykiet pól ACF w panelu ucznia */
.student-content .acf-field .acf-label,
.uczen-content .acf-field .acf-label,
[class*="student-content"] .acf-field .acf-label,
[class*="uczen-content"] .acf-field .acf-label,
body.page-template-panel-ucznia .acf-field .acf-label,
body.page-id-panel-ucznia .acf-field .acf-label,
[data-page="panel-ucznia"] .acf-field .acf-label {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

/* Style dla inputów i selectów w panelu ucznia */
.student-content .acf-field input[type="text"],
.student-content .acf-field input[type="email"],
.student-content .acf-field input[type="url"],
.student-content .acf-field input[type="number"],
.student-content .acf-field textarea,
.student-content .acf-field select,
.uczen-content .acf-field input[type="text"],
.uczen-content .acf-field input[type="email"],
.uczen-content .acf-field input[type="url"],
.uczen-content .acf-field input[type="number"],
.uczen-content .acf-field textarea,
.uczen-content .acf-field select,
[class*="student-content"] .acf-field input,
[class*="student-content"] .acf-field textarea,
[class*="student-content"] .acf-field select,
[class*="uczen-content"] .acf-field input,
[class*="uczen-content"] .acf-field textarea,
[class*="uczen-content"] .acf-field select,
body.page-template-panel-ucznia .acf-field input,
body.page-template-panel-ucznia .acf-field textarea,
body.page-template-panel-ucznia .acf-field select,
body.page-id-panel-ucznia .acf-field input,
body.page-id-panel-ucznia .acf-field textarea,
body.page-id-panel-ucznia .acf-field select {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.student-content .acf-field input:focus,
.student-content .acf-field textarea:focus,
.student-content .acf-field select:focus,
.uczen-content .acf-field input:focus,
.uczen-content .acf-field textarea:focus,
.uczen-content .acf-field select:focus,
[class*="student-content"] .acf-field input:focus,
[class*="student-content"] .acf-field textarea:focus,
[class*="student-content"] .acf-field select:focus,
[class*="uczen-content"] .acf-field input:focus,
[class*="uczen-content"] .acf-field textarea:focus,
[class*="uczen-content"] .acf-field select:focus,
body.page-template-panel-ucznia .acf-field input:focus,
body.page-template-panel-ucznia .acf-field textarea:focus,
body.page-template-panel-ucznia .acf-field select:focus,
body.page-id-panel-ucznia .acf-field input:focus,
body.page-id-panel-ucznia .acf-field textarea:focus,
body.page-id-panel-ucznia .acf-field select:focus {
    border-color: #3A7BD5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.1);
}

/* Style dla listy rezerwacji w panelu ucznia - takie same jak w panelu korepetytora */
.student-content .booking-list,
.uczen-content .booking-list,
.stu-content .booking-list,
.student-booking-list.booking-list,
[class*="student-content"] .booking-list,
[class*="uczen-content"] .booking-list,
[class*="stu-content"] .booking-list,
body.page-template-panel-ucznia .booking-list,
body.page-id-panel-ucznia .booking-list,
[data-page="panel-ucznia"] .booking-list {
    list-style: none;
    padding-left: 0;
}

.student-content .booking-list.booking-grid,
.uczen-content .booking-list.booking-grid,
.stu-content .booking-list.booking-grid,
.student-booking-list.booking-list.booking-grid,
[class*="student-content"] .booking-list.booking-grid,
[class*="uczen-content"] .booking-list.booking-grid,
[class*="stu-content"] .booking-list.booking-grid,
body.page-template-panel-ucznia .booking-list.booking-grid,
body.page-id-panel-ucznia .booking-list.booking-grid,
[data-page="panel-ucznia"] .booking-list.booking-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}



@media (max-width: 991px) {
            .moc-container {
                padding: 0 15px;
            }
            
            .section-title {
                font-size: 28px;
                margin-bottom: 30px;
            }
            
            /* Nag��wek */
            .nav-links,
            .auth-buttons,
            .user-menu {
                display: none;
            }
            
            .mobile-menu-btn {
                display: block;
            }
            
            /* Sekcja Hero */
            .hero {
                padding: 100px 0 60px;
                margin-top: 70px;
            }
            
            .hero h1 {
                font-size: 32px;
                margin-bottom: 15px;
            }
            
            .hero p {
                font-size: 16px;
                margin-bottom: 25px;
            }
            
            .btn-group {
                flex-direction: column;
                gap: 10px;
            }
            
            /* Jak to dzia�a */
            .steps {
                flex-direction: column;
                gap: 40px;
            }
            
            .step:not(:last-child):after {
                display: none;
            }
            
            /* O nas */
            .features {
                flex-direction: column;
                align-items: center;
            }
            
            .feature {
                width: 100%;
                max-width: 350px;
            }
            
            /* Korepetytorzy */
            .search-filters {
                padding: 20px;
            }
            
            .filter-header {
                flex-direction: column;
                gap: 15px;
                align-items: flex-start;
            }
            
            .filter-row {
                flex-direction: column;
                gap: 15px;
            }
            
            .tutors-grid {
                grid-template-columns: 1fr;
            }
            
            /* Opinie */
            .testimonials-grid {
                grid-template-columns: 1fr;
            }
            
            /* Kontakt */
            .contact-methods {
                flex-direction: column;
                gap: 30px;
                align-items: center;
            }
            
            .contact-method {
                width: 100%;
                max-width: 250px;
            }
            
            /* Stopka */
            .footer-content {
                flex-direction: column;
            }
            
            .footer-column {
                min-width: 100%;
            }
        }

        @media (min-width: 992px) and (max-width: 1199px) {
            /* �rednie ekrany */
            .moc-container {
                width: 95%;
            }
            
            .hero h1 {
                font-size: 42px;
            }
            
            .steps {
                flex-wrap: wrap;
            }
            
            .step {
                min-width: calc(50% - 20px);
            }
            
            .tutors-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .testimonials-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (min-width: 1200px) {
            /* Du�e ekrany */
            .moc-container {
                width: 92%;
                max-width: 1400px;
            }
        }


/* Responsywność dla pojedynczej karty korepetycji - Tablety */
@media (max-width: 991px) {
    .rezerwuje {
        flex-direction: column;
        gap: 20px;
    }
    
    section.teacher-about {
        width: 100%;
        flex-direction: row;
    }
    
    figure.teacher-photo {
        width: 40%;
        flex: 0 0 40%;
        max-width: 200px;
    }
    
    section.booking-form {
        width: 100%;
    }
    
    section.offer-summary {
        flex-direction: column;
        gap: 20px;
    }
    
    ul.offer-summary-list {
        width: 100%;
    }
    
    .opis-lekcji {
        width: 100%;
    }
    
    /* Tabela cennika - przewijanie poziome */
    .korepetytor-cennik {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .korepetytor-cennik-table {
        min-width: 600px;
    }
    
    .korepetytor-cennik-table th,
    .korepetytor-cennik-table td {
        padding: 12px 8px;
        font-size: 14px;
    }
}

/* Responsywność dla pojedynczej karty korepetycji - Telefony */
@media (max-width: 600px) {
.offers-filters fieldset:has(input[name="subject[]"]), .offers-filters fieldset:has(input[name="level[]"]) {
    width: 100%;
}

.offer-card {
    width: 100%;
    padding: 12px 14px;
}

.container {
    width: 100%;
    padding: 0;
}

  .header-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .btn-group {
    flex-direction: column;
    align-items: center;
  }
  
  .step {
    min-width: 100%;
  }
  
  /* Pojedyncza karta korepetycji - Telefony */
  .rezerwuje {
    flex-direction: column;
    gap: 20px;
    padding: 16px;
  }
  
  section.teacher-about {
    width: 100%;
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }
  
  figure.teacher-photo {
    width: 100%;
    max-width: 100%;
    flex: none;
  }
  
  .teacher-meta {
    width: 100%;
  }
  
  .teacher-meta h2 {
    font-size: 18px !important;
  }
  
  section.booking-form {
    width: 100%;
    padding: 16px;
  }
  
  section.booking-form h2 {
    font-size: 20px;
    margin-bottom: 16px;
  }
  
  section.booking-form .elementor-column.elementor-col-50,
  section.booking-form .elementor-column[data-col="50"] {
    width: 100%;
  }
  
  section.offer-summary {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }
  
  ul.offer-summary-list {
    width: 100%;
    padding: 16px;
  }
  
  .opis-lekcji {
    width: 100%;
    padding: 16px;
  }
  
  /* Tabela cennika - przewijanie poziome na telefonach */
  .korepetytor-cennik {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
  }
  
  .korepetytor-cennik-table {
    min-width: 500px;
    font-size: 12px;
  }
  
  .korepetytor-cennik-table th,
  .korepetytor-cennik-table td {
    padding: 8px 6px;
    font-size: 12px;
  }
  
  .korepetytor-cennik-table th {
    font-size: 13px;
    white-space: nowrap;
  }
  
  .korepetytor-header {
    padding: 0 16px;
  }
  
  .korepetytor-title {
    font-size: 24px !important;
    line-height: 1.3;
  }
  
  div.inne {
    padding: 16px;
  }
  
  div.inne h2 {
    font-size: 20px;
  }
  
  .korepetytor-entry {
    padding: 0;
  }
  
  .korepetytor-entry article {
    padding: 20px;
  }
  
  /* Przycisk powrotu - mobile */
  .back-to-tutors {
    padding: 16px;
    margin-top: 30px;
    margin-bottom: 16px;
  }
  
  .btn-back-to-tutors {
    padding: 10px 20px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }
  
  /* Panel ucznia - mobile */
  .student-dashboard {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    position: relative;
    margin-bottom: 100px;
    max-width: 1600px;
    width: 100%;
    justify-content: center;
  }
  
  .student-dashboard, 
  .uczen-dashboard, 
  [class*="student-dashboard"], 
  [class*="uczen-dashboard"], 
  [class*="student-panel"], 
  [class*="uczen-panel"] {
    flex-direction: column;
    gap: 16px;
    padding: 0;
  }
  
  .stu-cal {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
  }
  
  .stu-tabs,
  .student-tabs,
  .uczen-tabs,
  [class*="student-tabs"],
  [class*="uczen-tabs"],
  [class*="stu-tabs"],
  [class*="student-sidebar"],
  [class*="uczen-sidebar"],
  aside[class*="student"],
  aside[class*="uczen"],
  nav[class*="student"],
  nav[class*="uczen"],
  body.page-template-panel-ucznia aside,
  body.page-template-panel-ucznia nav,
  body.page-template-panel-ucznia .sidebar,
  .page-id-panel-ucznia aside,
  .page-id-panel-ucznia nav,
  .page-id-panel-ucznia .sidebar,
  [data-page="panel-ucznia"] aside,
  [data-page="panel-ucznia"] nav {
    position: relative;
    width: 100%;
    max-width: 100%;
    top: auto;
    margin-bottom: 16px;
    padding: 16px;
  }
  
  .stu-content,
  .student-content,
  .uczen-content,
  [class*="student-content"],
  [class*="uczen-content"],
  [class*="stu-content"] {
    width: 100%;
    margin-left: 0;
    padding: 16px;
  }
  
  body.page-template-panel-ucznia #tab-profile,
  body.page-id-panel-ucznia #tab-profile,
  [data-page="panel-ucznia"] #tab-profile {
    padding: 16px;
  }
  
  body.page-template-panel-ucznia #tab-profile h2,
  body.page-id-panel-ucznia #tab-profile h2,
  [data-page="panel-ucznia"] #tab-profile h2 {
    font-size: 18px;
  }
  
  body.page-template-panel-ucznia .booking-list,
  body.page-id-panel-ucznia .booking-list,
  [data-page="panel-ucznia"] .booking-list {
    padding: 16px;
  }
  
  body.page-template-panel-ucznia .booking-item,
  body.page-id-panel-ucznia .booking-item,
  [data-page="panel-ucznia"] .booking-item {
    padding: 16px;
    flex-direction: column;
    gap: 12px;
  }
  
  body.page-template-panel-ucznia .booking-header,
  body.page-id-panel-ucznia .booking-header,
  [data-page="panel-ucznia"] .booking-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  body.page-template-panel-ucznia .acf-field input,
  body.page-template-panel-ucznia .acf-field textarea,
  body.page-template-panel-ucznia .acf-field select,
  body.page-id-panel-ucznia .acf-field input,
  body.page-id-panel-ucznia .acf-field textarea,
  body.page-id-panel-ucznia .acf-field select {
    font-size: 14px;
    padding: 10px;
  }

}

/* Responsywność dla panelu ucznia - Tablety */
@media (max-width: 991px) and (min-width: 601px) {
  .student-dashboard,
  .uczen-dashboard,
  [class*="student-dashboard"],
  [class*="uczen-dashboard"],
  [class*="student-panel"],
  [class*="uczen-panel"] {
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
  }
  
  .stu-tabs,
  .student-tabs,
  .uczen-tabs,
  [class*="student-tabs"],
  [class*="uczen-tabs"],
  [class*="stu-tabs"],
  [class*="student-sidebar"],
  [class*="uczen-sidebar"],
  aside[class*="student"],
  aside[class*="uczen"],
  nav[class*="student"],
  nav[class*="uczen"],
  body.page-template-panel-ucznia aside,
  body.page-template-panel-ucznia nav,
  body.page-template-panel-ucznia .sidebar,
  .page-id-panel-ucznia aside,
  .page-id-panel-ucznia nav,
  .page-id-panel-ucznia .sidebar,
  [data-page="panel-ucznia"] aside,
  [data-page="panel-ucznia"] nav {
    position: relative;
    width: 100%;
    max-width: 100%;
    top: auto;
    margin-bottom: 20px;
    padding: 20px;
  }
  
  .stu-content,
  .student-content,
  .uczen-content,
  [class*="student-content"],
  [class*="uczen-content"],
  [class*="stu-content"] {
    width: 100%;
    margin-left: 0;
    padding: 20px;
  }
  
  body.page-template-panel-ucznia .booking-list.booking-grid,
  body.page-id-panel-ucznia .booking-list.booking-grid,
  [data-page="panel-ucznia"] .booking-list.booking-grid {
    grid-template-columns: 1fr;
  }
}

/* Style dla panelu ucznia - takie same jak panel korepetytora */

@media (max-width: 1200px) {
    .student-content .booking-list.booking-grid,
    .uczen-content .booking-list.booking-grid,
    .stu-content .booking-list.booking-grid,
    .student-booking-list.booking-list.booking-grid,
    [class*="student-content"] .booking-list.booking-grid,
    [class*="uczen-content"] .booking-list.booking-grid,
    [class*="stu-content"] .booking-list.booking-grid,
    body.page-template-panel-ucznia .booking-list.booking-grid,
    body.page-id-panel-ucznia .booking-list.booking-grid,
    [data-page="panel-ucznia"] .booking-list.booking-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



/* Style dla kafli rezerwacji w panelu ucznia */
.student-content .booking-item,
.uczen-content .booking-item,
.stu-content .booking-item,
.student-booking-item.booking-item,
[class*="student-content"] .booking-item,
[class*="uczen-content"] .booking-item,
[class*="stu-content"] .booking-item,
body.page-template-panel-ucznia .booking-item,
body.page-id-panel-ucznia .booking-item,
[data-page="panel-ucznia"] .booking-item {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.student-content .booking-item:hover,
.uczen-content .booking-item:hover,
.stu-content .booking-item:hover,
.student-booking-item.booking-item:hover,
[class*="student-content"] .booking-item:hover,
[class*="uczen-content"] .booking-item:hover,
[class*="stu-content"] .booking-item:hover,
body.page-template-panel-ucznia .booking-item:hover,
body.page-id-panel-ucznia .booking-item:hover,
[data-page="panel-ucznia"] .booking-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.student-content .booking-item.hidden,
.uczen-content .booking-item.hidden,
.stu-content .booking-item.hidden,
.student-booking-item.booking-item.hidden,
[class*="student-content"] .booking-item.hidden,
[class*="uczen-content"] .booking-item.hidden,
[class*="stu-content"] .booking-item.hidden,
body.page-template-panel-ucznia .booking-item.hidden,
body.page-id-panel-ucznia .booking-item.hidden,
[data-page="panel-ucznia"] .booking-item.hidden {
    display: none;
}

/* Style dla filtrów w panelu ucznia */
.student-content .bookings-filters,
.uczen-content .bookings-filters,
.stu-content .bookings-filters,
[class*="student-content"] .bookings-filters,
[class*="uczen-content"] .bookings-filters,
[class*="stu-content"] .bookings-filters,
body.page-template-panel-ucznia .bookings-filters,
body.page-id-panel-ucznia .bookings-filters,
[data-page="panel-ucznia"] .bookings-filters {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

/* Style dla elementów booking-item w panelu ucznia */
.student-content .booking-header,
.uczen-content .booking-header,
.stu-content .booking-header,
[class*="student-content"] .booking-header,
[class*="uczen-content"] .booking-header,
[class*="stu-content"] .booking-header,
body.page-template-panel-ucznia .booking-header,
body.page-id-panel-ucznia .booking-header,
[data-page="panel-ucznia"] .booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.student-content .booking-student,
.uczen-content .booking-student,
.stu-content .booking-student,
[class*="student-content"] .booking-student,
[class*="uczen-content"] .booking-student,
[class*="stu-content"] .booking-student,
body.page-template-panel-ucznia .booking-student,
body.page-id-panel-ucznia .booking-student,
[data-page="panel-ucznia"] .booking-student {
    font-size: 16px;
    color: #333;
    margin: 0;
    flex: 1;
}

.student-content .booking-status-badge,
.uczen-content .booking-status-badge,
.stu-content .booking-status-badge,
[class*="student-content"] .booking-status-badge,
[class*="uczen-content"] .booking-status-badge,
[class*="stu-content"] .booking-status-badge,
body.page-template-panel-ucznia .booking-status-badge,
body.page-id-panel-ucznia .booking-status-badge,
[data-page="panel-ucznia"] .booking-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.student-content .booking-status-pending,
.uczen-content .booking-status-pending,
.stu-content .booking-status-pending,
[class*="student-content"] .booking-status-pending,
[class*="uczen-content"] .booking-status-pending,
[class*="stu-content"] .booking-status-pending,
body.page-template-panel-ucznia .booking-status-pending,
body.page-id-panel-ucznia .booking-status-pending,
[data-page="panel-ucznia"] .booking-status-pending {
    background: #fff3cd;
    color: #856404;
}

.student-content .booking-status-accepted,
.uczen-content .booking-status-accepted,
.stu-content .booking-status-accepted,
[class*="student-content"] .booking-status-accepted,
[class*="uczen-content"] .booking-status-accepted,
[class*="stu-content"] .booking-status-accepted,
body.page-template-panel-ucznia .booking-status-accepted,
body.page-id-panel-ucznia .booking-status-accepted,
[data-page="panel-ucznia"] .booking-status-accepted {
    background: #d4edda;
    color: #155724;
}

.student-content .booking-status-rejected,
.uczen-content .booking-status-rejected,
.stu-content .booking-status-rejected,
[class*="student-content"] .booking-status-rejected,
[class*="uczen-content"] .booking-status-rejected,
[class*="stu-content"] .booking-status-rejected,
body.page-template-panel-ucznia .booking-status-rejected,
body.page-id-panel-ucznia .booking-status-rejected,
[data-page="panel-ucznia"] .booking-status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.student-content .booking-email,
.uczen-content .booking-email,
.stu-content .booking-email,
[class*="student-content"] .booking-email,
[class*="uczen-content"] .booking-email,
[class*="stu-content"] .booking-email,
body.page-template-panel-ucznia .booking-email,
body.page-id-panel-ucznia .booking-email,
[data-page="panel-ucznia"] .booking-email,
.student-content .booking-topic,
.uczen-content .booking-topic,
.stu-content .booking-topic,
[class*="student-content"] .booking-topic,
[class*="uczen-content"] .booking-topic,
[class*="stu-content"] .booking-topic,
body.page-template-panel-ucznia .booking-topic,
body.page-id-panel-ucznia .booking-topic,
[data-page="panel-ucznia"] .booking-topic,
.student-content .booking-date,
.uczen-content .booking-date,
.stu-content .booking-date,
[class*="student-content"] .booking-date,
[class*="uczen-content"] .booking-date,
[class*="stu-content"] .booking-date,
body.page-template-panel-ucznia .booking-date,
body.page-id-panel-ucznia .booking-date,
[data-page="panel-ucznia"] .booking-date {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}

.student-content .booking-email,
.uczen-content .booking-email,
.stu-content .booking-email,
[class*="student-content"] .booking-email,
[class*="uczen-content"] .booking-email,
[class*="stu-content"] .booking-email,
body.page-template-panel-ucznia .booking-email,
body.page-id-panel-ucznia .booking-email,
[data-page="panel-ucznia"] .booking-email {
    color: #3A7BD5;
    word-break: break-word;
}

.student-content .booking-topic strong,
.uczen-content .booking-topic strong,
.stu-content .booking-topic strong,
[class*="student-content"] .booking-topic strong,
[class*="uczen-content"] .booking-topic strong,
[class*="stu-content"] .booking-topic strong,
body.page-template-panel-ucznia .booking-topic strong,
body.page-id-panel-ucznia .booking-topic strong,
[data-page="panel-ucznia"] .booking-topic strong,
.student-content .booking-date strong,
.uczen-content .booking-date strong,
.stu-content .booking-date strong,
[class*="student-content"] .booking-date strong,
[class*="uczen-content"] .booking-date strong,
[class*="stu-content"] .booking-date strong,
body.page-template-panel-ucznia .booking-date strong,
body.page-id-panel-ucznia .booking-date strong,
[data-page="panel-ucznia"] .booking-date strong {
    color: #333;
    font-weight: 600;
}

.student-content .booking-main,
.uczen-content .booking-main,
.stu-content .booking-main,
[class*="student-content"] .booking-main,
[class*="uczen-content"] .booking-main,
[class*="stu-content"] .booking-main,
body.page-template-panel-ucznia .booking-main,
body.page-id-panel-ucznia .booking-main,
[data-page="panel-ucznia"] .booking-main {
    flex: 1;
    margin-bottom: 12px;
}

/* Style dla formularza profilu w panelu ucznia - takie same jak pola ACF w panelu korepetytora */
.stu-content #tab-profile form,
.student-content #tab-profile form,
.uczen-content #tab-profile form,
[class*="stu-content"] #tab-profile form,
[class*="student-content"] #tab-profile form,
[class*="uczen-content"] #tab-profile form,
body.page-template-panel-ucznia #tab-profile form,
body.page-id-panel-ucznia #tab-profile form,
[data-page="panel-ucznia"] #tab-profile form {
    margin: 0;
}

.stu-content #tab-profile .fieldset,
.student-content #tab-profile .fieldset,
.uczen-content #tab-profile .fieldset,
[class*="stu-content"] #tab-profile .fieldset,
[class*="student-content"] #tab-profile .fieldset,
[class*="uczen-content"] #tab-profile .fieldset,
body.page-template-panel-ucznia #tab-profile .fieldset,
body.page-id-panel-ucznia #tab-profile .fieldset,
[data-page="panel-ucznia"] #tab-profile .fieldset {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 20px;
}

.stu-content #tab-profile .fieldset legend,
.student-content #tab-profile .fieldset legend,
.uczen-content #tab-profile .fieldset legend,
[class*="stu-content"] #tab-profile .fieldset legend,
[class*="student-content"] #tab-profile .fieldset legend,
[class*="uczen-content"] #tab-profile .fieldset legend,
body.page-template-panel-ucznia #tab-profile .fieldset legend,
body.page-id-panel-ucznia #tab-profile .fieldset legend,
[data-page="panel-ucznia"] #tab-profile .fieldset legend {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding: 12px 16px;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
    box-sizing: border-box;
}

.stu-content #tab-profile .fieldset p,
.student-content #tab-profile .fieldset p,
.uczen-content #tab-profile .fieldset p,
[class*="stu-content"] #tab-profile .fieldset p,
[class*="student-content"] #tab-profile .fieldset p,
[class*="uczen-content"] #tab-profile .fieldset p,
body.page-template-panel-ucznia #tab-profile .fieldset p,
body.page-id-panel-ucznia #tab-profile .fieldset p,
[data-page="panel-ucznia"] #tab-profile .fieldset p {
    padding: 12px 16px;
    margin: 0;
    border-top: 1px solid #f0f0f0;
}

.stu-content #tab-profile .fieldset p:first-of-type,
.student-content #tab-profile .fieldset p:first-of-type,
.uczen-content #tab-profile .fieldset p:first-of-type,
[class*="stu-content"] #tab-profile .fieldset p:first-of-type,
[class*="student-content"] #tab-profile .fieldset p:first-of-type,
[class*="uczen-content"] #tab-profile .fieldset p:first-of-type,
body.page-template-panel-ucznia #tab-profile .fieldset p:first-of-type,
body.page-id-panel-ucznia #tab-profile .fieldset p:first-of-type,
[data-page="panel-ucznia"] #tab-profile .fieldset p:first-of-type {
    border-top: none;
}

.stu-content #tab-profile .fieldset label,
.student-content #tab-profile .fieldset label,
.uczen-content #tab-profile .fieldset label,
[class*="stu-content"] #tab-profile .fieldset label,
[class*="student-content"] #tab-profile .fieldset label,
[class*="uczen-content"] #tab-profile .fieldset label,
body.page-template-panel-ucznia #tab-profile .fieldset label,
body.page-id-panel-ucznia #tab-profile .fieldset label,
[data-page="panel-ucznia"] #tab-profile .fieldset label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.stu-content #tab-profile .fieldset input[type="text"],
.stu-content #tab-profile .fieldset input[type="password"],
.stu-content #tab-profile .fieldset input[type="file"],
.stu-content #tab-profile .fieldset textarea,
.student-content #tab-profile .fieldset input[type="text"],
.student-content #tab-profile .fieldset input[type="password"],
.student-content #tab-profile .fieldset input[type="file"],
.student-content #tab-profile .fieldset textarea,
.uczen-content #tab-profile .fieldset input[type="text"],
.uczen-content #tab-profile .fieldset input[type="password"],
.uczen-content #tab-profile .fieldset input[type="file"],
.uczen-content #tab-profile .fieldset textarea,
[class*="stu-content"] #tab-profile .fieldset input[type="text"],
[class*="stu-content"] #tab-profile .fieldset input[type="password"],
[class*="stu-content"] #tab-profile .fieldset input[type="file"],
[class*="stu-content"] #tab-profile .fieldset textarea,
[class*="student-content"] #tab-profile .fieldset input[type="text"],
[class*="student-content"] #tab-profile .fieldset input[type="password"],
[class*="student-content"] #tab-profile .fieldset input[type="file"],
[class*="student-content"] #tab-profile .fieldset textarea,
[class*="uczen-content"] #tab-profile .fieldset input[type="text"],
[class*="uczen-content"] #tab-profile .fieldset input[type="password"],
[class*="uczen-content"] #tab-profile .fieldset input[type="file"],
[class*="uczen-content"] #tab-profile .fieldset textarea,
body.page-template-panel-ucznia #tab-profile .fieldset input[type="text"],
body.page-template-panel-ucznia #tab-profile .fieldset input[type="password"],
body.page-template-panel-ucznia #tab-profile .fieldset input[type="file"],
body.page-template-panel-ucznia #tab-profile .fieldset textarea,
body.page-id-panel-ucznia #tab-profile .fieldset input[type="text"],
body.page-id-panel-ucznia #tab-profile .fieldset input[type="password"],
body.page-id-panel-ucznia #tab-profile .fieldset input[type="file"],
body.page-id-panel-ucznia #tab-profile .fieldset textarea,
[data-page="panel-ucznia"] #tab-profile .fieldset input[type="text"],
[data-page="panel-ucznia"] #tab-profile .fieldset input[type="password"],
[data-page="panel-ucznia"] #tab-profile .fieldset input[type="file"],
[data-page="panel-ucznia"] #tab-profile .fieldset textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #cacdd0;
    border-radius: 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stu-content #tab-profile .fieldset input[type="text"]:focus,
.stu-content #tab-profile .fieldset input[type="password"]:focus,
.stu-content #tab-profile .fieldset textarea:focus,
.student-content #tab-profile .fieldset input[type="text"]:focus,
.student-content #tab-profile .fieldset input[type="password"]:focus,
.student-content #tab-profile .fieldset textarea:focus,
.uczen-content #tab-profile .fieldset input[type="text"]:focus,
.uczen-content #tab-profile .fieldset input[type="password"]:focus,
.uczen-content #tab-profile .fieldset textarea:focus,
[class*="stu-content"] #tab-profile .fieldset input[type="text"]:focus,
[class*="stu-content"] #tab-profile .fieldset input[type="password"]:focus,
[class*="stu-content"] #tab-profile .fieldset textarea:focus,
[class*="student-content"] #tab-profile .fieldset input[type="text"]:focus,
[class*="student-content"] #tab-profile .fieldset input[type="password"]:focus,
[class*="student-content"] #tab-profile .fieldset textarea:focus,
[class*="uczen-content"] #tab-profile .fieldset input[type="text"]:focus,
[class*="uczen-content"] #tab-profile .fieldset input[type="password"]:focus,
[class*="uczen-content"] #tab-profile .fieldset textarea:focus,
body.page-template-panel-ucznia #tab-profile .fieldset input[type="text"]:focus,
body.page-template-panel-ucznia #tab-profile .fieldset input[type="password"]:focus,
body.page-template-panel-ucznia #tab-profile .fieldset textarea:focus,
body.page-id-panel-ucznia #tab-profile .fieldset input[type="text"]:focus,
body.page-id-panel-ucznia #tab-profile .fieldset input[type="password"]:focus,
body.page-id-panel-ucznia #tab-profile .fieldset textarea:focus,
[data-page="panel-ucznia"] #tab-profile .fieldset input[type="text"]:focus,
[data-page="panel-ucznia"] #tab-profile .fieldset input[type="password"]:focus,
[data-page="panel-ucznia"] #tab-profile .fieldset textarea:focus {
    border-color: #3A7BD5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.1);
}

.stu-content #tab-profile .fieldset input[type="file"],
.student-content #tab-profile .fieldset input[type="file"],
.uczen-content #tab-profile .fieldset input[type="file"],
[class*="stu-content"] #tab-profile .fieldset input[type="file"],
[class*="student-content"] #tab-profile .fieldset input[type="file"],
[class*="uczen-content"] #tab-profile .fieldset input[type="file"],
body.page-template-panel-ucznia #tab-profile .fieldset input[type="file"],
body.page-id-panel-ucznia #tab-profile .fieldset input[type="file"],
[data-page="panel-ucznia"] #tab-profile .fieldset input[type="file"] {
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

.stu-content #tab-profile .fieldset textarea,
.student-content #tab-profile .fieldset textarea,
.uczen-content #tab-profile .fieldset textarea,
[class*="stu-content"] #tab-profile .fieldset textarea,
[class*="student-content"] #tab-profile .fieldset textarea,
[class*="uczen-content"] #tab-profile .fieldset textarea,
body.page-template-panel-ucznia #tab-profile .fieldset textarea,
body.page-id-panel-ucznia #tab-profile .fieldset textarea,
[data-page="panel-ucznia"] #tab-profile .fieldset textarea {
    min-height: 120px;
    resize: vertical;
}

.stu-content #tab-profile .fieldset img,
.student-content #tab-profile .fieldset img,
.uczen-content #tab-profile .fieldset img,
[class*="stu-content"] #tab-profile .fieldset img,
[class*="student-content"] #tab-profile .fieldset img,
[class*="uczen-content"] #tab-profile .fieldset img,
body.page-template-panel-ucznia #tab-profile .fieldset img,
body.page-id-panel-ucznia #tab-profile .fieldset img,
[data-page="panel-ucznia"] #tab-profile .fieldset img {
    max-width: 160px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 12px;
    display: block;
}

.stu-content #tab-profile button[type="submit"],
.student-content #tab-profile button[type="submit"],
.uczen-content #tab-profile button[type="submit"],
[class*="stu-content"] #tab-profile button[type="submit"],
[class*="student-content"] #tab-profile button[type="submit"],
[class*="uczen-content"] #tab-profile button[type="submit"],
body.page-template-panel-ucznia #tab-profile button[type="submit"],
body.page-id-panel-ucznia #tab-profile button[type="submit"],
[data-page="panel-ucznia"] #tab-profile button[type="submit"] {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3A7BD5;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.3);
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    margin-top: 20px;
}

.stu-content #tab-profile button[type="submit"]:hover,
.student-content #tab-profile button[type="submit"]:hover,
.uczen-content #tab-profile button[type="submit"]:hover,
[class*="stu-content"] #tab-profile button[type="submit"]:hover,
[class*="student-content"] #tab-profile button[type="submit"]:hover,
[class*="uczen-content"] #tab-profile button[type="submit"]:hover,
body.page-template-panel-ucznia #tab-profile button[type="submit"]:hover,
body.page-id-panel-ucznia #tab-profile button[type="submit"]:hover,
[data-page="panel-ucznia"] #tab-profile button[type="submit"]:hover {
    background-color: #2a5fa5;
    box-shadow: 0 4px 20px rgba(58, 123, 213, 0.4);
}

/* ============================================
   Style przeniesione z plików PHP
   ============================================ */

/* ============================================
   Style ogólne (bez media queries)
   ============================================ */

/* Modal - wspólny dla obu paneli */


/* ============================================
   Media Queries - od największych do najmniejszych
   ============================================ */

/* Tablet - średnie ekrany */
@media (min-width: 481px) and (max-width: 991px) {
    .tutor-dashboard {
        padding: 20px;
    }

    .tutor-tabs {
        padding: 20px;
    }

    .tutor-content {
        padding: 20px;
    }

    .booking-list.booking-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .bookings-filters {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .bookings-filters > div {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 991px) {
    /* Odstęp pod fixed/sticky nagłówek — treść zaczyna się pod paskiem menu */
    body.page-template-panel-nauczyciela #site-content,
    body.page-template-single-post-uczen #site-content {
        padding-top: max(96px, calc(env(safe-area-inset-top, 0px) + 80px));
        box-sizing: border-box;
    }

    .student-dashboard-wrapper {
        padding: 20px 15px 50px;
    }

    .student-dashboard {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .student-auth-wrap {
        width: calc(100% - 32px);
    }

    .student-auth-wrap p,
    .student-auth-wrap a {
        font-size: 14px;
    }

    .tutor-auth-wrap {
        width: calc(100% - 32px);
    }

    .tutor-auth-wrap p,
    .tutor-auth-wrap a {
        font-size: 14px;
    }

    .stu-tabs {
        position: relative;
        top: auto;
        width: 100%;
        max-width: 100%;
        left: auto !important;
    }

    /* Wyższa specyficzność niż body.page-template-panel-ucznia aside { position:fixed } — na mobile boczne menu ma być w układzie kolumny, nie pod nagłówkiem */
    .student-dashboard-wrapper > aside.stu-tabs,
    body.page-template-panel-ucznia .student-dashboard-wrapper > aside.stu-tabs,
    body.page-template-single-post-uczen .student-dashboard-wrapper > aside.stu-tabs,
    body.page-id-panel-ucznia .student-dashboard-wrapper > aside.stu-tabs {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        max-height: none;
        z-index: auto;
    }

    .stu-content {
        width: 100%;
        margin-left: 0;
    }

    .tutor-dashboard {
        flex-direction: column;
        padding: 16px;
        margin-top: 20px;
        gap: 16px;
    }

    .tutor-tabs {
        position: relative;
        top: auto;
        width: 100%;
        max-width: 100%;
        left: auto !important;
        padding: 16px;
        margin-bottom: 0;
    }

    .tutor-dashboard > aside.tutor-tabs,
    body.page-template-panel-nauczyciela .tutor-dashboard > aside.tutor-tabs {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        max-height: none;
        z-index: auto;
    }

    .tutor-content {
        width: 100%;
        margin-left: 0;
        padding: 16px;
    }

    .tutor-tab-save .tutor-save-btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        white-space: normal;
        word-wrap: break-word;
    }

    .bookings-filters {
        flex-direction: column;
        gap: 12px;
    }

    .bookings-filters > div {
        width: 100%;
        min-width: 0;
    }

    .manual-block-form {
        padding: 12px !important;
    }

    .manual-block-form form {
        flex-direction: column;
        gap: 12px;
    }

    .manual-block-form form > div {
        width: 100%;
        min-width: 0;
    }

    #single-block-fields,
    #range-block-fields {
        flex-direction: column;
        width: 100%;
    }

    #single-block-fields > div,
    #range-block-fields > div {
        width: 100%;
        min-width: 0;
    }

    .tutor-cal {
        font-size: 12px;
        overflow-x: auto;
        display: block;
    }

    .tutor-cal th,
    .tutor-cal td {
        padding: 6px 4px;
        font-size: 11px;
    }

    .tutor-cal td .cal-hours {
        flex-direction: column;
        gap: 4px;
    }

    .tutor-cal td .cal-hours li {
        font-size: 10px;
        padding: 2px 4px;
    }

    .booking-actions {
        flex-direction: column;
    }

    .booking-actions .btn {
        width: 100%;
    }

    .tutor-calendar {
        margin: 16px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tutor-cal {
        min-width: 600px;
    }

    .tutor-cal-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tutor-cal-nav strong {
        width: 100%;
        text-align: center;
        margin: 8px 0;
    }

    .tutor-profile-info {
        margin-bottom: 16px !important;
    }

    .acf-fields-target {
        margin-top: 16px;
    }

    .tutor-content .acf-fields {
        border-radius: 12px;
    }

    .tutor-content .acf-field {
        padding: 10px;
    }

    .bookings-filters[style*="flex"] {
        flex-direction: column !important;
    }

    .bookings-filters[style*="flex"] > div[style*="flex"] {
        width: 100% !important;
        min-width: 0 !important;
    }

    .manual-block-form[style*="flex"] {
        flex-direction: column !important;
    }

    .manual-block-form form[style*="flex"] {
        flex-direction: column !important;
    }

    .manual-block-form form > div[style*="flex"] {
        width: 100% !important;
        min-width: 0 !important;
        flex-direction: column !important;
    }

    .manual-block-form form > div[style*="flex"] > div {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* Mobile - najmniejsze ekrany (na końcu) */
@media (max-width: 480px) {
    .tutor-dashboard {
        padding: 12px;
        margin-top: 120px;
    }

    header {
        background-color: var(--white);
        padding: 15px 0;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        transition: transform 0.3s ease;
        min-height: 100px;
    }

    .tutor-tabs {
        padding: 12px;
        border-radius: 16px;
    }

    .tutor-tabs h2 {
        font-size: 14px;
    }

    .tutor-tabs .tab-link {
        padding: 10px 12px;
        font-size: 13px;
        margin: 3px 0;
    }

    .tutor-content {
        padding: 12px;
        border-radius: 16px;
    }

    .tutor-content h2 {
        font-size: 18px;
    }

    .booking-item {
        padding: 12px;
    }

    .booking-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .booking-status-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .tutor-cal-nav {
        flex-wrap: wrap;
        gap: 8px;
    }

    .tutor-cal-nav .btn-nav {
        font-size: 11px;
        padding: 6px 10px;
    }

    .bookings-filters {
        padding: 12px;
    }

    .bookings-filters label {
        font-size: 13px;
    }

    .bookings-filters input,
    .bookings-filters select {
        font-size: 14px;
        padding: 8px;
    }

    .manual-block-form h4 {
        font-size: 14px;
    }

    .manual-block-form label {
        font-size: 13px;
    }

    .manual-block-form input,
    .manual-block-form select {
        font-size: 14px;
        padding: 8px;
    }

    .manual-block-form button {
        width: 100%;
        padding: 10px;
    }

    .tutor-tab-save .tutor-save-btn {
        width: 100%;
        max-width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        box-sizing: border-box;
        white-space: normal;
        word-wrap: break-word;
    }

    .tab-pane .acf-field {
        padding: 10px;
    }

    .tab-pane .acf-label {
        font-size: 13px;
    }

    .tab-pane .acf-input input,
    .tab-pane .acf-input textarea,
    .tab-pane .acf-input select {
        font-size: 14px;
        padding: 10px;
    }

    .tutor-profile-info {
        padding: 12px !important;
    }

    .tutor-profile-info h2 {
        font-size: 16px !important;
    }

    .tutor-profile-info p {
        font-size: 14px !important;
    }

    .tutor-content h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .tutor-content h3 {
        font-size: 16px;
    }

    .tutor-tab-save .tutor-save-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }

    .bookings-filters[style*="flex"] > div[style*="flex"] {
        flex: 1 1 100% !important;
    }

    .manual-block-form form > div[style*="flex"] > div {
        flex: 1 1 100% !important;
    }
}

@media (max-width: 768px) {
    .student-content .booking-list.booking-grid,
    .uczen-content .booking-list.booking-grid,
    .stu-content .booking-list.booking-grid,
    .student-booking-list.booking-list.booking-grid,
    [class*="student-content"] .booking-list.booking-grid,
    [class*="uczen-content"] .booking-list.booking-grid,
    [class*="stu-content"] .booking-list.booking-grid,
    body.page-template-panel-ucznia .booking-list.booking-grid,
    body.page-id-panel-ucznia .booking-list.booking-grid,
    [data-page="panel-ucznia"] .booking-list.booking-grid {
        grid-template-columns: 1fr;
    }
    div#register, .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .booking-list.booking-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    div#tab-offers .acf-repeater.-row {
        padding: 0;
    }

    .tab-pane .acf-field {
        padding: 0;
    }


    div#tab-profile .acf-fields-target {
        flex-direction: column;
    }

    .tab-pane .acf-field[data-name="opis_wlasny"] {
        width: 100%;
    }

    .registration-template {
        padding: 20px;
    }
}

/* System ocen korepetytora */
.mw-tutor-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #FFC107;
}
.mw-tutor-stars .mw-star-full { color: #FFC107; }
.mw-tutor-stars .mw-star-half {
    display: inline-block;
    width: 0.5em;
    overflow: hidden;
    color: #FFC107;
}
.mw-tutor-stars .mw-star-empty { color: #ddd; }
.mw-tutor-stars .mw-star-count {
    margin-left: 6px;
    font-size: 0.9em;
    color: #666;
    font-weight: normal;
}
.offer-rating {
    margin-top: 6px;
}
.offer-rating-wrap {
    list-style: none;
}
.korepetytor-rating {
    margin-top: 8px;
    font-size: 1.1em;
}
.btn-rate {
    background: var(--accent-color) !important;
    margin-right: 8px;
}
.booking-rating-display {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}
.booking-rating-display .rating-value { font-weight: 600; color: #333; }

/* Modal oceny */
.mw-rating-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.mw-rating-modal[hidden] { display: none !important; }
.mw-rating-modal-box {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.mw-rating-modal-box h3 { margin: 0 0 12px; }
.mw-rating-stars-input {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}
.mw-star-btn {
    padding: 8px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}
.mw-star-btn:hover, .mw-star-btn.selected {
    border-color: #FFC107;
    background: #FFF9E6;
    color: #B8860B;
}
.mw-rating-value-display { margin: 8px 0 16px; font-weight: 600; }
.mw-rating-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

/* Formularz rezerwacji – pole email tylko do odczytu */
.booking-form form.elementor-form input[type="email"][readonly],
.booking-form form.elementor-form input[name="email"][readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Tryb LIVE – zakładka spotkań online */
.mw-live-desc {
    margin-bottom: 24px;
    color: #666;
    font-size: 15px;
}
.mw-live-empty {
    padding: 24px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}
.mw-live-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mw-live-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.mw-live-item-main {
    flex: 1;
    min-width: 200px;
}
.mw-live-item-main strong { display: block; margin-bottom: 4px; }
.mw-live-topic { color: #666; font-size: 14px; }
.mw-live-date { font-size: 13px; color: #888; margin-top: 4px; }
.btn-live-join {
    padding: 10px 20px;
    background: #4CAF50;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: background 0.2s;
}
.btn-live-join:hover {
    background: #43A047;
}

/* =========================================
   Karty ofert – sekcja szczegółów z ramką
   =========================================
   Karty w sekcji "Inne oferty tego nauczyciela" (.inne)
   mają cienkie pomarańczowe ramki zamiast niebieskich
   ========================================= */

.inne .offer-card {
    border-color: #FF7D33;
    border-width: 1px;
    box-shadow: 0 1px 6px rgba(255, 125, 51, 0.08);
}

.inne .offer-card:hover {
    box-shadow: 0 4px 14px rgba(255, 125, 51, 0.18);
}

.inne .offer-card .offer-meta {
    border-color: #FF7D33;
    background: #fff8f4;
}

.inne .offer-card .offer-desc,
.inne .offer-card .offer-rating {
    border-top-color: #ffdcc6;
}

.inne .offer-card .offer-title a {
    color: #cc5500;
}

.inne .offer-card .offer-tutor a {
    color: #cc5500;
}
.offer-card .offer-meta {
    border: 1.5px solid #3A7BD5;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #f5f9ff;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.offer-card .offer-meta > div {
    font-size: 13px;
    color: #444;
    line-height: 1.4;
}

.offer-card .offer-meta strong {
    color: #222;
    font-weight: 600;
}

.offer-card .offer-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.45;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid #d6e4f7;
}

.offer-card .offer-rating {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #d6e4f7;
}

.offer-card .offer-actions .btn {
    font-size: 12px;
    margin-top: 10px;
    padding: 0;
}