﻿/* UKEDI Custom Styles - Enhancements for UKEDI section */

/* General styling improvements */
#home {
    padding-top: 90px;
}

/* Page headers */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: #450e59; /* Purple to match UKEDI branding */
    padding: 30px 0;
    margin-bottom: 30px;
    position: relative;
}

    h1::after {
        content: "";
        display: block;
        width: 100px;
        height: 4px;
        background-color: #b89543; /* Gold accent color */
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
    }

/* Work packages styles */
.main-text h2 {
    color: #450e59;
    font-size: 1.8rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
}

    .main-text h2::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 5px;
        background-color: #450e59;
        border-radius: 3px;
    }

.main-text p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.main-text strong {
    color: #007a59; /* Green accent */
}

.main-text hr {
    border-color: #eeeeee;
    margin: 2rem 0;
}

.main-text .focus {
    font-size: 1.6rem;
    color: #b89543;
    text-align: center;
    font-weight: 500;
    padding: 20px 10px;
    margin: 30px 0;
    background-color: #f9f9f9;
    border-left: 5px solid #b89543;
}

/* About page styles */
.main-text a {
    color: #450e59;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dotted #450e59;
    transition: all 0.2s ease;
}

    .main-text a:hover {
        color: #b89543;
        border-bottom: 1px solid #b89543;
    }

.main-text img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Team page improvements */
.team-profile {
    margin-bottom: 40px;
}

    .team-profile .name {
        margin-bottom: 15px;
    }

    .team-profile h2 {
        font-size: 1.5rem;
        color: #450e59;
        font-weight: 600;
        margin: 0;
        padding: 10px;
    }

    .team-profile img {
        width: 100%;
        height: 300px !important;
        object-fit: cover;
        object-position: top center;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        border: 3px solid white;
        margin: 0 0 15px 0;
    }

        .team-profile img:hover {
            transform: scale(1.03);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        }

    .team-profile p {
        font-size: 1.05rem;
        line-height: 1.6;
    }

.team-profile .col-12.col-md-3 {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Mobile responsiveness for team images */
@media (max-width: 767px) {
    .team-profile img {
        height: 240px !important;
        max-width: 240px;
        margin: 0 auto 15px auto;
    }
}

.team-profile .row {
    margin-bottom: 20px;
}

.team-profile .col-3 {
    margin-bottom: 15px;
    text-align: center;
}

/* Image position adjustments for specific team members */
.img-position-adjust-robert {
    object-position: center 25% !important; /* Move image up so face is fully visible */
}

.img-position-adjust-irena {
    object-position: center 10% !important; /* Move image up so face is fully visible */
}

.img-position-adjust-martyn {
    object-position: center 20% !important; /* Move image up so face is fully visible */
}

.img-position-adjust-hannah {
    object-position: center 30% !important; /* Move image up so face is fully visible */
}

.img-position-adjust-chandni {
    object-position: center 30% !important; /* Move image up so face is fully visible */
}

.img-position-adjust-ben {
    object-position: center 45% !important;
}

.img-position-adjust-zaid {
    /*object-position: center 30% !important;*/ /* Move image up more to show full head */
    min-height: 350px !important;
   /* width: 100% !important;*/
}

/*#zaid.team-profile .col-12.col-md-3 {
    align-items: stretch !important;
    height: auto !important;
    min-height: 400px !important;
}*/

.img-position-adjust-bill {
    object-position: center 40% !important; /* Move image up more to show full head */
    object-fit: cover !important; /* Keep cover to maintain same size as other images */
    transform: none !important; /* Remove scaling to maintain original container size */
}

/* Adjust hover effect for scaled images - ensure they don't break container bounds */
.img-position-adjust-zaid:hover {
    transform: scale(1.03) !important;
}

.img-position-adjust-bill:hover {
    transform: scale(1.03) !important;
}

/* Contact form improvements */
.contact-us-alt-background {
    border-radius: 0 8px 8px 0;
}

.contact-us-background {
    border-radius: 8px 0 0 8px;
}

    .contact-us-background .left-panel {
        padding: 40px !important;
    }

#contact-result .form-control {
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.9);
    padding: 10px 15px;
}

    #contact-result .form-control:focus {
        background: white;
        box-shadow: 0 0 0 3px rgba(184,149,67,0.3);
    }

#contact-result button {
    padding: 10px 30px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

    #contact-result button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

#responseMessage p {
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

/* Banner indicators */
header .header-image {
    position: relative;
}

    header .header-image::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, #450e59 0%, #b89543 100%);
    }

