/* =======================================================
    GŁÓWNE STYLE DLA PODSTRONY "O MNIE"
    o-mnie.css
   ======================================================= */

/* --- Import czcionki i globalne style --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f9f9f9;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 60px;
}

/* --- Nagłówek i Nawigacja --- */
.header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    top: 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 50px;
    padding: 15px 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #1F8D4F;
}

.nav-link .fa-chevron-down {
    font-size: 0.7rem;
    margin-left: 5px;
}

.social-media {
    display: flex;
    gap: 20px;
}

.social-media a {
    font-size: 1.2rem;
    color: #555;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-media a:hover {
    color: #1F8D4F;
    transform: scale(1.1);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 15px;
    padding: 10px 0;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, top 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    top: 120%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #555;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu li a:hover {
    background-color: #f0f0f0;
    color: #1F8D4F;
}

/* === NOWE STYLE DLA MENU MOBILNEGO (ukryte na desktopie) === */
.hamburger {
    display: none;
    z-index: 1002;
}
.mobile-sidebar {
    display: none;
}
.mobile-overlay {
    display: none;
}

/* =========================
   HERO SECTION - O MNIE
   ========================= */
.about-hero-section {
  padding-top: 150px;
  padding-bottom: 80px;
  background: #fff;
}

.about-hero-section .container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-hero-section .hero-image {
  display: flex;
  justify-content: center;
}

.about-hero-section .hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-hero-section .hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.about-hero-section .hero-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
  max-width: 600px;
}

/* =========================
   SPECJALIZACJA
   ========================= */
.specialization-section {
  padding: 100px 0;
  background: #f9f9f9;
}

.specialization-section .container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.specialization-section .specialization-image img {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    object-fit: cover;
    object-position: top;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    /* WYCENTROWANIE W POZIOMIE */
    display: block;
    margin: 0 auto;
}

.specialization-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.specialization-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

.specialization-list {
    margin: 20px 0 0;
    padding-left: 0;
    list-style: none;
}

.specialization-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 14px;
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

.specialization-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1F8D4F, #0C5D30);
}

/* --- Sekcja "Doświadczenie w liczbach" --- */
.experience-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    background-color: #f9f9f9;
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1F8D4F, #0C5D30);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-card p {
    font-size: 1rem;
    color: #555;
    margin-top: 10px;
}


/* --- Sekcja "Kursy i szkolenia" (Karuzela) --- */
.courses-section {
    padding: 100px 0;
    overflow: hidden;
    background-color: #f9f9f9;
}

.courses-carousel-wrapper {
    position: relative;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.courses-carousel {
    display: flex;
    gap: 30px;
    padding: 20px 0;
}

.courses-carousel-wrapper:hover .courses-carousel {
    animation-play-state: paused;
}

.course-card {
    position: relative;
    flex: 0 0 300px;
    background-color: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.course-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    min-height: 2.5em;
    color: #333;
}

.course-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #555;
}

.course-logo {
    position: absolute;
    bottom: 15px;
    right: 20px;
    max-width: 60px;
    max-height: 25px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.course-card:hover .course-logo {
    opacity: 1;
}

.expand-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #1F8D4F, #0C5D30);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.course-card:hover .expand-icon {
    opacity: 0.8;
    transform: scale(1.1);
}


/* --- Stopka (Sekcja Kontaktowa) --- */
.contact-section {
    padding: 100px 20px;
    color: #f9f9f9;
    background-color: #333;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.newsletter-side h3, .contact-info-side h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.newsletter-side p, .contact-info-side p {
    font-size: 1rem;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-form input {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #555;
    background-color: #444;
    color: #fff;
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: #aaa;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #1F8D4F, #0C5D30);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.02) translateY(-2px);
    filter: brightness(110%);
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-item i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #1F8D4F, #0C5D30);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-social-media {
    display: flex;
    gap: 25px;
}

.footer-social-media a {
    font-size: 1.5rem;
    color: #ccc;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-media a:hover {
    color: #1F8D4F;
    transform: scale(1.1);
}

/* --- Style dla animacji na scroll --- */
.specialization-section,
.experience-section,
.courses-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.specialization-section.is-visible,
.experience-section.is-visible,
.courses-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Style dla Modala (spójne ze stroną główną) --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
    transition: all 0.3s ease;
    z-index: 2;
}

