/* ========================================
   RelayHub Common Stylesheet
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================================
   Typography & General
   ======================================== */

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header / Hero
   ======================================== */

header {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
    text-align: center;
}

header h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
}

header p {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.9;
}

header.page-header {
    padding: 40px 0;
    margin-bottom: 40px;
}

header.page-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 5px;
    transition: all 0.3s;
}

.back-link:hover {
    background: white;
    color: #2c3e50;
}

/* ========================================
   Buttons & CTAs
   ======================================== */

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* ========================================
   Content Sections
   ======================================== */

.main-container {
    padding: 40px 20px;
    flex: 1;
}

.content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ========================================
   Typography - Headings
   ======================================== */

h2 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

h3 {
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.3em;
}

/* ========================================
   Typography - Body Text
   ======================================== */

p {
    margin-bottom: 15px;
    line-height: 1.8;
}

ul {
    margin: 15px 0;
    padding-left: 30px;
}

li {
    margin-bottom: 8px;
}

/* ========================================
   Highlights & Callouts
   ======================================== */

.highlight {
    background: #e8f4f8;
    padding: 20px;
    border-left: 4px solid #3498db;
    margin: 20px 0;
}

/* ========================================
   Tables
   ======================================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background: #2c3e50;
    color: white;
}

tr:nth-child(even) {
    background: #f8f9fa;
}

/* ========================================
   Footer
   ======================================== */

footer {
    background: #333;
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
}

footer a {
    color: #3498db;
    text-decoration: none;
    margin: 0 15px;
}

footer a:hover {
    text-decoration: underline;
}

/* ========================================
   Page-Specific Backgrounds
   ======================================== */

body.page-content {
    background: #f8f9fa;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    header p {
        font-size: 1.1em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .content {
        padding: 20px;
    }
    
    table {
        font-size: 0.9em;
    }
}
