/* Modern Navbar Styles */
.navbar-modern {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
    min-height: 60px;
    transition: all 0.3s ease;
    z-index: 1030;
}

.navbar-modern.scrolled {
    background: rgba(0, 0, 0, 0.75) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.navbar-logo {
    width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-modern .navbar-nav {
    gap: 0.5rem;
}

.navbar-modern .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    position: relative;
}

.navbar-modern .nav-link i {
    font-size: 1.1rem;
}

.navbar-modern .nav-link:hover {
    color: #ffc107 !important;
    background: rgba(255, 193, 7, 0.1);
    transform: translateY(-2px);
}

.navbar-modern .nav-link.active {
    color: #ffc107 !important;
    background: rgba(255, 193, 7, 0.15);
}

.navbar-modern .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: #ffc107;
    border-radius: 2px;
}

.nav-link-cta {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%) !important;
    color: #383838 !important;
    font-weight: 500 !important;
    margin: 0 0.5rem;
    border-radius: 8px !important;
}

.nav-link-cta * {
    color: #383838 !important;
}

.nav-link-cta:hover {
    background: linear-gradient(135deg, #ffb300 0%, #ffa000 100%) !important;
    color: #383838 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.nav-link-cta:hover * {
    color: #383838 !important;
}

.nav-link-login {
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link-logout {
    color: #ffcc80 !important;
}

.navbar-modern .navbar-toggler {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
}

.navbar-modern .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.navbar-modern .navbar-toggler-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: transform 0.3s ease;
    opacity: 0.9;
    display: block;
    background: transparent;
    background-color: transparent;
}

.navbar-modern .navbar-toggler[aria-expanded='true'] .navbar-toggler-icon {
    transform: rotate(90deg);
}

body {
    padding-top: 70px;
}

@media (min-width: 992px) {
    body {
        padding-top: 60px;
    }
    
    .navbar-modern {
        min-height: 60px;
        padding: 0.75rem 0;
    }
    
    .navbar-modern .navbar-nav {
        gap: 0.25rem;
    }
}

@media (max-width: 991px) {
    .navbar-modern {
        padding: 1rem;
        min-height: 70px;
    }
    
    .navbar-modern .container-fluid {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    .navbar-brand {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        padding: 0;
        margin: 0;
        z-index: 1;
    }
    
    .navbar-toggler {
        position: relative;
        z-index: 2;
        margin-left: auto;
        margin-right: 0;
        order: 1;
    }
    
    .navbar-modern .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 0;
    }
    
    .navbar-modern .nav-link.active::after {
        display: none;
    }
    
    .nav-link-cta {
        margin: 0.5rem 0;
    }
    
    .navbar-collapse {
        width: 100vw;
        position: fixed;
        top: 70px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.5rem 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 1025;
    }
    
    /* Smooth collapse animation */
    .navbar-collapse.collapsing {
        transition: height 0.35s ease;
    }
}

.tp-card {
    min-height:50px
}

.tp-titles{
  font-size:50px
}

@media (max-width: 1200px) {
    .row > [class*='col-'] {
        margin-bottom: 15px; /* Dodaj margines dolny do każdej kolumny w wierszu */
    }
}

.card-title {
    display: flex;
    flex-direction: column;
    justify-content: center; /* centruje wertykalnie */
    text-align: center; /* centruje poziomo tekst */
}
.content {
    height: 0;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    padding: 0;
    opacity: 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid transparent;
}

.content.show {
    height: auto;
    padding: 2rem;
    opacity: 1;
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.content p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.content ul {
    color: rgba(255, 255, 255, 0.95);
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.content h3 {
    color: #ffc107;
    font-family: 'Agbalumo', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.text-icons{
    width: 30px;
    filter: brightness(0) invert(1);
    -webkit-filter: brightness(0) invert(1);
}

/* CSS */
.button-86 {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  background: rgba(255, 193, 7, 0.15);
  border: 2px solid rgba(255, 193, 7, 0.3);
  border-radius: 8px;
  color: #ffc107;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-86:hover {
  background: rgba(255, 193, 7, 0.25);
  border-color: rgba(255, 193, 7, 0.5);
  color: #ffb300;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.button-86:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(255, 193, 7, 0.2);
}

.button-86 i {
  font-size: 1.1rem;
}


/* Certificate images optimization */
.certificate-card {
  border: none;
  background: transparent;
  transition: box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.certificate-img-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: block;
  -webkit-overflow-scrolling: touch;
}

.certificate-card.hover-active {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.certificate-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center center;
  will-change: transform, opacity;
  cursor: pointer;
  transform: scale(1);
  opacity: 1;
}

.certificate-img.hover-active {
  transform: scale(1.2) !important;
  opacity: 0.95 !important;
}

/* Disable hover effects on mobile */
@media (max-width: 768px) {
  .certificate-card.hover-active {
    box-shadow: none;
  }
  
  .certificate-img {
    cursor: default;
  }
  
  .certificate-img.hover-active {
    transform: scale(1);
    opacity: 1;
  }
}

/* Prevent touch dragging on mobile */
@media (max-width: 768px) {
  .certificate-img {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
  }
}

.certificate-img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.certificate-img[loading="lazy"].loaded {
  opacity: 1;
}

.certificates-row {
  margin-bottom: 0;
}

/* Ensure consistent spacing between rows and columns */
.certificates-row .col-12 {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .certificates-row .col-md-5 {
    margin-bottom: 1rem;
  }
}

/* Responsive optimizations */
@media (max-width: 768px) {
  .certificate-img {
    max-width: 100%;
  }
  
}

/* Image loading optimization */
.certificate-img {
  background: rgba(255, 255, 255, 0.02);
}

/* Certificate modal backdrop - darker background */
.modal-backdrop.show {
  opacity: 0.85 !important;
  background-color: rgba(0, 0, 0, 0.85) !important;
}

/* One-Page Design Styles */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  width: 100%;
}

body.login-page {
  overflow-y: hidden;
  height: 100vh;
}

.section {
  padding: 80px 0;
  position: relative;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -30px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 40px 20px;
}

.hero-title {
  font-family: 'Agbalumo', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-hero {
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  font-weight: 500;
}

.btn-primary-hero {
  background: #ffc107;
  color: #383838;
}

.btn-primary-hero:hover {
  background: #ffb300;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
  color: #383838;
}

.btn-primary-hero * {
  color: #383838;
}

.btn-primary-hero:hover * {
  color: #383838;
}

.btn-secondary-hero {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: pulse-gentle 2.5s ease-in-out infinite;
}

.btn-secondary-hero:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  color: white;
  animation: none;
}

@keyframes pulse-gentle {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
}

.hero-features {
  margin-top: 4rem;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.features-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  text-align: center;
}

.features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.features-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.6;
}

.features-list li:last-child {
  border-bottom: none;
}

.features-footer {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 10px 0;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-footer.show {
  opacity: 1;
}

.footer-logo {
  text-align: center;
  width: 120px;
  margin: 0 auto;
  opacity: 0.8;
  pointer-events: none;
}

.footer-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #ffc107;
  color: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: #ffb300;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.scroll-to-top:active {
  transform: translateY(-1px);
}

/* About Section */
.about-section {
  position: relative;
  color: white;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
}

.about-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.about-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.about-section .container {
  position: relative;
  z-index: 2;
}

.section-title {
  font-family: 'Agbalumo', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
  font-weight: 400;
}

.section-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 1.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
}

.section-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.goals-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.goals-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.goals-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ffc107;
  font-weight: bold;
  font-size: 1.2rem;
}

