/* Basic Reset and Font Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    height: 100vh;
    background-color: #f9f9f9;
}

/* Color Palette */
:root {
    --primary-red: #d92027;
    --hover-red: #b31a20;
    --light-bg: #ffffff;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-color: #eeeeee;
}

/* Sidebar Styling */
.sidebar {
    width: 240px;
    background-color: var(--primary-red);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    flex-shrink: 0;
    transition: width 0.3s ease; /* Smooth transition for resizing */
}

.sidebar-header {
    text-align: center;
    padding: 0 20px 20px 20px;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar ul {
    list-style-type: none;
    width: 100%;
    margin-top: 20px;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between icon and text */
    color: var(--text-light);
    text-decoration: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    white-space: nowrap; /* Prevent text from wrapping */
}

.sidebar ul li a i {
    font-size: 1.2rem;
    width: 20px; /* Ensures consistent icon alignment */
    text-align: center;
}

.sidebar ul li a:hover {
    background-color: var(--hover-red);
}

.sidebar ul li a.active {
    background-color: var(--light-bg);
    color: var(--primary-red);
    font-weight: bold;
}

/* Main Content Area */
.content {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
}

.page-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    max-width: 700px;
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h1, h2 {
    color: var(--primary-red);
    margin-bottom: 20px;
}

p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 15px;
    max-width: 800px;
}

/* Home Section Buttons */
.cta-buttons {
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    margin: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid var(--primary-red);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--text-light);
}

.btn-secondary {
    background-color: var(--light-bg);
    color: var(--primary-red);
}

/* Contact Section List */
#contact ul {
    list-style-type: none;
    padding-left: 0;
}

#contact ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}


/* ========================================= */
/* RESPONSIVE DESIGN FOR MOBILE         */
/* ========================================= */
@media (max-width: 768px) {
    .sidebar {
        width: 80px; /* Shrink the sidebar */
    }

    .sidebar-header h3 span {
        display: none; /* Hide the "BloodLink" text */
    }
    
    .sidebar-header h3 {
        font-size: 2rem; /* Make the emoji icon larger */
    }

    .sidebar ul li a span {
        display: none; /* Hide the text for navigation links */
    }

    .sidebar ul li a {
        justify-content: center; /* Center the icon */
        padding: 20px 0;
    }
    
    .content {
        padding: 20px; /* Reduce padding on smaller screens */
    }

    h1 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        align-items: center;
    }
    
    .btn {
        width: 90%;
        max-width: 300px;
        text-align: center;
    }
}