:root {
    --bordeaux: #800020;
    --paper: #fdfbf7;
    --dark-grey: #333333;
    --light-grey: #f4f4f4;
    --border: #e0e0e0;
    --white: #ffffff;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Source Sans Pro', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    background-color: var(--light-grey);
    color: var(--dark-grey);
    line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* Ticker */
.news-ticker { background-color: var(--dark-grey); color: var(--white); padding: 8px 0; font-size: 0.8rem; }
.ticker-label { background-color: var(--bordeaux); padding: 2px 6px; font-weight: bold; margin-right: 10px; }

/* Header */
.portal-header { background-color: var(--white); padding: 30px 0; border-bottom: 1px solid var(--border); }
.header-grid { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 900; color: var(--dark-grey); letter-spacing: -1px; }
.logo .highlight { color: var(--bordeaux); }

.header-search { display: flex; }
.header-search input { padding: 10px; border: 1px solid var(--border); width: 250px; }
.header-search button { background-color: var(--bordeaux); color: var(--white); border: none; padding: 0 15px; cursor: pointer; }

/* Navigation */
.main-nav { background-color: var(--white); border-bottom: 3px solid var(--bordeaux); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.main-nav ul { display: flex; gap: 30px; list-style: none; padding: 15px 0; }
.main-nav a { font-weight: 700; text-transform: uppercase; font-size: 0.95rem; color: var(--dark-grey); }
.main-nav a:hover, .main-nav a.active { color: var(--bordeaux); }

/* Mobile Menu */
.mobile-toggle { display: none; background: none; border: none; font-size: 2rem; cursor: pointer; }
.mobile-menu { position: fixed; top: 0; right: -100%; width: 250px; height: 100%; background: var(--white); z-index: 2000; padding: 40px; display: flex; flex-direction: column; box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: 0.3s; }
.mobile-menu.active { right: 0; }
.close-menu { align-self: flex-end; font-size: 1.5rem; background: none; border: none; cursor: pointer; margin-bottom: 20px; }
.mobile-menu a { padding: 10px 0; border-bottom: 1px solid #eee; font-weight: 700; }

/* Layout Grid */
.portal-layout { display: flex; gap: 40px; padding: 40px 0; }
.content-col { flex: 2.5; }
.sidebar-col { flex: 1; }
.full-width { flex: 1; }

/* Articles */
.lead-story { background-color: var(--white); padding: 30px; border: 1px solid var(--border); margin-bottom: 30px; }
.lead-story img { width: 100%; height: 350px; object-fit: cover; margin: 15px 0; }
.cat-tag { background-color: var(--bordeaux); color: var(--white); padding: 4px 8px; font-size: 0.7rem; font-weight: bold; display: inline-block; margin-bottom: 10px; }
.lead-story h2 { font-family: var(--font-serif); font-size: 2.2rem; line-height: 1.2; margin-bottom: 15px; }
.summary { font-size: 1.1rem; color: #555; margin-bottom: 20px; }
.read-more { font-weight: bold; color: var(--bordeaux); }

.sub-stories { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.story-card { background-color: var(--white); padding: 20px; border: 1px solid var(--border); }
.story-card h3 { font-family: var(--font-serif); font-size: 1.3rem; margin: 10px 0; line-height: 1.3; }

/* Sidebar Widgets */
.widget { background-color: var(--white); padding: 20px; border: 1px solid var(--border); margin-bottom: 30px; border-top: 4px solid var(--dark-grey); }
.widget h4 { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 5px; }
.newsletter input { width: 100%; padding: 10px; border: 1px solid #ccc; margin-bottom: 10px; }
.newsletter button { width: 100%; background-color: var(--dark-grey); color: var(--white); border: none; padding: 10px; cursor: pointer; font-weight: bold; }
.topics ol { padding-left: 20px; }
.topics li { margin-bottom: 10px; }
.topics a { font-weight: 600; color: #555; }
.topics a:hover { color: var(--bordeaux); }

/* About & Posts */
.article-header { border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 30px; }
.article-header h1 { font-family: var(--font-serif); font-size: 2.5rem; }
.intro { font-size: 1.3rem; font-style: italic; color: #666; }

.text-body p { margin-bottom: 15px; font-size: 1.1rem; line-height: 1.8; }
.standard-list { margin: 20px 0; padding-left: 20px; }
.standard-list li { margin-bottom: 10px; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.team-member { text-align: center; background: var(--white); padding: 20px; border: 1px solid var(--border); }
.member-pic { width: 80px; height: 80px; background-color: #eee; border-radius: 50%; margin: 0 auto 15px; }
.team-member h4 { font-family: var(--font-serif); }

.post-item { background: var(--white); padding: 30px; border: 1px solid var(--border); margin-bottom: 20px; }
.post-meta { font-size: 0.8rem; color: #999; font-weight: bold; margin-bottom: 10px; }
.post-item h3 { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 10px; }
.post-item a { color: var(--bordeaux); font-weight: bold; }

/* Contact Form */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.form-box { background: var(--paper); padding: 30px; border: 1px solid #dcdcdc; }
#portalForm label { display: block; margin-bottom: 5px; font-weight: bold; }
#portalForm input[type="email"] { width: 100%; padding: 10px; border: 1px solid #ccc; margin-bottom: 15px; }
.checkboxes label { display: block; margin-bottom: 5px; font-weight: normal; }
.sub-btn { background-color: var(--bordeaux); color: #fff; border: none; padding: 10px 25px; cursor: pointer; font-weight: bold; margin-top: 15px; }

.info-box { background: var(--white); padding: 30px; border: 1px solid var(--border); }
.contact-data { margin-top: 20px; line-height: 1.8; }

/* Legal Text */
.legal-text { background: var(--white); padding: 40px; border: 1px solid var(--border); }
.legal-text h1 { font-family: var(--font-serif); }

/* Footer */
.portal-footer { background-color: var(--dark-grey); color: #ccc; padding: 40px 0; margin-top: auto; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #555; padding-bottom: 20px; margin-bottom: 20px; }
.f-brand { font-family: var(--font-serif); font-size: 1.5rem; color: var(--white); }
.f-nav a { color: #ccc; margin-left: 20px; }
.copyright { font-size: 0.85rem; }

@media (max-width: 900px) {
    .main-nav { display: none; }
    .mobile-toggle { display: block; }
    .portal-layout { flex-direction: column; }
    .header-search { display: none; } /* Hide search on mobile header to save space */
    .sub-stories, .team-grid, .contact-split { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 15px; }
}