body, html {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 400;
}

body {
    background: #f7f5f2;
    margin: 0;
    color: #222;
    padding-top: 100px; /* Add top padding to prevent content being hidden under the header */
}

h1, h2, h3, h4, h5, h6, .site-title {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}


.nav-links a,
.cta-button,
button,
input,
textarea {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 500;
}


.header {
    height: 80px; /* Fixed height for header */
    background: rgba(255, 255, 255, 0.55); /* Semi-transparent white */
    box-shadow: 0 2px 8px rgba(60, 50, 40, 0.04);
    padding: 1rem 2.5rem;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 20px; 
    width: 100%;
    z-index: 10; /* Ensure it stays above other content */
    backdrop-filter: blur(6px); /* Optional: adds a blur effect for better readability */
}



.title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: left; /* Center the title and tagline */
    text-align: left; /* Center text alignment */
    margin-top: 0; /* Remove default top margin */
    margin-bottom: 0; /* Remove default bottom margin */
    padding: 0; /* Remove default padding */    
 
}

.title-wrapper h1, 
.title-wrapper p {
    margin: 2px;      /* Remove default margins */
    line-height: 1; /* Reduce space between lines */
}



/* Social icons styling */
.socialmedia-text {
    font-size: 1rem;
    color: #6d0000; /* soft brown */
    margin-right: 10px; /* Space between text and icons */

}

.socialmedia-icons {
    display: flex;
    align-items: center;
    justify-content: left; /* Center icons horizontally */
    margin-top: 10px; /* Space above icons */
}
.socialmedia-icons img {
    width: 25px;
    height: 25px;
    opacity: 1;
    margin-right: 5px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    filter: grayscale(100%); /* Make icons grayscale */

}
.socialmedia-icons img:hover {
    opacity: 1;
    transform: scale(1.2);
}


/* Class added via JavaScript */
.header.hide-nav {
  transform: translateY(-100%);
}

.flex-box-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 98%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 0rem; /* Space for fixed header */
}
.hero-headline, .main-desc {    
    text-align: center; /* Center the headline */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header {
    height:auto; /* Fixed mobile header height */
    }

    .landing-main {
        margin-top: 70px; /* Adjust for smaller header */
    }
    .nav-container {
        align-items: center;
        flex-direction: column;
        width: 90%;
    }
    .flex-box-hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;    
        width: 80%;
        max-width: 90%;
        margin: 0 auto;
        padding-top: 10rem;
    }

}

.site-title {
    margin-top: 0px; /* Only adjusts top margin */
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
    font-size: 2rem;
    color: hsl(14, 79%, 29%); /* soft brown */
}

.logo-image {
    height: 55px; /* Adjust as needed */
    width: auto;
}

.perspective-icon {
    width: 50px; /* Adjust size as needed */
    height: 50px;
    object-fit: contain;
    margin-right: 10px; /* Space between icon and text */
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 2100x;
    margin: 0 auto;
    padding: 10 20px;
    position: relative;
    z-index: 10; /* Ensure it appears above other content */
}

.logo{
  width: 90px; /* Fixed width for logo */
}

.title-wrapper {

    flex-grow: 1; /* Takes remaining space */

  }



.nav-links {
    width: 600px; /* Fixed width for nav links */
    list-style: none;
    display: flex;
    gap: 3rem;
    margin-top: 15px; /* Adjusted to align with logo */
    margin-left: 10; /* Remove default left margin */
    margin-right: 0; /* Remove default right margin */
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #6d0000 /* soft brown */
}

/* Main layout: 70% left, 30% right */
.landing-main {
    background: #f7f5f2;
    display: flex;
    min-height: 70vh;
    max-width: 2100px;
    width: 100%;
    margin: 2rem auto;
    gap: 2rem;
    box-sizing: border-box;
    padding-left: 1rem;
    padding-right: 1rem;
    position: relative;
    z-index: 1; /* Ensure it appears above the header */
}


