@page {
    size: auto;
    margin: 0;
}

@media print {
    @page {
        size: auto;
        margin: 0.5in; /* Minimal margins */
    }

    body {
        margin: 0;
        padding: 0;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Hide UI elements */
    .download-btn, .no-print {
        display: none !important;
    }
}

.button-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px; /* Space between buttons */
    z-index: 9999;
}

.download-btn {
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px; /* Space between icon and text */
}

.printable-btn {
    background-color: #2196F3; /* Blue for printable */
}

.printable-btn:hover {
    background-color: #1976D2;
}

.pdf-btn {
    background-color: #4CAF50; /* Green for PDF */
}

.pdf-btn:hover {
    background-color: #45a049;
}

/* Hide buttons during print */
@media print {
    .button-container {
        display: none !important;
    }
}

/* Mobile responsive */
@media (max-width: 480px) {
    .button-container {
        flex-direction: column;
        gap: 5px;
        top: 10px;
        right: 10px;
    }

    .download-btn {
        font-size: 12px;
        padding: 8px 12px;
    }
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.5;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    max-width: 100%;      /* Never exceed viewport width */
    width: auto;          /* Allow width to adapt */
    margin: 0 10px;       /* Center content */
    padding: 2rem;        /* Responsive padding */
    box-sizing: border-box; /* Include padding in width calculation */
}

/*
.download-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    z-index: 9999;
}

.download-btn:hover {
    background-color: #45a049;
}
*/

/* For sections/containers */
.container, section {
    box-sizing: border-box;
}

header {
    text-align: center;
    border-bottom: none;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    margin: 0;
}

h2 {
    font-size: 1.3em;
    color: #4CAF50;
    margin: 10px 0 20px 0;
    font-weight: normal;
}

.contact {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
}

.testimonial {
    font-style: italic;
    color: #555;
    border-left: 4px solid #4CAF50;
    margin: 2em 0;
    padding-left: 1em;
}

section {
    margin-bottom: 20px;
}

h3 {
    color: #4CAF50;
    border-bottom: 1px solid #4CAF50;
    padding-bottom: 5px;
}

ul {
    padding-left: 20px;
    margin: 0;
}

li {
    margin-bottom: 0.7em;
}

a {
    color: #4CAF50;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
