/* html { font-size: 62.5%; } 16px × 62.5% = 10px */

body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

main{
    flex:1;
    
}

section {

}
section.feature-section {
    background: wheat;
}

section.section-padding{
    padding: 40px 20px;
    max-width: 800px;
    margin: auto;
}

.hero {
    position: relative;
    background: url('assets/images/uploads/progress.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Black color with 60% opacity */
    z-index: 1; /* Ensure the overlay is behind the content */
}

.hero-content {
    text-align: center;
    color: #fff;
    z-index: 2; /* Ensure the content is on top of the overlay */
    width: 100%;
}

.hero-widgets{
    display: block;
    width: 100%;
}

.hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-in-out;
}

.hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-in-out 0.5s;
}

.hero-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1.2em;
    text-decoration: none;
    color: #fff;
    background-color: #3498db;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

.hero-button:hover {
    background-color: #2980b9;
}

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

.status-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.widget {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 180px;
    text-align: center;
    transition: transform 0.2s;
}

.widget:hover {
    transform: scale(1.05);
}

.widget h3 {
    font-size: 18px;
    color: #555;
    margin-bottom: 10px;
}

.widget p {
    font-size: 24px;
    color: #333;
    margin: 5px 0;
}

.widget small {
    font-size: 12px;
    color: #888;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.connected {
    background-color: #4caf50;
}

.disconnected {
    background-color: #f44336;
}

.operational {
    background-color: #4caf50;
}

.slow {
    background-color: #ff9800;
}

@media (max-width: 600px) {
    .widget {
        width: 100%;
    }
}


footer{
    margin-top: 10px;
}

.site-footer {
    background-color: #111;
    color: #ccc;
    font-size: 14px;
    padding: 40px 20px 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.footer-column {
    flex: 1 1 250px;
    margin: 10px;
}

.footer-column h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 16px;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin: 5px 0;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
}

.footer-column a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #777;
}


/**TODO:: organize**/
.editable-field {
    display: inline-block;
    cursor: pointer;
    padding: 2px 6px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: background 0.2s ease;
    min-width: 80px;
}

.editable-field:hover {
    background: #f5f5f5;
    border-color: #ddd;
}

.editable-field.editing {
    background: #fff;
    border: 1px solid #ccc;
}

.editable-field {
    position: relative;
    padding-right: 20px;
}

.editable-field::after {
    content: '✎'; /* Or use a pencil icon (🖉 or 🖊) */
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85em;
    color: #999;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.editable-field:hover::after {
    opacity: 1;
}

.inline-editor {
    font: inherit;
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
}

/*Accordion*/
.accordion {
    max-width: 700px;
    margin: 1em auto;
    font-family: Arial, sans-serif;
}

.accordion-item {
    margin-bottom: 1em;/* Base styles for accordion */
}
.accordion {
    max-width: 700px;
    margin: 1em auto;
    font-family: Arial, sans-serif;
}

.accordion-item {
    margin-bottom: 1em;
    border-bottom: 1px solid #ddd;
}

.accordion-question {
    width: 100%;
    text-align: left;
    padding: 1em;
    font-size: 1.1em;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease;
}


/* Partners */
.partners-section {
  padding: 4rem 1rem;
  background: #f9f9f9;
  text-align: center;
  overflow: hidden;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #333;
}

.partners-carousel {
    overflow: hidden;
    width: 100%;
    background: #f9f9f9;
    /* border: 1px solid #ddd; */
    padding: 1px 0;
}

.partners-track {
    display: flex;
    width: max-content; /* ensures it fits all children inline */
    animation: scrollLeft 20s linear infinite;
}

.partner-logo {
    flex: 0 0 auto; /* don't shrink or grow */
    padding: 0 20px;
}

.partner-logo img {
    max-height: 60px;
    max-width: 150px;
    object-fit: contain;
}

/* Animate scrolling from 0 to -50% width (half the width of duplicated content) */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Modal styling */
/* Shared close button */
.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

/* === Standard Modal === */
.modal {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 100%;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    max-width: 500px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* === Fullscreen Modal === */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.fullscreen-modal-content {
    /* background-color: #fff; */
    padding: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}