.p-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

.p-nav-menu {
    display: flex;
    list-style: none;
}

/* Header Styles */
.p-header {
    padding-top: 200px;
	gap: 4rem;
	margin-bottom: 60px;
}

.p-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.p-header-text {
    flex: 1;
    text-align: left;
}

.p-header-image {
    width: 50%;
    max-width: 550px;
    flex-shrink: 0;
	border-radius: 10px;
}

.p-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.p-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
    line-height: 1.5;
}

.p-button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.p-portfolio-navigation {
	display: flex;
	flex-direction: row;
    justify-content: space-between;
	align-items: center;
    margin-top: 30px;
    width: 100%;
	gap: 10px;
}

.p-nav-arrow {
    text-decoration: none;
    color: #E0F1FF;
    font-weight: normal;
    padding: 10px 15px;
    border: 2px solid #E0F1FF;
    border-radius: 25px;
    transition: all 0.3s;
	min-height: 44px;
	width: auto;
    min-width: 140px;
    text-align: center;
	min-width: 200px;
}

.p-nav-arrow:hover {
    background-color: #E0F1FF;
	color: #001959;
}

.p-nav-arrow.hidden {
    visibility: hidden;
}

/* Projects Section */
.p-projects {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.p-section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #1075C8;
}

.p-project-card {
    display: flex;
    align-items: center;
    gap: 30px;
    border-radius: 10px;
    margin: 1rem;
	background-color: #9FDCFF;
    padding: 2rem;
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
}

.p-project-image {
    width: 30%;
	aspect-ratio: 1/1;
    object-fit: cover;
	object-position: top;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
	overflow: hidden;
}

.p-project-image:hover {
    transform: scale(1.05);
}

.p-nav-menu {
    display: flex;
    list-style: none;
    font-size: 0.8rem;
    flex-wrap: wrap;
	justify-content: center;
}

.p-nav-menu a {
	text-decoration: none;
    color: #001959;
    font-weight: 450;
    transition: color 0.3s;
    display: block;
	border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s;
    border: 1px solid #001959;
	padding: 5px 10px;
	margin: 5px;
	white-space: nowrap; 
}

.p-nav-menu a:hover {
	transform: scale(1.05);
}

.p-nav-menu a.current {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
    color: #666;
    border-color: #666; 
    background-color: #9FDCFF;
}

.p-portfolio-container {
	max-width: 1200px;
	margin: 0 auto 50px auto;
    position: relative;
    padding: 0 50px;
	display: flex;
	flex-wrap: wrap;
    justify-content: center;
}

.p-project-content {
    flex: 1;
	align-self: flex-start;
}

.p-project-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
}

.p-project-description {
    display: flex;
    align-items: center;
    gap: 30px;
    border-radius: 10px;
    margin: 1rem;
    background-color: #9FDCFF;
    padding: 2rem;
    text-align: left;
    flex-direction: row;
}

.p-project-image.multiple {
    flex: 0 1 calc(33.333% - 15px);
    min-width: 200px;
}

.p-project-images-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Modal styles */
.p-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 25, 89, 1);
	overflow: auto;
}

.p-modal-content {
    margin: 0 auto;
    display: block;
    max-width: 90%;
    width: auto;
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    padding: 20px 0;
}

.p-close {
    position: fixed;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.p-close:hover {
    color: #ccc;
}

/* Multiple images row layout */
.p-project-images-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* Multi-image layout - preserves original image sizes */
.p-project-image.multiple {
    flex: 0 1 calc(33.333% - 15px);
    min-width: 200px;
}

/* Project description layout - image above content */
.p-project-description {
    display: flex;
    flex-direction: column;
	align-items: stretch;
    gap: 30px;
}
    
.p-project-images-row {
    order: 1;
}
	
/* Project content - paragraph above list */
.p-project-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
	order: 2;
}

/* List items in 3 columns with frames */
.p-project-list {
    flex-direction: row;
	display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.p-project-list li {
    flex: 1;
    background-color: #E0F1FF;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 1024px) {
     .p-container {
		width: 90%;
		max-width: 900px;
        padding: 20px 15px;
    }

	.p-project-image.multiple {
        flex: 0 1 calc(50% - 15px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .p-container {
		width: 90%;
		max-width: 750px;
        padding: 20px 15px;
    }
    
    .p-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .p-header-text {
        text-align: center;
    }
    
    .p-header-image {
        width: 80%;
        order: -1;
        margin-bottom: 20px;
    }
    
    .p-title {
        font-size: 2rem;
    }
    
    .p-subtitle {
        font-size: 1.1rem;
    }
    
    .p-button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .p-project-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
  
    .p-project-list {
        flex-direction: column;
        gap: 15px;
    }
	
	.p-project-images-row {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .p-project-image.multiple {
        flex: 0 1 calc(50% - 15px);
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .p-title {
        font-size: 1.7rem;
    }
    
    .p-header-image {
        width: 100%;
        max-width: 250px;
    }
    
    .p-project-title {
        font-size: 1.1rem;
    }
    
    .p-project-images-row {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .p-project-image.multiple {
        flex: 0 1 100%;
    }

}

@media (max-width: 360px) {
    .p-portfolio-navigation {
        gap: 5px;
		flex-wrap: wrap;
		flex-direction: column;
		order: 3;
    }
    
    .p-nav-arrow {
		min-height: 24px;
        padding: 10px 10px;
    }
}