/* Modern and Simple Theme for EPrints Homepage */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

#wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Header */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 1rem 0;
}

.ep_tm_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.ep_tm_site_logo {
    text-align: center;
    margin-bottom: 1rem;
}

.ep_msg_message {
    background: transparent; /* transparent background per request */
    color: #2c3e50;
    padding: 12px 8px;
    border-radius: 6px;
    max-width: 1000px;
    margin: 18px auto;
    box-shadow: none;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    text-align: center;
}

.ep_msg_message .ep_msg_message_content {
    font-size: 1rem;
    line-height: 1.45;
    color: inherit;
}

.ep_msg_message .welcome-title {
    font-size: 2.6rem;
    margin: 0 0 8px 0;
    font-weight: 800;
    color: #0b5560; /* stronger teal for contrast */
    letter-spacing: -0.01em;
    line-height: 1.05;
    text-align: center;
}

.ep_msg_message .welcome-sub {
    font-size: 1.15rem;
    margin: 0;
    color: #405e5d; /* muted teal/gray */
    opacity: 0.98;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 768px) {
    .ep_msg_message .welcome-title {
        font-size: 1.8rem;
    }
    .ep_msg_message .welcome-sub {
        font-size: 0.98rem;
    }
}

.ep_tm_menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.ep_tm_menu li {
    margin: 0 15px;
}

.ep_tm_menu a {
    color: #fff;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 0;
    transition: color 0.18s, border-bottom-color 0.18s;
    background: transparent;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-bottom: 2px solid transparent;
}

.ep_tm_menu a:hover,
.ep_tm_menu a:focus {
    color: #e6f7f5;
    border-bottom-color: #e6f7f5;
    background: transparent;
}

.ep_tm_searchbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
}

.ep_tm_searchbar form {
    display: flex;
}

.ep_tm_searchbarbox {
    padding: 8px;
    border: none;
    border-radius: 5px 0 0 5px;
    width: 200px;
}

.ep_tm_searchbarbutton {
    padding: 8px 15px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.ep_tm_searchbarbutton:hover {
    background-color: #2980b9;
}

/* Main Navigation */
.main-nav {
    background-color: #34495e;
    padding: 0.5rem 0;
}

/* Modern responsive navbar */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-left { display:flex; align-items:center; }
.nav-logo { height:44px; width:auto; }

#nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links { display:flex; align-items:center; }
.nav-links .ep_tm_menu { display:flex; margin:0; padding:0; }
.nav-links .ep_tm_menu li { margin: 0 10px; }

@media (max-width: 768px) {
    #nav-toggle { display:block; }
    .nav-links { display: none; width:100%; }
    .nav-links.open { display:block; }
    .nav-links .ep_tm_menu { flex-direction: column; background:#34495e; padding:10px 0; }
    .nav-links .ep_tm_menu li { margin: 6px 0; text-align:center; }
    .nav-container { padding: 0 12px; }
}

.main-nav .ep_tm_menu {
    list-style: none;
    display: flex;
    padding: 0;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Responsive: stack menu items on small screens */
@media (max-width: 768px) {
    .ep_tm_header {
        flex-direction: column;
        align-items: center;
        padding: 0 10px;
    }

    .ep_tm_menu {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .ep_tm_menu li {
        margin: 8px 0;
    }

    .logo img {
        height: 40px;
    }
}

.main-nav .ep_tm_menu li {
    margin: 0 15px;
}

.main-nav .ep_tm_menu a {
    color: #fff;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 0;
    transition: color 0.18s, border-bottom-color 0.18s;
    background: transparent;
    border-bottom: 2px solid transparent;
    font-weight: 600;
}

.main-nav .ep_tm_menu a:hover,
.main-nav .ep_tm_menu a:focus {
    color: #e6f7f5;
    border-bottom-color: #e6f7f5;
}

/* Search Bar Container */
.ep_tm_searchbar_container {
    background-color: #ecf0f1;
    padding: 0.5rem 0;
}

.ep_tm_searchbar {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ep_tm_searchbar > div {
    margin: 0 10px;
}

.ep_tm_searchbar form {
    display: flex;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 100px 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #2980b9;
}

/* Main Content */
#main_content {
    padding: 0;
}

.ep_tm_page_content {
    max-width: 1200px;
    margin: 0 auto;
}

#page-title {
    display: none; /* Hide the default title since we have hero */
}

.homepage-content {
    padding: 40px 20px;
}

.welcome-message {
    margin-bottom: 40px;
    text-align: center;
}

/* Welcome message styling: modern font and tosca background */
.ep_msg_message {
    background-color: #40BFB0; /* tosca-like color */
    color: #ffffff;
    padding: 18px 22px;
    border-radius: 10px;
    max-width: 900px;
    margin: 20px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
}

/* Minimalist homepage menu overrides (neutral, text-focused buttons) */
dl#ep-homepage-menu dt,
dl#ep-homepage-menu dd {
    border: 0 !important;
    box-shadow: none !important;
    padding: 0.4em 0.25em !important;
    margin: 0.25em 0 !important;
    background: transparent !important;
}

dl#ep-homepage-menu dt a,
dl#ep-homepage-menu dd a,
.homepage-content a.cta-button {
    display: inline-block;
    padding: 8px 14px;
    background: transparent !important;
    color: #2c3e50 !important;
    border: 0 !important;
    border-bottom: 2px solid transparent;
    font-weight: 600;
    text-decoration: none !important;
}

dl#ep-homepage-menu dt a:hover,
dl#ep-homepage-menu dd a:hover,
.homepage-content a.cta-button:hover {
    color: #167a73 !important;
    border-bottom-color: #167a73 !important;
}

.ep_msg_message .ep_msg_message_content {
    font-size: 1rem;
    line-height: 1.45;
    color: inherit;
}
.ep_msg_message .welcome-title {
    font-size: 2.1rem;
    margin: 0 0 6px 0;
    font-weight: 700;
    color: #16323a;
}
.ep_msg_message .welcome-sub {
    font-size: 1.05rem;
    margin: 0;
    color: #2f4f50;
    opacity: 0.95;
}

.ep_msg_message img { /* make the message icon subtle */
    opacity: 0.9;
    margin-right: 12px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .ep_msg_message .ep_msg_message_content { font-size: 1.05rem; }
    .ep_msg_message { padding: 14px; }
}

.welcome-message h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.features {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    margin: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.feature h3 {
    color: #3498db;
    margin-bottom: 10px;
}

.feeds-section {
    margin-bottom: 40px;
    text-align: center;
}

.feeds-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.feeds {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.feed-link {
    display: flex;
    align-items: center;
    color: #3498db;
    text-decoration: none;
    padding: 10px 15px;
    border: 1px solid #3498db;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.feed-link:hover {
    background-color: #3498db;
    color: #fff;
}

.feed-link img {
    margin-right: 8px;
}

.oai-info {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* Footer */
footer {
    background-color: #34495e;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.ep_tm_footer {
    max-width: 1200px;
    margin: 0 auto;
}

.ep_tm_eprints_logo img {
    height: 40px;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .ep_tm_header {
        flex-direction: column;
        text-align: center;
    }

    .ep_tm_menu {
        margin-bottom: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .ep_tm_searchbar {
        flex-direction: column;
        width: 100%;
    }

    .ep_tm_searchbar form {
        margin-top: 10px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .features {
        flex-direction: column;
        align-items: center;
    }

    .feeds {
        flex-direction: column;
        align-items: center;
    }
}