body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

header {
    background-color: #35424a;
    color: #ffffff;
    min-height: 70px;
    border-bottom: #e8491d 3px solid;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    background-color: #35424a;
    color: #ffffff;
    padding: 15px;
    text-align: center;
}

nav ul {
    padding: 0;
    list-style: none;
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
}

nav ul li {
    margin: 5px 10px; 
}

nav ul li a {
    display: inline-block;
    background-image: linear-gradient(to right, #e8491d, #e8851d);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    letter-spacing: 0.05em;
}

nav ul li a:hover {
    background-image: linear-gradient(to right, #e8851d, #e8491d);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.main-content, .sidebar {
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 20px;
    box-sizing: border-box;
}

.main-content {
    float: left;
    width: 75%;
}

.sidebar {
    float: right;
    width: 20%;
    position: relative; 
}

.user-panel-form {
    background-color: #ffffff;
    box-sizing: border-box;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 16px;
    line-height: 1.6;
}

.sidebar h3 {
    color: #35424a;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8491d;
}

.profile-pic {
    position: absolute;
    right: 20px;
    width: 100px;
    height: 100px;
    border: 3px solid #e8491d;
    border-radius: 8px;
    padding: 5px; 
    margin-bottom: 15px; 
    transition: transform 0.3s ease;	
}

.services-list {
    list-style: none;
    padding-left: 0;
}

.services-list li {
    margin-bottom: 10px;
    padding-left: 36px;
    position: relative;
}

.services-list i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #e8491d;
    font-size: 18px;
}

footer {
    background-color: #35424a;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.footer-links {
    font-weight: bold;
    color: #ffff;
    font-family: 'Font Awesome 5 Free';
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

.mySlides {
  display: none;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.naglowek {
    color: #e8491d; 
    font-size: 25px; 
    font-weight: bold; 
    padding: 12px 24px; 
    /* position: relative; */
    top: 8px; 
    max-width: 100%; 
    left: 0;
    right: 0;
    margin: auto; 
    text-align: center;
    background-color: #35424a; 
    border-radius: 10px; 
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3); 
    font-family: 'Arial', sans-serif; 
    letter-spacing: 1px; 
    line-height: 1.4; 
}

.text {
    color: #f2f2f2; 
    font-size: 25px; 
    font-weight: bold; 
    padding: 12px 24px; 
    position: absolute;
    top: 8px; 
    max-width: 85%; 
    left: 0;
    right: 0;
    margin: auto; 
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5); 
    border-radius: 10px; 
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3); 
    font-family: 'Arial', sans-serif; 
    letter-spacing: 1px; 
    line-height: 1.4; 
}

.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.btn {
	width: 90%;
    display: inline-block;
    background-image: linear-gradient(to right, #e8491d, #e8851d); 
    color: #ffffff; 
    padding: 10px 20px;
    border-radius: 5px; 
    text-decoration: none; 
    text-align: center;
    font-family: 'Montserrat', sans-serif; 
    font-weight: 500; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    transition: all 0.3s ease-in-out; 
    letter-spacing: 0.05em; 
}

.btn:hover {
    background-image: linear-gradient(to right, #e8851d, #e8491d); 
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); 
    transform: translateY(-2px);
}

.login-container, .user-panel-container {
    width: 100%;
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-form .form-group, .user-panel-form .form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #35424a;
}	

.form-group select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
}

.form-group input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.form-group textarea {
    width: 100%;
    height: 200px; 
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    resize: vertical;
}

