/* Minimal reset */
* { box-sizing: border-box; }
html,body { height: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f4f7fb; /* very light bluish like on screenshot */
  color: #1b1b1b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* layout container */
:root{
  --wrap-width: 1080px;
  --accent: #3e3aa8; /* purple/indigo used for links and small accents */
  --btn-bg: #4a3fbf;  /* button purple */
  --rule: #d6d6d6;
}

/* reusable wrap */
.wrap{
  width: 92%;
  max-width: var(--wrap-width);
  margin: 0 auto;
}

/* HEADER */
.site-header{
  background: transparent;
  padding: 18px 0 8px 0;
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand .site-title{
  font-size: 1rem;
  line-height: 1.05;
  font-weight: 600;
  color: #111;
  margin: 0;
}
.brand .site-title span{
  font-weight: 400;
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(0,0,0,0.08);
}

/* nav */
.main-nav ul{
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 6px 0 0 0;
  padding: 0;
  align-items: center;
  font-size: 0.95rem;
}
.main-nav a{
  color: var(--accent);
  text-decoration: none;
  padding: 6px 2px;
  transition: color .15s ease;
}
.main-nav a:hover{
  color: #2b2a6f;
}

/* thin rule under intro */
.thin-rule{
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* Intro section with large centered "Misja" */
.intro{
  text-align: center;
  padding-top: 10px;
  margin-bottom: 14px;
}
.page-title{
  font-size: 36px;
  margin: 16px 0;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #111;
}
.mission-text{
  max-width: 760px;
  margin: 0 auto 30px auto;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  padding: 0 6px;
}

/* HERO image area */
.hero-wrap{
  position: relative;
  background: #fff;
  padding-bottom: 40px; /* room for overlapping box */
}
.hero-img{
  display: block;
  width: 100%;
  max-width: var(--wrap-width);
  margin: 0 auto;
  height: auto;
  box-shadow: none;
}

/* Priorities box overlapping the image */
.priorities-box{
  position: relative;
  margin-top: -90px; /* pulls it up to overlap the image as on screenshot */
  display: flex;
  justify-content: center;
  pointer-events: none; /* keep image clicks if needed */
}
.priorities-card{
  pointer-events: auto;
  background: #ffffff;
  width: 58%;
  min-width: 320px;
  border-radius: 4px;
  box-shadow: 0 6px 28px rgba(20,30,50,0.08);
  padding: 22px 28px;
  text-align: left;
}
.priorities-card h3{
  text-align:center;
  margin: 6px 0 12px 0;
  color: #222;
  font-size: 20px;
  font-weight: 600;
}
.priorities-card ol{
  margin-left: 18px;
  color: #333;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 18px;
}
.cta{ text-align:center; margin-top: 8px; }
.btn{
  display: inline-block;
  background: var(--btn-bg);
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 13px;
}
.btn:hover{ background: #3a34a0; }

/* NEWS & EVENTS section */
.news{
  padding: 60px 0 80px 0;
}
.news-heading{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  margin-bottom: 24px;
}
.news-heading .thin-rule.left,
.news-heading .thin-rule.right{
  width: 26%;
  border-top:1px solid var(--rule);
}
.news-title-box{
  background: #eef1f8;
  padding: 8px 18px;
  font-weight: 600;
  color: #333;
  border-radius: 2px;
  box-shadow: none;
}

/* news content: mimic left-aligned long text area from screenshot */
.news-content{
  max-width: 820px;
  margin: 0 auto;
  color: #222;
  font-size: 13px;
  line-height: 1.6;
}
.news-article{ margin-bottom: 26px; }
.news-article-title{ font-weight:700; margin-bottom: 8px; color: #222; font-size: 15px; }
.news-article-intro{ margin-bottom: 8px; color: #333; }
.event-meta p{ margin:6px 0; color:#444; font-size: 13px; }

/* "czytaj więcej" link */
.link-more{ color: var(--accent); text-decoration: underline; font-weight:600; }

/* Footer */
.site-footer{
  margin-top: 32px;
  border-top: 1px solid var(--rule);
  padding: 20px 0 40px 0;
  background: transparent;
}
.footer-inner{
  text-align:center;
  color:#333;
  font-size: 13px;
}
.accessibility-link{
  color: var(--accent);
  font-weight:600;
  text-decoration:none;
}
.accessibility-link:hover{ text-decoration:underline; }

/* Responsive adjustments */
@media (max-width: 980px){
  .priorities-card{ width: 75%; margin: 0 12px; }
  .hero-img{ width: 100%; }
  .main-nav ul{ gap: 14px; flex-wrap: wrap; justify-content:center; }
}
@media (max-width: 520px){
  .page-title{ font-size: 26px; }
  .mission-text{ font-size: 14px; padding: 0 12px; }
  .priorities-card{ width: 92%; margin-top: -60px; padding: 16px; }
  .news-heading .thin-rule.left, .news-heading .thin-rule.right{ display:none; }
  .news-title-box{ width: 100%; text-align:center; display:inline-block; }
  .main-nav ul{ gap: 10px; font-size: 13px; }
}


/* Deklaracja dostępności */
.declaration-content {
  background: #ffffff;
  padding: 32px 36px;
  border-radius: 6px;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.08);
  color: #222;
  line-height: 1.65;
  font-size: 14px;
  margin-bottom: 60px;
}

.declaration-content h3 {
  color: #111;
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}

.declaration-content ul {
  margin-left: 24px;
  margin-bottom: 16px;
}

.declaration-content a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.declaration-content a:hover {
  text-decoration: underline;
}




/* ---- PROJEKTY ---- */
.projects {
  margin-top: 40px;
  margin-bottom: 80px;
}

.project-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 28px;
  margin-bottom: 24px;
}

.project-image {
  flex: 0 0 38%;
  max-width: 38%;
}

.project-image img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  display: block;
}

.project-content {
  flex: 1;
  min-width: 300px;
  color: #1a1a1a;
  font-size: 14px;
  line-height: 1.55;
}

.project-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin: 0 0 8px;
}

.project-content p {
  margin: 0 0 12px;
  text-align: justify;
}

.link-more {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
  font-size: 13px;
}

.link-more:hover {
  color: #2c2a7e;
}

/* Responsywność */
@media (max-width: 860px) {
  .project-item {
    flex-direction: column;
  }
  .project-image {
    max-width: 100%;
    flex: 0 0 100%;
  }
}




/* ---- ARCHIWALNE PROJEKTY ---- */
.projects {
  margin-top: 40px;
  margin-bottom: 80px;
}

.project-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 28px;
  margin-bottom: 24px;
}

.project-image {
  flex: 0 0 38%;
  max-width: 38%;
}

.project-image img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  display: block;
}

.project-content {
  flex: 1;
  min-width: 300px;
  color: #1a1a1a;
  font-size: 14px;
  line-height: 1.55;
}

.project-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin: 0 0 8px;
}

