/* styles.css */

/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

/* Header styling */
header {
    background: #00787E; /* teal background */
    color: white;
    padding: 10px 20px; /* Spacing around the header */
    text-align: center;
	font-size: 12px;
	
}

/* Navigation styling */
nav ul {
    list-style: none; /* Remove bullets */
    padding: 0;
	font-size: 12px;
}

nav ul li {
    display: inline; /* Inline items */
    margin: 0 15px; /* Spacing between items */
	font-size: 12px;
}

nav ul li a {
    color: white;
    text-decoration: none; /* Remove underline */
	font-size: 12px;
}

/* Main content styling */
main {
    padding: 20px;
    max-width: 1200px; /* Limit the width */
    margin: auto; /* Center the main content */
    background: white; /* White background for content */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Section styling */
section {
    margin-bottom: 20px; /* Spacing between sections */
}
 
h2 {
    color: #00787E; /* Match header color */
}

/* Footer styling */
footer {
    text-align: center;
    padding: 10px 0;
    background: #00787E;
    color: white;
    position: relative; /* Allow for positioning */
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav ul li {
        display: block; /* Stack items vertically */
        margin: 5px 0; /* Spacing between stacked items */
    }

    main {
        padding: 10px; /* Less padding on smaller screens */
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em; /* Smaller header font */
    }

    nav ul li {
        margin: 0; /* No margin for mobile */
    }

    nav ul {
        text-align: center; /* Center items in nav */
    }
}

/* Contextual information panel */
.info-panel {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #e8f5f7;
    border: 1px solid #b2dfe5;
    border-radius: 14px;
    padding: 10px 16px;
    margin: 16px 0;
    max-width: 100%;
    color: #0f5960;
}

.info-panel .info-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.info-panel .info-toggle:focus {
    outline: 2px solid #0f5960;
    outline-offset: 2px;
}

.info-panel .info-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0f5960;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.info-panel .info-label {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.info-panel .info-content {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: clamp(240px, 55vw, 520px);
    background: #ffffff;
    border: 1px solid #d4ebee;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 18px 36px rgba(15, 89, 96, 0.18);
    color: #24555a;
    line-height: 1.55;
    font-size: 0.95rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 200;
}

.info-panel .info-content::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 22px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #ffffff transparent;
    filter: drop-shadow(0 -1px 0 #d4ebee);
}

.info-panel:hover .info-content,
.info-panel[data-expanded="true"] .info-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.info-panel .info-content p {
    margin-bottom: 10px;
}

.info-panel .info-content p:last-child {
    margin-bottom: 0;
}

.info-panel .info-content ul,
.info-panel .info-content ol {
    margin: 0 0 10px 18px;
    padding: 0;
}

.info-panel .info-content ul:last-child,
.info-panel .info-content ol:last-child {
    margin-bottom: 0;
}

.info-panel .info-content li {
    margin-bottom: 6px;
}

.info-panel .info-content li:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .info-panel {
        flex-wrap: wrap;
        gap: 10px;
    }

    .info-panel .info-content {
        position: static;
        width: 100%;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-6px);
    }

    .info-panel:hover .info-content,
    .info-panel[data-expanded="true"] .info-content {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .info-panel .info-content::before {
        display: none;
    }
}