/*
Theme Name: HPS Law Theme
Author: Gemini Code Assist
Description: A custom WordPress theme based on the structure of hps-law.ch.
Version: 1.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: hps-law-theme
*/

/*--------------------------------------------------------------
# General Layout
--------------------------------------------------------------*/
body {
    font-family: 'Open Sans',arial,sans-serif;
    color: #666;
    background-color: #fff;
    margin: 0;
    font-weight: 400;
    line-height: 20px;
}

.site-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.entry-title {
	margin-bottom: 20px;
}

h4 {
    text-align: center;
    font-size: 26px;
    font-weight: 300;
    line-height: 26px;
    letter-spacing: -1px;
    color: #666;
    margin-bottom: 20px;
}

.hero-image {
	width: 100%;
	height: 400px;
}

.hero-image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

a {
    color: #a3834c;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
}

.header-top {
    background-color: #BF3133;
    border-bottom: 1px solid #BF3133;
}

.header-top-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 14px;
}

.header-contact a {
    margin-left: 20px;
    color: white;
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-branding .custom-logo {
    max-height: 60px;
    width: auto;
}

.site-title a {
    font-size: 28px;
    font-weight: bold;
    color: #000;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-navigation li {
    display: inline-block;
    margin-left: 25px;
    position: relative;
}

.main-navigation a {
    color: #333;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 500;
    padding-bottom: 5px;
}

.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
    border-bottom: 2px solid #a3834c;
}

/* Sub-menu */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 10px;
    min-width: 200px;
    z-index: 999;
}

.main-navigation ul li:hover > ul {
    display: block;
}

.main-navigation ul ul li {
    display: block;
    margin: 0;
}

.main-navigation ul ul a {
    display: block;
    padding: 8px 10px;
    font-size: 14px;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
    background-color: #222;
    color: white;
    font-size: 14px;
    padding: 40px 20px;
    border-top: 6px solid #BF3133;
}

.footer-widgets {
    max-width: 1100px;
    margin: 0 auto 30px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-widget-area h3 {
    font-size: 16px;
    color: white;
    margin-top: 0;
}

.site-footer a {
    color: white;
}

.site-info {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #444;
    text-align: center;
}

/*--------------------------------------------------------------
# Publications Table
--------------------------------------------------------------*/
.publications-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.publications-table th,
.publications-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.publications-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Admin styles for publications table */
.hps-publikation-item td {
    vertical-align: middle;
}

/*--------------------------------------------------------------
# News List
--------------------------------------------------------------*/
.news-item {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.news-item .entry-title {
    font-size: 24px;
}
