:root {
    --primary-color: #0056b3;
    --secondary-color: #0056b3;
    --accent-color: #ffc107;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --white: #ffffff;
    --border-radius: 8px;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
}

body {
    font-family: 'Segoe UI', Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

h1, h2, h3 {
    margin-top: 0;
    font-weight: 700;
}

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.ep_tm_header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; 
    gap: 1rem;
}

.ep_tm_logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.campus-logo {
    height: 50px; /* Force small height */
    width: 50px;  /* Force square width */
    object-fit: contain; /* Ensure image aspect ratio is kept inside */
    display: block;
}

/* Navbar Styling - Cleaned Up */
.ep_tm_menu {
    display: flex !important;
    gap: 1.5rem !important;
    background: transparent !important; /* Removed boxy background */
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
}

.ep_tm_menu:is([role=menubar]) li a{
    color: var(--text-color) !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 4px; 
    font-weight: 600 !important;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
    font-size: 1rem;
}

.ep_tm_menu li a:hover {
    background: var(--light-bg) !important;
    color: var(--primary-color) !important;
}

/* Key Tools (Login) - Button Style */
.ep_tm_tools {
    display: flex;
    align-items: center;
}

ul.ep_tm_key_tools {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
}

a.ep_tm_key_tools_item_link {
    display: inline-block;
    font-size: 0.95rem;
    color: var(--white) !important;
    background: var(--primary-color);
    padding: 0.5rem 1.25rem !important;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

a.ep_tm_key_tools_item_link:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

/* Force Hide Register Link */
a[href*="register"], 
a[href*="signup"],
a.ep_tm_key_tools_item_link[href*="register"] {
    display: none !important;
}

/* Main Content */
#wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ep_tm_page_content {
    max-width: 1200px;
    margin: 2rem auto;
    width: 100%;
    padding: 0 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    flex: 1;
    padding: 2rem;
    box-sizing: border-box;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 2rem 0;
    margin-top: auto;
}

footer a {
    color: #cbd3da;
}

/* Big Search Bar on Homepage */
.repo-search-container {
    padding: 0;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.repo-search-hero-wrapper {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 4rem 2rem;
    text-align: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.home-hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.home-hero-text p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0;
}

.repo-search-box {
    width: 100%;
    max-width: 700px;
    background: var(--white);
    border-radius: 50px;
    padding: 5px; /* Inner padding for the "pill" look */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    display: block; /* Let form handle layout */
}

/* Add style for the form inside */
.repo-search-box form {
    display: flex;
    width: 100%;
    align-items: center;
    margin: 0;
}

.repo-search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: none;
    background: transparent; /* Merge with container */
    border-radius: 50px;
    outline: none;
    min-width: 0; /* fix flex issue */
    color: var(--text-color);
}

.repo-search-btn {
    padding: 0.8rem 2rem;
    background: var(--accent-color);
    color: var(--text-color); /* Dark text on yellow for legibility */
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: 5px;
}

.repo-search-btn:hover {
    background: #e0b000;
    transform: none;
}

/* Old hero bits removal */
.home-hero {
   display: none;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--dark-bg);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    background-color: #e0a800;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #eaeaea;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Buttons */
input[type="submit"], button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

input[type="submit"]:hover, button:hover {
    background: var(--secondary-color);
}

/* Login Page Styling */
.ep_login_box {
    max-width: 400px;
    margin: 0 auto;
    background: #fdfdfd;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Form Inputs */
input[type="text"]:not(.repo-search-input), input[type="password"], textarea, select, input:not(.repo-search-input) {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input[type="text"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
}

/* Adjust search bar in header */
.ep_tm_searchbar {
    display: flex;
    flex-direction: row; /* Align side by side */
    align-items: center;
    gap: 15px;
}

/* Ensure key tools (Login) and Search Form map nicely */

/* Make Login Button look better */
a.ep_tm_key_tools_item_link {
    font-size: 0.9rem;
    color: var(--white); /* White text if on colored background, or standard */
    background: var(--secondary-color);
    padding: 0.4rem 1rem !important;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none !important;
    white-space: nowrap;
}

a.ep_tm_key_tools_item_link:hover {
    background: var(--accent-color);
    color: var(--dark-bg) !important;
}

.ep_tm_searchbarbox {
    width: 200px !important; 
    margin-bottom: 0 !important;
    display: inline-block !important;
    padding: 0.5rem !important;
    font-size: 0.9rem !important;
}

.ep_tm_searchbarbutton {
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
}

/* Hide Create Account link as fallback */
a[href$="/register"] {
    display: none !important;
}

/* Hide text node dividers if needed (tricky in CSS, but this helps) */
.ep_tm_searchbar div {
    font-size: 0.9rem;
}

/* Footer (Hidden as requested) */
footer {
    display: none;
}