.side-content {
    flex: 0 0 30%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    box-sizing: border-box;
    background: #f7f5f2;
    border-radius: 10px;
    border: 1px solid #e0dedb;
    box-shadow: 0 2px 8px rgba(60, 50,
40, 0.04);
    position: sticky;
    top: 100px; /* Adjust based on header height */

}

.dilemma-week, .latest-articles {
    background: #fff;
    border-radius: 16px;
    box-shadow: none;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.dilemma-week h3, .latest-articles h3 {
    font-size: 1.4rem;
    color: #4e3b2c;
    margin-left: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Make the inner dilemma cards also white */
.dilemma-card {
    background: #fff; /* White background for card content */
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0rem;
    color: #222;
    box-shadow: none;
    transition: box-shadow 0.2s;
    border-bottom: 1px solid #b4473b;
}
feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto; /* Center the form */
    padding: 1.5rem;
    background: #d6be9b;
}

.voting {
    margin-bottom: 0.1rem;
    text-align: center; /* Center the buttons horizontally */
}

.vote-yes,
.vote-no,
.vote-neutral {
    background: #f7f5f2; /* Default background */
    border: 1px solid #bd9b77; 
    border-radius: 6px;
    display: inline-block;
    width: 20%;           /* Three buttons fit in one row */
    min-width: 80px;
    max-width: 120px;
    padding: 0.3rem 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    color: #222; /* Default text color */
    margin-right: 1%;     /* Small gap between buttons */
    margin-bottom: 01rem;
    box-sizing: border-box;
    line-height: 1.2;
}


.vote-yes:hover {
    background: #419766;
}


.vote-no:hover {
    background: #b4473b;
}


.vote-neutral:hover {
    background: #9c8f85;
}

.latest-articles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.latest-articles li {
    margin-bottom: 0.7rem;
}

.latest-articles a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.latest-articles a:hover {
    color: #4e3b2c;
}

.footer {
    background: #fff;
    text-align: center;
    padding: 1.5rem 0;
    color: #888;
    font-size: 1rem;
    margin-top: 3rem;
    box-shadow: 0 -2px 8px rgba(60, 50, 40, 0.04);
}

/* Criteria boxes inside the third section */
.criteria-boxes {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem; /* Slight separation between boxes */
    margin-top: 2rem;
    justify-content: space-between;
}

.criteria-box {
    background: #ffffff;
    border: 0;
    border-radius: 5px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(60, 50, 40, 0.04);
    flex: 1 1 0;           /* Each box takes equal available space */
    min-width: 0;           /* Prevent overflow */
    max-width: none;        /* Remove max-width restriction */
    box-sizing: border-box;
    text-align: center;
    position: relative;
}

/* Style for clickable parts only */
.criteria-link {
    display: inline-block; /* Makes only the content clickable */
    text-decoration: none;
    color: inherit;
}
.evaluation-criteria h3 {
    margin-top: 4rem;
    font-size: 2.2rem;
    color: #4e3b2c;
    margin-bottom: 0.5rem;
    align-items: center;
}

/* On small screens, stack vertically */
@media (max-width: 700px) {
    .criteria-boxes {
        flex-direction: column;
    }
    .criteria-box {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Responsive: stack vertically on small screens */
@media (max-width: 1024px) {
    .landing-main {
        flex-direction: column;
        gap: 1.5rem;
    }
    .main-content,
    .side-content {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .criteria-boxes {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header, .footer {
        height: auto;
        padding: 1rem 0.5rem;
    }
    .landing-main {
        flex-direction: column;
        margin: 1rem 0.5rem;
        gap: 1rem;
    }
    .main-content, .side-content {
        margin-top: auto; /* Adjust for fixed header */
        padding: 1rem;
        border-radius: 10px;
        box-shadow: none;
    }
    .main-content h2 {
        font-size: 1.5rem;
    }
    .site-title {
        font-size: 2rem;
        margin-top: 10px;
    }
    .logo-image {
        height: 50px;
    }
    .nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        margin-top: 10px;
    }

    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .main-content, .side-content {
        padding: 0.5rem;
    }
    .site-title {
        font-size: 1.3rem;
    }
    .logo-image {
        height: 36px;
    }
    .nav-links {
        font-size: 0.95rem;
    }
    .dilemma-week h3, .latest-articles h3 {
        font-size: 1.1rem;
    }
    .dilemma-card h4 {
        font-size: 1rem;
    }
    .cta-button {
        width: 100%;
        font-size: 0.95rem;
        padding: 0.6rem 0;
    }
}


.main-desc {
    font-size: 1.5rem;
    color: #4e3b2c;
    margin-bottom: 1.5rem;

}


.your-ethical-dilemma {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: hsl(0, 0%, 100%);
    border: 0; 
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(201, 198, 196, 0.589);
    padding: 1.5rem;
    margin: 0.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.your-ethical-dilemma form {
    width: 100%;
    padding-bottom: 1rem;
}

#ai-dilemma-input, .your-ethical-dilemma textarea {
    width: 100%;
    box-sizing: border-box;
    background: #f7f5f2;
    border: 1px solid #e0dedb;
    border-radius: 7px;
    padding: 0.7rem;
    font-size: 1.1rem;

    
}
#ai-dilemma-input:focus, .your-ethical-dilemma textarea:focus {
    border-color: #7c766a;
    box-shadow: 0 0 0 2px #e0dedb;
    transition: border-color 0.2s, box-shadow 0.2s;
}


.your-ethical-dilemma h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #4e3b2c;
}

.secondary-message {
    color: #6d5c4d;
    margin-bottom: 1rem;
    margin-top: 0rem;
    font-size: 1.05rem;
}

.dilemma-sample-box {
    background: #f7f5f2;
    border: 1px dashed #b8a898;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.2rem;
    color: #757373;
    width: 100%;
    box-sizing: border-box;
}

.vote-acknowledgment {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #f7f5f2;
    border-radius: 4px;
    display: none; /* Hidden by default */
}
.vote-message {
    display: block;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: #4e3b2c;
    font-weight: 600;
    text-align: center;
}

.criteria-icon {
    display: block;
    margin: 0 auto 1rem auto;
    width: 50px;
    height: 50px;
    object-fit: contain;
}



/* Keep the inner divs white with border and padding */


.hero-headline {
    font-size: 4rem; /* One step larger than .site-title (2.5rem) */
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: rem;
    letter-spacing: -1px;

}

.highlight-ethical {
    color: hsl(14, 79%, 29%); /* Same color as .site-title */
}

.cta-button {
    width: 100%;
    display: block;
    margin: 1rem auto;
    padding: 1rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    border: 1px solid #ceccc9;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(90deg, #fff 0%, #696969 50%, #000 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(60, 50, 40, 0.06);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    background: linear-gradient(90deg, hsl(0, 0%, 6%) 0%, #494949 50%, hsl(0, 13%, 95%) 100%);

    box-shadow: 0 4px 16px rgba(60, 50, 40, 0.10);
}


/* Make sure forms and boxes don't stretch too much */
.main-content{
    flex: 1 1 70%;
    max-width: 70%;
    width: 80%;
    background-color: rgb(235, 231, 226);
    padding: 2rem;
    box-sizing: border-box;
    border: 0px solid #e0dedb;
    border-right: 1px solid #b89767;
    border-radius: 10px;


}
.side-content{
    padding: 1rem;
    box-sizing: border-box;
    max-width: auto; /* Limit width of side content */
    width: 100%;
    background-color: rgb(235, 231, 226);
    border-radius: 10px;
    box-sizing: border-box;
    border: 0px solid #e0dedb;
    border-right: 1px solid #b89767;
    border-radius: 10px;




}

/* For the form box, limit width and center on smaller screens */
.your-ethical-dilemma {
    max-width: 540px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive: On smaller screens, allow full width */
@media (max-width: 1300px) {
    .landing-main {
        max-width: 98vw;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .main-content, .side-content {
        max-width: 100%;
    }
    .your-ethical-dilemma {
        max-width: 100%;
    }
}



@media (max-width: 1024px) {
    .landing-main {
        flex-direction: column;
        gap: 1.5rem;
    }
    .main-content {
        border-right: none;
    }
}