/* Hospital Theme for SVCOT */
:root {
    --svcot-red: #990000;
    --svcot-red-dark: #660000;
    --svcot-red-light: #cc0000;
    --text-dark: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-radius: 5px;
    --shadow: 0 5px 20px rgba(0,0,0,0.1);
}

body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* TOP BAR */
.top-bar {
    background-color: var(--svcot-red);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}
.top-bar a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
}
.top-bar i {
    margin-right: 5px;
}

/* MAIN HEADER */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar-brand {
    font-weight: 700;
    color: var(--svcot-red) !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}
.navbar-brand img {
    height: 50px;
    margin-right: 10px;
}
.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    margin: 0 10px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.nav-link:hover, .nav-link.active {
    color: var(--svcot-red) !important;
}
.btn-portal-sm {
    background-color: var(--svcot-red);
    color: white !important;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s;
}
.btn-portal-sm:hover {
    background-color: var(--svcot-red-dark);
}

/* HERO SECTION */
.hero-slider {
    position: relative;
    background: url('../img/hero-bg.jpg') no-repeat center center/cover; /* Default fallback */
    height: 600px;
    display: flex;
    align-items: center;
    color: white;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* Dark overlay */
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}
.btn-hero {
    background-color: var(--svcot-red);
    color: white;
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: all 0.3s;
}
.btn-hero:hover {
    background-color: white;
    color: var(--svcot-red);
    text-decoration: none;
}

/* FEATURE BOXES */
.features-section {
    padding: 80px 0;
    background-color: white;
}
.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
    height: 100%;
    border-bottom: 4px solid transparent;
}
.feature-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--svcot-red);
}
.feature-icon {
    font-size: 3rem;
    color: var(--svcot-red);
    margin-bottom: 20px;
}
.feature-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* SECTION TITLES */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--svcot-red);
    margin: 10px auto 0;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* EVENTS GRID */
.event-card-public {
    border: none;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s;
}
.event-card-public:hover {
    transform: translateY(-5px);
}
.event-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--svcot-red);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.event-date-day {
    font-size: 1.5rem;
    line-height: 1;
    display: block;
}
.event-date-month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* FOOTER */
.main-footer {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 80px 0 40px;
}
.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--svcot-red);
}
.footer-links a {
    color: #cccccc;
    display: block;
    padding: 5px 0;
    transition: color 0.3s;
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--svcot-red);
    padding-left: 5px;
}
.footer-bottom {
    background-color: #111111;
    padding: 20px 0;
    margin-top: 60px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .top-bar { display: none; }
    .hero-title { font-size: 2.5rem; }
}