.contact-form-container {
    width: 50%;
    max-width: 400px;
    margin: 10px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
				 
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.services-offered {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.service-item {
    width: 45%;
    margin-bottom: 20px;
    text-align: center;
}

.service-item img {
	width: 100px;
    border: 3px solid #e8491d;
    border-radius: 8px; 
    padding: 5px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.service-item img:hover {
    transform: scale(1.1);
}

.service-item h4 {
    margin: 10px 0;
}

.t {
    display: inline-block;
    background-image: linear-gradient(to right, #e8491d, #e8851d); 
    color: #ffffff; 
    padding: 10px 20px;
    border-radius: 5px; 
    text-decoration: none; 
    text-align: center;
    font-family: 'Montserrat', sans-serif; 
    font-weight: 500; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    transition: all 0.3s ease-in-out; 
    letter-spacing: 0.05em; 
}

.t:hover {
    background-image: linear-gradient(to right, #e8851d, #e8491d); 
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); 
    transform: translateY(-2px);
}

.accepted {
    display: inline-block;
    background-image: linear-gradient(to right, #62e81d, #2f6605);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none; 
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    transition: all 0.3s ease-in-out; 
    letter-spacing: 0.05em;
}

.accepted:hover {
    background-image: linear-gradient(to right, #2f6605, #62e81d);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); 
    transform: translateY(-2px);
}

.delete {
    display: inline-block;
    background-image: linear-gradient(to right, #fb1902, #a9241d);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none; 
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    transition: all 0.3s ease-in-out; 
    letter-spacing: 0.05em;
}

.delete:hover {
    background-image: linear-gradient(to right, #a9241d, #fb1902);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); 
    transform: translateY(-2px);
}

.view {
    display: inline-block;
    background-image: linear-gradient(to right, #0221fb, #051a66);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none; 
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    transition: all 0.3s ease-in-out; 
    letter-spacing: 0.05em;
}

.view:hover {
    background-image: linear-gradient(to right, #051a66, #0221fb);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); 
    transform: translateY(-2px);
}

.jobs-table {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 0;
}

.job {
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 15px;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-basis: calc(20% - 20px);
    box-sizing: border-box;
    max-width: calc(20% - 20px);	
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.jobb {
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 15px;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-basis: calc(20% - 20px);
    box-sizing: border-box;
    max-width: calc(20% - 20px);	
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;	
}

.job h4, .job p {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jobb h4, .jobb p {
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pagination-container {
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 0;
  display: flex;
  align-content: center;
  justify-content: center;  
}

.pagination-link {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 4px;
  background-color: #e8491d;
  color: white;
  border-radius: 5px;
  text-decoration: none;
}

.pagination-link:hover {
  background-color: #cc3d15;
}

.pagination-link.active {
  background-color: #a9241d;
}

.videogallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.videocontainer {
    flex: 1 0 22%;
    max-width: 22%; 
}

.videocontainer video {
    width: 100%; 
    height: auto; 
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.project {
    width: calc(33.333% - 20px);
    margin-bottom: 30px;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.project video {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.project h3 {
    margin-top: 10px;
}

.project p {
    font-size: 14px;
    color: #666;
}

@media screen and (max-width: 768px) {
    .container, header .container {
        width: 95%;
    }

    .main-content, .sidebar {
        float: none;
        width: auto; 
    }

    nav ul {
        flex-direction: column;
    }

    .profile-pic {
        right: auto; 
        left: 80%;
        transform: translateX(-50%); 
    }
	
    .contact-form-container {
        width: 90%;
    }	
	
    .services-offered {
        flex-direction: column;
        align-items: center;
    }

    .service-item {
        width: 80%;
    }

    .pagination-link {
        padding: 6px 12px;
        margin: 0 2px;
    }

    .job {
        flex-basis: calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
	
    .job h4, .job p {
        font-size: 16px;
    }

    .jobb {
        flex-basis: calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
	
    .jobb h4, .jobb p {
        font-size: 16px;
    }
	
    .text {
        font-size: 16px; 
    }
	
    .videocontainer {
        flex: 1 0 46%;
        max-width: 46%;
    }
	
    .projects-container {
        justify-content: space-around;
    }

    .project {
        width: calc(50% - 20px);
    }	
}

@media screen and (max-width: 480px) {
    nav ul li a {
        padding: 8px 15px; 
        font-size: 14px; 
    }

    .text {
        font-size: 14px; 
    }

    .contact-form-container {
        width: 90%;
    }

    .pagination-link {
        padding: 4px 8px;
    }
	
    .job {
        flex-basis: 100%;
		max-width: 100%;
    }
	
    .job h4, .job p {
        font-size: 14px;
    }

    .jobb {
        flex-basis: 100%;
		max-width: 100%;
    }
	
    .jobb h4, .jobb p {
        font-size: 14px;
    }
	
    .videocontainer {
        flex: 1 0 100%;
        max-width: 100%;
    }
	
    .project {
        width: 100%;
    }	
}
