@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,600;1,600&display=swap');

h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6 { 
    font-family: "Instrument Sans", sans-serif; 
}

body { 
    font-family: "Instrument Sans", sans-serif; 
}

/* Base callout styles */
.callout {
    margin: 1.5rem 0;
    border-radius: 8px;
    border-left: 4px solid;
    background: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: "Instrument Sans", sans-serif;
    position: relative;
    padding: 0;
}

/* Callout title bar - generated via CSS */
.callout::before {
    content: "";
    display: block;
    padding: 12px 16px 12px 56px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    margin: 0;
    border-bottom: 1px solid;
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
}

/* Font Awesome icon styling */
.callout::after {
    content: "";
    position: absolute;
    top: 12px;
    left: 16px;
    font-size: 1.1rem;
    width: 1.2em;
    text-align: center;
    font-family: "Font Awesome 6 Pro";
    font-weight: 400;
    margin-right: 8px;
}

/* Callout content area - separate from title bar */
.callout {
    padding: 0;
}

/* Add bottom padding to title bar and bottom padding to last content element */
.callout::before {
    padding-bottom: 10px;
}

/* Ensure ALL content elements get left and right padding */
.callout > * {
    padding-left: 14px !important;
    padding-right: 16px !important;
}

/* Add bottom padding to the last content element */
.callout > *:last-child {
    padding-bottom: 10px;
    margin-bottom: 0;
}

.callout p:last-child {
    margin-bottom: 0;
}

.callout > *:first-child {
    margin-top: 0;
}

/* Content styling within callouts */
/* .callout p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
    color: #333;
}

.callout strong {
    font-weight: 600;
    color: #1a1a1a;
}

.callout em {
    font-style: italic;
    color: #555;
} */

.callout ul, 
.callout ol {
    margin: 0.5rem 0 1rem 1.5rem;
    padding: 0;
}

.callout li {
    margin-bottom: 0.25rem;
}

/* Tip/Idea callout styling - Yellow theme */
.callout.tip {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.callout.tip::before {
    content: "Tip";
    background: #fff3cd;
    color: #856404;
    border-bottom-color: #ffc107;
}

.callout.tip::after {
    content: "\f0eb";
    font-family: "Font Awesome 6 Pro";
    font-weight: 400;
    color: #856404;
}

/* Warning callout styling - Red theme */
.callout.warning {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.callout.warning::before {
    content: "Warning";
    background: #f8d7da;
    color: #721c24;
    border-bottom-color: #dc3545;
}

.callout.warning::after {
    content: "\f071";
    font-family: "Font Awesome 6 Pro";
    font-weight: 400;
    color: #721c24;
}

/* Info callout styling - Blue theme */
.callout.info {
    border-left-color: #17a2b8;
    background: #f0f9ff;
}

.callout.info::before {
    content: "Information";
    background: #d1ecf1;
    color: #0c5460;
    border-bottom-color: #17a2b8;
}

.callout.info::after {
    content: "\f05a";
    font-family: "Font Awesome 6 Pro";
    font-weight: 400;
    color: #0c5460;
}

/* Hover effects */
.callout:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    transition: all 0.2s ease-in-out;
}

/* Responsive design */
@media (max-width: 768px) {
    .callout {
        margin: 1rem 0;
        border-radius: 6px;
    }
    
    .callout::before {
        padding-bottom: 10px;
    }
    
    .callout > * {
        padding-left: 10px !important;
        padding-right: 14px !important;
    }
    
    .callout > *:last-child {
        padding-bottom: 10px;
    }
    
    .callout::before {
        padding: 10px 14px 10px 50px;
        font-size: 0.9rem;
        margin-left: -14px;
        margin-right: -14px;
        width: calc(100% + 28px);
    }
}

/* Print styles */
@media print {
    .callout {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .callout::before {
        background: #f0f0f0 !important;
        color: #333 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}

/* Animation for new callouts (optional) */
@keyframes calloutFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.callout {
    animation: calloutFadeIn 0.3s ease-out;
}