.modal-close:hover {
    background: linear-gradient(135deg, #1F8D4F, #0C5D30);
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}


.modal-icon-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-author { flex: 1; }

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.modal-organizer {
    font-size: 1rem;
    color: #666;
}

.modal-body {
    line-height: 1.8;
}

.modal-description {
    font-size: 1rem;
    color: #555;
}

body.modal-open {
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- Style dla nawigacji karuzeli (domyślnie ukryte) --- */
.carousel-nav {
    display: none;
}

/* --- Style dla aktywnych linków --- */

/* Delikatne tło dla każdego aktywnego elementu LI */
.mobile-menu li.active-page {
    position: relative;
    background-color: rgba(31, 141, 79, 0.05);
}

/* --- Style dla ZIELONEJ KRESKI --- */

/* 1. Kreska dla ZWYKŁYCH linków (np. "O mnie", "Kontakt") */
.mobile-menu > .mobile-nav-item.active-page:not(.mobile-dropdown)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 4px;
    background-color: #1F8D4F;
    border-radius: 2px;
}

/* 2. Kreska TYLKO dla GŁÓWNEGO linku "Oferta" (gdy jest aktywny) */
.mobile-dropdown-header {
    position: relative;
}
.mobile-dropdown.active-page > .mobile-dropdown-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 4px;
    background-color: #1F8D4F;
    border-radius: 2px;
}

/* 3. Kreska dla elementów WEWNĄTRZ menu rozwijanego */
.mobile-dropdown-menu li.active-page::before {
    content: '';
    position: absolute;
    left: 20px; /* Wcięcie dla lepszej czytelności */
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 4px;
    background-color: #1F8D4F;
    border-radius: 2px;
}


/* --- Style dla POGRUBIENIA tekstu --- */

/* Pogrubienie dla aktywnych linków głównych (w tym "Oferta") */
.mobile-menu > .mobile-nav-item.active-page > a,
.mobile-dropdown.active-page > .mobile-dropdown-header > .mobile-nav-link {
    color: #1F8D4F;
    font-weight: 600;
}

/* Pogrubienie dla aktywnych linków w menu rozwijanym */
.mobile-dropdown-menu li.active-page > a {
    color: #1F8D4F;
    font-weight: 600;
}

/* Pogrubienie dla "Oferta", gdy podstrona w środku jest aktywna */
.mobile-dropdown.has-active-child > .mobile-dropdown-header > .mobile-nav-link {
    color: #1F8D4F;
    font-weight: 600;
}

/* =========================
   RESPONSYWNOŚĆ (wzorzec)
   ========================= */
@media (max-width: 992px) {
  .about-hero-section {
    height: auto;
    min-height: 100vh;
    padding: 100px 30px 40px;
  }

  .about-hero-section .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .about-hero-section .hero-image {
    order: -1;
  }

  .about-hero-section .hero-image img {
    width: 100%;
    max-width: 358px;
    height: auto;
    border-radius: 15px;
    margin: 0 auto;
  }

  .about-hero-section .hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
  }

  .about-hero-section .hero-content p {
    margin: 0 auto 15px;
    font-size: 1rem;
    line-height: 1.8;
  }
}

@media (max-width: 768px) {
  .about-hero-section {
    height: auto;
    min-height: 100vh;
    padding: 100px 20px 40px;
  }

  .about-hero-section .hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .about-hero-section .hero-content p {
    font-size: 0.95rem;
    margin: 0 auto 12px;
  }
}

@media (max-width: 480px) {
  .about-hero-section {
    padding: 140px 15px 30px;
    min-height: auto;
  }

  .about-hero-section .container {
    gap: 30px;
  }

  .about-hero-section .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 15px;
  }

  .about-hero-section .hero-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
  }
}

/* STOPNIOWE ZMNIEJSZANIE OBRAZU */
@media (max-width: 450px) {
  .about-hero-section .hero-image img {
    max-width: 360px;
  }
}

@media (max-width: 400px) {
  .about-hero-section .hero-image img {
    max-width: 320px;
  }
}

@media (max-width: 375px) {
  .about-hero-section .hero-image img {
    max-width: 280px;
  }
}

/* =========================
   FOOTER - DESKTOP
   ========================= */
.footer-main {
    background-color: #2a2a2a;
    color: #e0e0e0;
    padding: 40px 50px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #444;
}

.footer-contact {
    text-align: left;
}

.footer-contact p {
    margin: 8px 0;
}

.footer-contact a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #1F8D4F;
}

.footer-social {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    justify-content: center;
}

.footer-social-link:hover {
    color: #1F8D4F;
}

.footer-social-link i {
    font-size: 1.1rem;
}

.footer-links {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #1F8D4F;
}

.footer-bottom {
    border-top: 1px solid #444;
    text-align: center;
    padding-top: 15px;
    margin-top: 30px;
    color: #999;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}