/* Page-specific header styles */
.header-image.main-page::before,
.header-image.about-page::before,
.header-image.team-page::before,
.header-image.work-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

/* Work package specific styles */
.work-package-item {
    padding: 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

    .work-package-item:hover {
        background-color: #f9f9f9;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    }

/* Styles for the moved contact info section */
.contact-info-section {
    margin: 20px 0 40px;
}

.contact-card {
    border-radius: 8px;
    background-color: #f9f9f9;
    border-left: 5px solid #450e59;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

    .contact-card:hover {
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transform: translateY(-2px);
    }

    .contact-card .title-2 {
        color: #450e59;
        margin-bottom: 0;
        font-size: 1.8rem;
    }

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

    .contact-details div {
        margin: 5px 0;
        font-size: 1.2rem;
    }

    .contact-details a {
        color: #450e59;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .contact-details a:hover {
            color: #b89543;
            text-decoration: underline;
        }

    .contact-details i {
        color: #b89543;
        margin-right: 6px;
        width: 20px;
        text-align: center;
    }

/* Make responsive for mobile */
@media (max-width: 767px) {
    .contact-card .card-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-details {
        margin-top: 20px;
        align-items: center;
    }

    h1 {
        font-size: 2rem;
        padding: 20px 0;
    }

    .main-text {
        font-size: 1rem;
    }

        .main-text h2 {
            font-size: 1.5rem;
        }

    .contact-us-background .left-panel {
        padding: 20px !important;
    }
}

/* Enhanced Navigation Styles */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 9999 !important;
}

    .navbar.solid {
        background-color: #fff;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    }

.navbar-nav .nav-item {
    margin: 0 5px;
    position: relative;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        color: #450e59;
        background-color: rgba(69, 14, 89, 0.05);
    }

.navbar-nav .nav-item .nav-link.active {
    color: #450e59;
    background-color: rgba(69, 14, 89, 0.08);
    font-weight: 600;
}

    .navbar-nav .nav-item .nav-link.active::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 15px;
        right: 15px;
        height: 3px;
        background-color: #b89543;
        border-radius: 3px 3px 0 0;
    }

/* Mobile menu styling */
@media (max-width: 767px) {
    .navbar-toggler {
        border: none;
        background-color: rgba(69, 14, 89, 0.08);
        border-radius: 4px;
        padding: 8px 10px;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(69, 14, 89, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar-nav .nav-item .nav-link.active::after {
        left: 0;
        right: 0;
        bottom: 0;
    }
}

/* Further Reading Section - Enhanced width and font sizes */
#further-reading {
    max-width: 1200px; /* Increased from 900px to make it wider */
    margin: auto;
    padding: 3rem; /* Increased padding */
    background: #fff;
    font-size: 1.1rem; /* Increased base font size */
    line-height: 1.7; /* Better line height for readability */
}

.paper {
    margin-bottom: 3.5rem; /* Slightly more spacing between papers */
    border-bottom: 1px solid #ddd;
    padding-bottom: 2.5rem; /* More padding at bottom */
}

.citation {
    font-size: 1rem; /* Increased from 0.9rem */
    color: #555;
    line-height: 1.6;
}

#further-reading h2 {
    color: #222;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
    font-size: 2.2rem; /* Increased font size */
    margin-bottom: 2rem;
}

#further-reading h3 {
    color: #003366;
    margin-top: 1.5rem;
    font-size: 1.6rem; /* Increased font size */
    margin-bottom: 1rem;
}

#further-reading h4 {
    margin-top: 1.2rem;
    font-weight: bold;
    font-size: 1.3rem; /* Increased font size */
    margin-bottom: 0.8rem;
}

#further-reading h5 {
    margin-top: 1rem;
    font-weight: bold;
    font-size: 1.15rem; /* Increased font size */
    margin-bottom: 0.6rem;
}

#further-reading ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    font-size: 1.05rem; /* Slightly larger font for list items */
    line-height: 1.6;
}

#further-reading p {
    font-size: 1.1rem; /* Increased paragraph font size */
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

/* Responsive adjustments for further reading */
@media (max-width: 1024px) {
    #further-reading {
        max-width: 95%;
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    #further-reading {
        max-width: 100%;
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    #further-reading h2 {
        font-size: 1.8rem;
    }
    
    #further-reading h3 {
        font-size: 1.4rem;
    }
    
    #further-reading h4 {
        font-size: 1.2rem;
    }
    
    #further-reading h5 {
        font-size: 1.1rem;
    }
}
