/*
Theme Name: SHPBS Official
Theme URI: https://shpbs.org
Author: Sudanese HPB Society
Author URI: https://shpbs.org
Description: Custom theme for the Sudanese Hepato-Pancreato-Biliary Society. Designed for medical professionalism with Sudanese identity.
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shpbs
*/

/* === SHPBS Brand Colors ===
   Primary:     #1B4D72 (Deep Teal Blue — clinical, professional)
   Secondary:   #D4A017 (Sudanese Gold / Amber)
   Accent:      #2E8B57 (Sea Green — liver/surgical vitality)
   Light Bg:    #F5F7FA
   Dark Text:   #1A1A1A
   Body Text:   #333333
   Muted:       #6B7280
*/

/* === Global Typography === */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333333;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    color: #1B4D72;
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: #1B4D72;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #D4A017;
}

/* === Header / Logo === */
.site-logo img,
.custom-logo {
    max-height: 80px;
    width: auto;
}

/* === Buttons === */
.shpbs-btn,
.wp-block-button__link,
.ast-custom-button {
    background-color: #1B4D72;
    color: #ffffff;
    border-radius: 6px;
    padding: 12px 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 2px solid #1B4D72;
}

.shpbs-btn:hover,
.wp-block-button__link:hover,
.ast-custom-button:hover {
    background-color: #D4A017;
    border-color: #D4A017;
    color: #ffffff;
}

.shpbs-btn-secondary {
    background-color: transparent;
    color: #1B4D72;
}

.shpbs-btn-secondary:hover {
    background-color: #1B4D72;
    color: #ffffff;
}

/* === Board Member Cards === */
.shpbs-board-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.shpbs-board-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.shpbs-board-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.shpbs-board-card .card-content {
    padding: 20px;
}

.shpbs-board-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #1B4D72;
}

.shpbs-board-card .position {
    color: #D4A017;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.shpbs-board-card .specialty {
    color: #6B7280;
    font-size: 14px;
}

/* === Publication Cards === */
.shpbs-pub-card {
    background: #ffffff;
    border-left: 4px solid #2E8B57;
    padding: 24px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.shpbs-pub-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.shpbs-pub-card .authors {
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.shpbs-pub-card .journal {
    font-style: italic;
    color: #1B4D72;
    font-size: 14px;
}

.shpbs-pub-card .pub-meta {
    margin-top: 12px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.shpbs-pub-card .pub-meta span {
    font-size: 13px;
    color: #6B7280;
}

/* === Event Cards === */
.shpbs-event-card {
    display: flex;
    gap: 20px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

.shpbs-event-card .event-date {
    background: #1B4D72;
    color: #ffffff;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.shpbs-event-card .event-date .day {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.shpbs-event-card .event-date .month {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.shpbs-event-card .event-details {
    padding: 20px;
    flex: 1;
}

.shpbs-event-card h3 {
    margin-bottom: 8px;
    font-size: 20px;
}

.shpbs-event-card .venue {
    color: #6B7280;
    font-size: 14px;
}

/* === Program / Fellowship Cards === */
.shpbs-program-card {
    background: #ffffff;
    border-top: 4px solid #D4A017;
    padding: 28px;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

.shpbs-program-card .program-type {
    display: inline-block;
    background: #F5F7FA;
    color: #1B4D72;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.shpbs-program-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.shpbs-program-card .program-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #E5E7EB;
    font-size: 14px;
    color: #6B7280;
}

/* === Footer === */
.shpbs-footer {
    background-color: #1B4D72;
    color: #ffffff;
    padding: 40px 0;
}

.shpbs-footer a {
    color: #D4A017;
}

.shpbs-footer a:hover {
    color: #ffffff;
}

.shpbs-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 30px;
    padding-top: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

/* === Hero / Banner Section === */
.shpbs-hero {
    background: linear-gradient(135deg, #1B4D72 0%, #2E8B57 100%);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.shpbs-hero h1 {
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.shpbs-hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* === Utility Classes === */
.shpbs-section {
    padding: 60px 0;
}

.shpbs-section-alt {
    background-color: #F5F7FA;
}

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

.shpbs-text-center {
    text-align: center;
}

.shpbs-mb-1 { margin-bottom: 8px; }
.shpbs-mb-2 { margin-bottom: 16px; }
.shpbs-mb-3 { margin-bottom: 24px; }
.shpbs-mb-4 { margin-bottom: 32px; }

/* === Responsive === */
@media (max-width: 768px) {
    .shpbs-hero {
        padding: 50px 20px;
    }
    .shpbs-hero h1 {
        font-size: 28px;
    }
    .shpbs-event-card {
        flex-direction: column;
    }
    .shpbs-event-card .event-date {
        flex-direction: row;
        gap: 8px;
        min-width: auto;
        padding: 12px 20px;
    }
    .site-logo img,
    .custom-logo {
        max-height: 60px;
    }
}