.about-section .row.align-items-start {
  align-items: flex-start;
}

.about-text-content {
  display: flex;
  flex-direction: column;
}

.about-photo {
  object-fit: cover;
  max-width: 100%;
  width: 100%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

@media (min-width: 992px) {
  .about-section .row.align-items-start {
    display: flex;
    align-items: stretch;
  }
  
  .about-section .row.align-items-start > div:first-child {
    display: flex;
    align-items: stretch;
    min-height: 100%;
  }
  
  .about-section .row.align-items-start .about-photo {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    align-self: stretch;
    display: block;
  }
  
  .about-section .row.align-items-start .about-text-content {
    display: flex;
    flex-direction: column;
  }
}

.map-container {
  margin-top: 2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Pricing Section */
.pricing-section {
  position: relative;
  color: white;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
}

.pricing-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.pricing-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.pricing-section .container {
  position: relative;
  z-index: 2;
}

.pricing-cards {
  margin-top: 2rem;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  height: 100%;
  backdrop-filter: blur(10px);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 193, 7, 0.3);
}

.pricing-header {
  background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
  color: #000;
  font-weight: bold;
  font-size: 1.25rem;
  border: none;
  border-radius: 12px 12px 0 0;
}

.pricing-card .card-body {
  padding: 2rem 1rem;
  color: white;
  margin-bottom: 0;
}

.pricing-card .card-body h5 {
  color: white;
  font-size: 1.15rem;
}

.pricing-card .card-footer {
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 12px 12px;
  color: rgba(255, 255, 255, 0.8) !important;
}

.pricing-card .card-footer.text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-hero {
    width: 100%;
    justify-content: center;
  }
  
  .hero-logo {
    width: 150px;
    bottom: 20px;
  }
  
  .about-photo {
    margin-bottom: 2rem;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    aspect-ratio: auto;
  }
  
  .pricing-cards .col-xl {
    margin-bottom: 1.5rem;
  }
  
  .pricing-card {
    padding: 0;
  }
  
  .pricing-card .card-header {
    padding: 0.75rem 1rem;
    font-size: 1.25rem;
  }
  
  .pricing-card .card-body {
    padding: 0.75rem 1rem;
    margin-bottom: 0;
  }
  
  .pricing-card .card-body h5 {
    font-size: 1.05rem;
    margin-bottom: 0;
  }
  
  .pricing-card .card-footer {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-top: 0;
  }
}

/* Smooth scroll offset for fixed navbar */
section[id] {
  scroll-margin-top: 80px;
}

@media (max-width: 991px) {
  section[id] {
    scroll-margin-top: 70px;
  }
}

/* Login Page Styles */
body:has(.login-section) {
  overflow-y: hidden !important;
  height: 100vh;
}

html:has(.login-section) {
  overflow-y: hidden !important;
  height: 100vh;
}

.login-section {
  height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.login-container {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-title {
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.login-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: center;
}

.login-link {
  color: #ffc107;
  text-decoration: none;
  transition: color 0.3s ease;
}

.login-link:hover {
  color: #ffb300;
  text-decoration: underline;
}

.login-form {
  margin-top: 2rem;
}

.login-label {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.login-form .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.login-form .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffc107;
  color: white;
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.login-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.login-submit-btn {
  background: #28a745;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.login-submit-btn:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.login-submit-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .login-container {
    padding: 2rem 1.5rem;
  }
  
  .login-title {
    font-size: clamp(4rem, 8vw, 4rem) !important;
  }
  
  .login-subtitle {
    font-size: 0.9rem;
  }
}