.project-content p {
  margin: 0 0 12px;
  text-align: justify;
}

.link-more {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
  font-size: 13px;
}

.link-more:hover {
  color: #2c2a7e;
}

.more-projects {
  text-align: center;
  font-style: italic;
  font-size: 20px;
  margin-top: 40px;
  color: #222;
}

/* Responsywność */
@media (max-width: 860px) {
  .project-item {
    flex-direction: column;
  }
  .project-image {
    max-width: 100%;
    flex: 0 0 100%;
  }
}



/* ---- PUBLIKACJE ---- */
.hero-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 350px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-text {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 20px;
  border-radius: 5px;
  text-align: center;
}

.hero-text h2 {
  font-size: 22px;
  font-weight: 600;
  color: #111;
}

.publications {
  margin-top: 40px;
  margin-bottom: 80px;
}

.publication {
  margin-bottom: 40px;
}

.publication h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
  text-align: center;
}

.publication p {
  font-size: 14px;
  line-height: 1.65;
  text-align: justify;
  margin-bottom: 16px;
}

.pub-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn-primary,
.btn-secondary {
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-primary {
  background-color: #3e3aa8;
  color: #fff;
}

.btn-primary:hover {
  background-color: #2a2890;
}

.btn-secondary {
  border: 1.5px solid #3e3aa8;
  color: #3e3aa8;
}

.btn-secondary:hover {
  background-color: #3e3aa8;
  color: #fff;
}






/*Przycisk czytaj więcej */
.panel-wrapper {
  position: relative;
}
.show, .hide {
  position: absolute;
  bottom: -2em;
  z-index: 100;
  text-align: center;
}

.hide {display: none;}
.show:target {display: none;}
.show:target ~ .hide {display: block;}
.show:target ~ .panel {
   max-height: 2000px; 
}
.show:target ~ .fade {
  margin-top: 0;
}

.panel {
  position: relative;
  margin: 2em auto;
  /*width: 70%;*/
  max-height: 180px;
  overflow: hidden;
  transition: max-height .5s ease;
}
/*drugi przycisk*/
.panel-wrapper2 {
  position: relative;
}

.show2, .hide2 {
  position: absolute;
  bottom: -3em;
  z-index: 100;
  text-align: center;
}

.hide2 {display: none;}
.show2:target {display: none;}
.show2:target ~ .hide2 {display: block;}
.show2:target ~ .panel2 {
   max-height: 2000px; 
}
.show2:target ~ .fade {
  margin-top: 0;
}
.panel2 {
  position: relative;
  margin: 2em auto;
  /*width: 70%;*/
  max-height: 180px;
  overflow: hidden;
  transition: max-height .5s ease;
}
/*trzecii przycisk*/
.panel-wrapper3 {
  position: relative;
}

.show3, .hide3 {
  position: absolute;
  bottom: -3em;
  z-index: 100;
  text-align: center;
}

.hide3 {display: none;}
.show3:target {display: none;}
.show3:target ~ .hide3 {display: block;}
.show3:target ~ .panel3 {
   max-height: 2000px; 
}
.show2:target ~ .fade {
  margin-top: 0;
}
.panel3 {
  position: relative;
  margin: 2em auto;
  /*width: 70%;*/
  max-height: 180px;
  overflow: hidden;
  transition: max-height .5s ease;
}
/*czwarty przycisk*/
.panel-wrapper4 {
  position: relative;
}

.show4, .hide4 {
  position: absolute;
  bottom: -3em;
  z-index: 100;
  text-align: center;
}

.hide4 {display: none;}
.show4:target {display: none;}
.show4:target ~ .hide4 {display: block;}
.show4:target ~ .panel4 {
   max-height: 2000px; 
}
.show4:target ~ .fade {
  margin-top: 0;
}
.panel4 {
  position: relative;
  margin: 2em auto;
  /*width: 70%;*/
  max-height: 180px;
  overflow: hidden;
  transition: max-height .5s ease;
}