html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body{
    min-height: 100vh;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: white;
    position: relative;
}

/* Global button styling - ensures black text on all devices including iOS */
button,
input[type="submit"],
input[type="button"],
.btn,
a.btn {
    color: #000;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-text-fill-color: #000;
}

/* Override for buttons that need white text */
button.white-text,
.btn.white-text {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

/* Prevent flash/flicker on tab/window focus - UNIVERSAL FIX */
* {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    -moz-perspective: 1000;
    -ms-perspective: 1000;
    perspective: 1000;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

body {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Sign In Icon Styling */
.sign-in-icon-container {
    position: fixed;
    top: 20px;
    right: 50px;
    z-index: 1000;
    cursor: pointer;
}

.sign-in-icon-container i {
    font-size: 2rem;
    color: black;
    transition: all 0.3s ease;
    position: relative;
}

.sign-in-icon-container i:hover {
    color: #F2DB2A;
    font-size: 2.25rem;
    transform: translateY(-2px);
}

/* Sign In Tooltip */
.sign-in-icon-container::before {
    content: "Menu";
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: 'Roboto Slab', serif;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 20;
}

.sign-in-icon-container:hover::before {
    opacity: 1;
}

/* Index Dropdown Menu */
.index-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 2px solid black;
    border-radius: 15px;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
    margin-top: 10px;
    opacity: 0;
    animation: slideDown 0.3s ease-out forwards;
}

.index-dropdown-menu.hide {
    display: none;
}

.index-dropdown-menu.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Index Dropdown Items */
.index-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    min-height: 44px;
    color: black;
    text-decoration: none;
    font-family: 'Roboto Slab', serif;
    font-weight: 100;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    width: 100%;
    text-align: left;
}

.index-dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}

.index-dropdown-menu .dropdown-item:hover {
    background-color: #F2DB2A !important;
}

.index-dropdown-menu .dropdown-item i {
    margin-right: 12px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
    pointer-events: none;
}

/* Responsive adjustments for sign-in icon */
@media (max-width: 768px) {
    .sign-in-icon-container {
        top: 15px;
        right: 45px;
    }

    .sign-in-icon-container i {
        font-size: 1.8rem;
    }

    .sign-in-icon-container i:hover {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .sign-in-icon-container {
        top: 12px;
        right: 42px;
    }

    .sign-in-icon-container i {
        font-size: 1.6rem;
    }

    .sign-in-icon-container i:hover {
        font-size: 1.8rem;
    }
}

/* Welcome - Default Layout */
.welcome-container{
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}
.welcome-png{
    width: 75%;
    height: auto;
    margin-bottom: 3%;
    margin-right: 5%;
    float: right;
}

.word-animation {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.word-animation.show {
    opacity: 1;
}

.sprk-yellow {
    color: #F2DB2A;
    font-weight: 300;
}
.title-text-container{
    position: absolute;
    margin-top: 12%;
    margin-left: 25%;
    display: none;
}
.title-text{
    font-family: 'Oswald';
    font-size: 6rem;
    color: black !important;
}
.welcome-text-container{
    position: absolute;
    margin-top: 37%;
    margin-left: -8%;
}
.welcome-text{
    font-family: 'Roboto Slab';
    font-weight: 100;
    font-size: 3.5rem;
}
.join-btn-container{
    position: absolute;
    margin-top: 35%;
    margin-left: 50%;
}
.join-now{
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 65px;
    padding-right: 65px;
    font-family: "Roboto Slab";
    font-weight: 100;
    font-size: 1.55rem;
    color: black;
    background-color: #F2DB2A;
    border: none;
    border-radius: 18px;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    cursor: pointer;
}

.join-now:hover{
    background-color: #F2DB2A;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}


/* Join Modal */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    background-color: rgba(242, 219, 42, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal-overlay.fade-in {
    opacity: 1;
}

.modal-overlay.fade-out {
    opacity: 0;
}

.join-modal-container{
    width: 100%;
    max-width: 750px;
    position: absolute;
    left: 50%;
    top: 100px;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    margin-bottom: 100px;
}

.join-modal-container .modal-content {
    background: #f5f7fa;
    border: 2px solid black;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
    position: relative;
}

.join-modal-container.fade-in {
    opacity: 1;
}

.join-modal-container.fade-out {
    opacity: 0;
}

.close-btn-container{
    position: absolute;
    right: 0;
    top: 0;
    margin: 15px;
    z-index: 10;
}

.close-btn-joinModal button, .close-btn-signIn button{
    font-family: 'Oswald';
    color: black;
    font-size: 1rem;
    background-color: white;
    border: solid 2px black;
    border-radius: 5px;
    width: 1.5rem;
    height: 1.70rem;
    cursor: pointer;
    transition: all 0.3s;
}

.close-btn-joinModal button:hover, .close-btn-signIn button:hover{
    background-color: #F2DB2A;
}

/* Modal Header */
.modal-header {
    text-align: center;
    margin-bottom: 35px;
}

.light-bulb-img-container{
    background: linear-gradient(135deg, #F2DB2A, #e0c828);
    width: 90px;
    height: 90px;
    min-width: 90px;
    min-height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 20px rgba(242, 219, 42, 0.4);
    flex-shrink: 0;
}

.light-bulb-img-container img{
    width: 55px;
    height: auto;
    filter: brightness(0);
}

.title-form{
    font-family:'Oswald';
    font-size: 2.5rem;
    font-weight: 700;
    color: black;
    margin-bottom: 8px;
}

.title-form-text{
    font-family:'Roboto Slab';
    font-weight: 100;
    color: black;
    font-size: 1.2rem;
}

/* Card Sections */
.form-section {
    background: white;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.form-section:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.section-icon {
    width: 40px;
    height: 40px;
    background: #F2DB2A;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 18px;
    flex-shrink: 0;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: black;
}

/* Form Grid */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row.single {
    grid-template-columns: 1fr;
}

.form-row:last-child {
    margin-bottom: 0;
}

form input[type="text"],
form input[type="email"],
form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.8rem;
    font-family: 'Roboto Slab', serif;
    font-weight: 100;
    transition: all 0.3s;
    background: white;
}

form input:focus {
    outline: none;
    border-color: #F2DB2A;
    box-shadow: 0 0 0 2px rgba(242, 219, 42, 0.2);
}

form input::placeholder {
    font-family: 'Roboto Slab', serif;
    font-weight: 100;
}

/* Legacy input IDs for backward compatibility */
#first_name, #last_name, #email, #username, #password, #birth_date{
    width: 100%;
    margin: 0;
    font-family: 'Roboto Slab';
    font-weight: 100;
    font-size: 0.8rem;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    height: 40px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#first_name:focus, #last_name:focus, #email:focus, #username:focus, #password:focus, #birth_date:focus{
    border-color: #F2DB2A;
    box-shadow: 0 0 0 2px rgba(242, 219, 42, 0.2);
    outline: none;
}

/* Checkbox Section */
.checkbox-section {
    background: white;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 28px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkbox-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    background: #fafafa;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
}

.checkbox-card:hover {
    background: #fff9e6;
    border-color: #F2DB2A;
    transform: translateY(-2px);
}

.checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.checkbox-card.selected {
    background: #fff9e6;
    border-color: #F2DB2A;
}

.checkbox-card.selected .check-indicator {
    opacity: 1;
    transform: scale(1);
}

.card-content {
    pointer-events: none;
}

.card-icon {
    font-size: 36px;
    margin-bottom: 12px;
    color: #F2DB2A;
}

.card-label {
    font-family: 'Roboto Slab', serif;
    font-weight: 100;
    font-size: 1rem;
    color: black;
}

.check-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: #F2DB2A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 12px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s;
    font-weight: bold;
}

.checkbox-card input[type="checkbox"]:checked ~ .check-indicator {
    opacity: 1;
    transform: scale(1);
}

/* Terms at Bottom Section */
.terms-bottom-section {
    background: #fff9e6;
    border: 2px solid #F2DB2A;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.terms-bottom-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: black;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-bottom-title i {
    color: #F2DB2A;
    font-size: 1.3rem;
}

.policy-links-inline {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.policy-link-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: black;
    text-decoration: none;
    font-family: 'Roboto Slab', serif;
    font-weight: 100;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.policy-link-inline:hover {
    background-color: #F2DB2A;
    border-color: #F2DB2A;
}

.policy-link-inline i {
    font-size: 1rem;
    color: black;
}

.agreement-checkbox-bottom {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.agreement-checkbox-bottom input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: #F2DB2A;
    cursor: pointer;
    flex-shrink: 0;
}

.agreement-checkbox-bottom label {
    font-family: 'Roboto Slab', serif;
    font-weight: 100;
    font-size: 0.95rem;
    color: black;
    cursor: pointer;
    text-align: left;
    line-height: 1.5;
}

/* Submit Button */
#submit-btn {
    width: 100%;
    font-family: 'Roboto Slab';
    font-weight: 100;
    border: none;
    border-radius: 5px;
    background-color: #F2DB2A;
    padding: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0;
    display: block;
}

#submit-btn:hover:not(:disabled) {
    background-color: white;
    border: 2px solid #F2DB2A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#submit-btn:disabled {
    background-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Footer */
.member-text-container{
    text-align: center;
    margin-top: 25px;
}

.member-text{
    font-family: 'Roboto Slab';
    font-weight: 100;
    color: black;
    font-size: 1rem;
}

.already-member-btn{
    background-color: #F2DB2A;
    border: none;
    border-radius: 5px;
    font-family: 'Roboto Slab';
    font-weight: 100;
    color: black;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.already-member-btn:hover{
    background-color: white;
    border: 2px solid #F2DB2A;
}

/* Old checkbox styles (legacy - can be removed if not used elsewhere) */
.checkbox-container{
    display: flex;
    width: 90%;
    margin: 3% auto;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.label-checkbox{
    font-family: "Roboto Slab";
    font-weight: 100;
    color: black;
    font-size: 1rem;
    margin: 0;
}

#check-maker, #check-consumer{
    width: 24px;
    height: 24px;
    accent-color: #F2DB2A;
    margin: 0;
}

/* Responsive adjustments for new modal design */
@media (max-width: 768px) {
    .join-modal-container .modal-content {
        padding: 30px 20px;
    }

    .form-row,
    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .title-form {
        font-size: 2rem;
    }

    .title-form-text {
        font-size: 1rem;
    }

    .policy-links-inline {
        flex-direction: column;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .close-btn-container {
        top: -10px;
    }
}

@media (max-width: 480px) {
    .join-modal-container {
        max-width: 95vw;
    }

    .join-modal-container .modal-content {
        padding: 25px 15px;
    }

    .title-form {
        font-size: 1.8rem;
    }

    .title-form-text {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .form-section,
    .checkbox-section {
        padding: 20px;
    }
}
/* Log-in Modal */
.sign-in-modal{
    width: min(400px, 90vw);
    height: auto;
    min-height: 350px;
    max-height: 80vh;
    background-color: white;
    border: 2px solid black;
    border-radius: 18px;
    position: fixed;
    display:flex;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.sign-in-modal.fade-in {
    opacity: 1;
}

.sign-in-modal.fade-out {
    opacity: 0;
}
.welcome-back-text-container{
    width: 100%;
    margin-top:10%;
    text-align: center;
}
.welcome-back-text{
    color: black;
    font-family: 'Oswald';
    font-size: 2rem;
    text-align: center;
}
.welcome-back-instruction{
    font-family:'Roboto Slab';
    font-weight: 100;
    color: black;
    font-size: 1rem;
    text-align: center;
}

.sign-in-form{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sign-in-form form{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#username_signin, #password_signin {
    width: 95%;
    margin: 3% auto 0 auto;
    font-family: 'Roboto Slab';
    font-weight: 100;
    font-size: 1rem;
    display: block;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    height: 40px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#username_signin:focus, #password_signin:focus {
    border-color: #F2DB2A;
    box-shadow: 0 0 0 2px rgba(242, 219, 42, 0.2);
    outline: none;
}

#login-btn{
    font-family:'Roboto Slab';
    font-weight: 100;
    color: black;
    font-size: 1rem;
    padding: 8px 16px;
    background-color: #F2DB2A;
    border-radius: 8px;
    border: none;
    margin: 4% auto 0 auto;
    width: auto;
    min-width: 120px;
    display: block;
    cursor: pointer;
}

.forgot-credentials-container {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.forgot-credentials-btn {
    background: none;
    border: none;
    font-family: 'Roboto Slab', serif;
    font-weight: 100;
    color: #666;
    font-size: 0.85rem;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.forgot-credentials-btn:hover {
    color: #F2DB2A;
    text-decoration: none;
}

/* Forgot Credentials Content Styling */
.forgot-credentials-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.forgot-text-container {
    width: 100%;
    margin-top: 10%;
    text-align: center;
}

.forgot-title-text {
    color: black;
    font-family: 'Oswald';
    font-size: 2rem;
    text-align: center;
}

.forgot-instruction-text {
    font-family: 'Roboto Slab';
    font-weight: 100;
    color: black;
    font-size: 1rem;
    text-align: center;
    margin-top: 10px;
}

.forgot-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.forgot-form form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#email_forgot {
    width: 95%;
    margin: 3% auto 0 auto;
    font-family: 'Roboto Slab';
    font-weight: 100;
    font-size: 1rem;
    display: block;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    height: 40px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#email_forgot:focus {
    border-color: #F2DB2A;
    box-shadow: 0 0 0 2px rgba(242, 219, 42, 0.2);
    outline: none;
}

#forgot-submit-btn {
    font-family: 'Roboto Slab';
    font-weight: 100;
    color: black;
    font-size: 1rem;
    padding: 8px 16px;
    background-color: white;
    border-radius: 8px;
    border: solid 2px black;
    margin: 4% auto 0 auto;
    width: auto;
    min-width: 140px;
    display: block;
    cursor: pointer;
}

#forgot-submit-btn:hover {
    background-color: #F2DB2A;
}

.back-to-signin-container {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.back-to-signin-btn {
    background: none;
    border: none;
    font-family: 'Roboto Slab', serif;
    font-weight: 100;
    color: #666;
    font-size: 0.85rem;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.back-to-signin-btn:hover {
    color: #F2DB2A;
    text-decoration: none;
}

.hide{
    display: none;
}

/* Login Error Modal */
.login-error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10%;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.login-error-modal:not(.hide) {
    opacity: 1;
    pointer-events: auto;
}

.error-modal-content {
    background-color: white;
    border: 3px solid #F2DB2A;
    border-radius: 18px;
    padding: 40px 30px;
    width: min(400px, 90vw);
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Animation removed - using same fade effect as sign-in modal */

.error-icon-container {
    margin-bottom: 20px;
}

.error-icon-container i {
    font-size: 4rem;
    color: #F2DB2A;
    transition: none;
    transform: none;
}

.error-icon-container i:hover {
    font-size: 4rem;
    color: #F2DB2A;
    transform: none;
}

.error-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: black;
    margin-bottom: 15px;
}

.error-message {
    font-family: 'Roboto Slab', serif;
    font-weight: 100;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.5;
}

.error-close-btn {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    padding: 10px 30px;
    background-color: #F2DB2A;
    color: black;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-close-btn:hover {
    background-color: white;
    border: 2px solid #F2DB2A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for error modal */
@media (max-width: 480px) {
    .error-modal-content {
        padding: 30px 20px;
    }

    .error-icon-container i {
        font-size: 3rem;
    }

    .error-title {
        font-size: 1.6rem;
    }

    .error-message {
        font-size: 0.95rem;
    }

    .error-close-btn {
        font-size: 0.9rem;
        padding: 8px 24px;
    }
}

/* Terms & Privacy Agreement Modal */
.terms-agreement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(242, 219, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.terms-agreement-modal:not(.hide) {
    opacity: 1;
    pointer-events: auto;
}

.terms-modal-content {
    background-color: white;
    border: 3px solid #F2DB2A;
    border-radius: 18px;
    padding: 40px 35px;
    width: min(500px, 90vw);
    max-height: 85vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    animation: termsSlideIn 0.3s ease-out;
    position: relative;
}

.close-btn-terms button {
    font-family: 'Oswald';
    color: black;
    font-size: 1rem;
    background-color: white;
    border: solid 2px black;
    border-radius: 5px;
    width: 1.5rem;
    height: 1.70rem;
    cursor: pointer;
}

.close-btn-terms button:hover {
    background-color: #F2DB2A;
}

@keyframes termsSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.terms-icon-container {
    margin-bottom: 20px;
}

.terms-icon-container i {
    font-size: 3.5rem;
    color: #F2DB2A;
    transition: none;
    transform: none;
}

.terms-icon-container i:hover {
    font-size: 3.5rem;
    color: #F2DB2A;
    transform: none;
}

.terms-modal-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: black;
    margin-bottom: 20px;
}

.terms-modal-text {
    font-family: 'Roboto Slab', serif;
    font-weight: 100;
    font-size: 1rem;
    color: #333;
    text-align: left;
    margin-bottom: 25px;
}

.terms-modal-text p {
    text-align: center;
    margin-bottom: 20px;
}

.policy-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.policy-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background-color: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: black;
    text-decoration: none;
    font-family: 'Roboto Slab', serif;
    font-weight: 100;
    transition: all 0.3s ease;
}

.policy-link:hover {
    background-color: #F2DB2A;
    border-color: #F2DB2A;
    transform: translateX(5px);
}

.policy-link i {
    font-size: 1.2rem;
    color: black;
}

.agreement-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.agreement-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: #F2DB2A;
    cursor: pointer;
    flex-shrink: 0;
}

.agreement-checkbox label {
    font-family: 'Roboto Slab', serif;
    font-weight: 100;
    font-size: 0.95rem;
    color: black;
    cursor: pointer;
    text-align: left;
    line-height: 1.5;
}

.terms-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.terms-decline-btn,
.terms-accept-btn {
    font-family: 'Roboto Slab', serif;
    font-weight: 100;
    font-size: 1rem;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.terms-decline-btn {
    background-color: white;
    color: black;
    border: 2px solid black;
}

.terms-decline-btn:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.terms-accept-btn {
    background-color: #F2DB2A;
    color: black;
    border: 2px solid #F2DB2A;
}

.terms-accept-btn:hover:not(:disabled) {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.terms-accept-btn:disabled {
    background-color: #e0e0e0;
    color: #999;
    border-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Responsive adjustments for terms modal */
@media (max-width: 480px) {
    .terms-modal-content {
        padding: 30px 20px;
    }

    .terms-icon-container i {
        font-size: 3rem;
    }

    .terms-modal-title {
        font-size: 1.6rem;
    }

    .terms-modal-text {
        font-size: 0.9rem;
    }

    .terms-modal-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .terms-decline-btn,
    .terms-accept-btn {
        width: 100%;
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .agreement-checkbox label {
        font-size: 0.85rem;
    }
}

/* About Section */
.about-line {
    --s: 5px;    /* control the size */
    --c: black; /* the color */
    height: var(--s);
    width: 86%;
    --_g: var(--s) top 50%,var(--c) calc(100% - 1px),#0000;
    background: 0/calc(4*var(--s)) space no-repeat;
    background-image:
     radial-gradient(circle closest-side at left  var(--_g)),
     radial-gradient(circle closest-side at right var(--_g)),
     linear-gradient(90deg,#0000 25%,var(--c) 0 75%,#0000 0);
     border: none;
     margin: 40px auto;
  }

.about-container{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    max-width: 100vw;
    min-height: 500px;
    height: auto;
    margin: 0 auto;
    padding: 40px 0;
    overflow: visible;
}
.about-photo-container{
    width: 100%;
    height: 100%;
}
.about-img img{
    object-fit: cover;
    height: 95%;
    width: 95%;
    padding: 3%;
    border-radius: 25px;
}
.about-text-container{
    width: 100%;
    height: 100%;
    text-align: center;
    padding-left: 3%;
}
.about-title{
    font-family: "Oswald";
    font-size: 2.5rem;
    color: black;
    margin-bottom: 15px;
}
.about-text{
    font-size: 0.90rem;
    color: black;
    font-family: "Roboto Slab";
    font-weight: 100;
}
.about-text p {
    width: 81%;
    margin-left: auto;
    margin-right: auto;
}

/* Makers Section */
/* .maker-container{
    border-right: 5px black solid;
    border-radius: 5px;
    width: 86%;
    margin-left: 7%;
} */
.maker-line{
    --s: 5px;    /* control the size */
    --c: black; /* the color */
    height: var(--s);
    width: 86%;
    --_g: var(--s) top 50%,var(--c) calc(100% - 1px),#0000;
    background: 0/calc(4*var(--s)) space no-repeat;
    background-image: 
     radial-gradient(circle closest-side at left  var(--_g)),   
     radial-gradient(circle closest-side at right var(--_g)),   
     linear-gradient(90deg,#0000 25%,var(--c) 0 75%,#0000 0);
     border: none;
    
}

.featured-sections-line-top {
    width: 86%;
    border: 2.5px solid black;
    border-radius: 5px;
    margin: 40px auto;
}

.featured-sections-line-middle {
    --s: 5px;    /* control the size */
    --c: black; /* the color */
    height: var(--s);
    width: 86%;
    --_g: var(--s) top 50%,var(--c) calc(100% - 1px),#0000;
    background: 0/calc(4*var(--s)) space no-repeat;
    background-image:
     radial-gradient(circle closest-side at left  var(--_g)),
     radial-gradient(circle closest-side at right var(--_g)),
     linear-gradient(90deg,#0000 25%,var(--c) 0 75%,#0000 0);
     border: none;
    margin: 40px auto;
}
.maker-title-container{
    width: 100%;
    text-align: left;
    margin-bottom: 2%;
    margin-left: 30px;
}

.sprk-title-container{
    width: 100%;
    text-align: left;
    margin-bottom: 2%;
    margin-left: 30px;
}
.maker-title-text{
    font-family: 'Oswald';
    font-size: 2.5rem;
    color: black;
    margin-left: 90px;
}

.sprk-title-text{
    font-family: 'Oswald';
    font-size: 2.5rem;
    color: black;
    margin-left: 90px;
}
/* Single Card Carousel for Makers */
.maker-carousel-container {
    position: relative;
    width: 100%;
    max-width: min(1200px, 100vw);
    min-height: 580px;
    margin: 0 auto;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.maker-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    padding: 25px 0;
    margin: 0 auto;
}

.maker-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    align-items: stretch;
}

.maker-card-single {
    flex: 0 0 calc(33.333% - 20px);
    height: 400px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
    margin: 0 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

.maker-card-single img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #F2DB2A;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.maker-card-single img:hover {
    transform: scale(1.05);
    border-color: black;
}

.maker-card-single h3 {
    font-family: 'Oswald';
    font-size: 1.3rem;
    color: black;
    margin: 8px 0 4px 0;
}

.maker-card-single .maker-title {
    font-family: 'Roboto Slab';
    font-size: 0.9rem;
    color: #666;
    font-weight: 300;
    margin-bottom: 8px;
}

.maker-card-single .maker-bio {
    font-family: 'Roboto Slab';
    font-size: 0.8rem;
    color: black;
    font-weight: 100;
    line-height: 1.3;
    height: 200px !important;
    overflow: hidden;
}


/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: rgba(242, 219, 42, 0.9);
    border-color: rgba(0, 0, 0, 0.4);
    color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-nav.prev {
    left: 5px;
}

.carousel-nav.next {
    right: 5px;
}

/* Mobile navigation arrows - smaller */
@media (max-width: 600px) {
    .carousel-nav, .sprk-carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Dot Indicators */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #F2DB2A;
    border-color: black;
}

.carousel-dot:hover {
    background: #F2DB2A;
    transform: scale(1.2);
}

/* Tablet: 2 cards visible */
@media (min-width: 601px) and (max-width: 900px) {
    .maker-carousel-wrapper, .sprk-carousel-wrapper {
        max-width: 580px;
        padding: 25px 60px;
        overflow: hidden;
    }
    .maker-card-single, .sprk-card-single {
        flex: 0 0 calc(42% - 15px);
    }
}

/* Mobile phones: 1 card visible */
@media (max-width: 600px) {
    .maker-carousel-container, .sprk-carousel-container {
        max-width: 400px;
        padding: 20px 15px;
    }
    .maker-carousel-wrapper, .sprk-carousel-wrapper {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    .maker-card-single, .sprk-card-single {
        flex: 0 0 calc(100% - 20px);
        margin: 0 10px;
        padding: 20px;
    }
    .maker-card-single img, .sprk-card-single img {
        width: 100px;
        height: 100px;
    }
    .maker-card-single h3, .sprk-card-single h3 {
        font-size: 1.3rem;
    }
    .maker-card-single .maker-title, .sprk-card-single .sprk-category {
        font-size: 0.9rem;
    }
    .maker-card-single .maker-bio, .sprk-card-single .sprk-description {
        font-size: 0.8rem;
        max-height: 120px;
    }
}


/* Single Card Carousel for Sprks */
.sprk-carousel-container {
    position: relative;
    width: 100%;
    max-width: min(1200px, 100vw);
    min-height: 580px;
    margin: 0 auto;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.sprk-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    padding: 25px 0;
    margin: 0 auto;
}

.sprk-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    align-items: stretch;
}

.sprk-card-single {
    flex: 0 0 calc(33.333% - 20px);
    height: 400px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
    margin: 0 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
}

.sprk-card-single img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #F2DB2A;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.sprk-card-single img:hover {
    transform: scale(1.05);
    border-color: black;
}

.sprk-card-single h3 {
    font-family: 'Oswald';
    font-size: 1.5rem;
    color: black;
    margin: 10px 0 5px 0;
}

.sprk-card-single .sprk-category {
    font-family: 'Roboto Slab';
    font-size: 1rem;
    color: #666;
    font-weight: 300;
    margin-bottom: 10px;
}

.sprk-card-single .sprk-description {
    font-family: 'Roboto Slab';
    font-size: 0.85rem;
    color: black;
    font-weight: 100;
    line-height: 1.4;
    max-height: 150px;
    overflow: hidden;
}

/* Navigation Arrows for Sprks */
.sprk-carousel-nav {
    position: absolute;
    top: 15px;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: normal;
    color: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 10;
}

.sprk-carousel-nav:hover {
    color: rgba(0, 0, 0, 0.8);
    transform: scale(1.2);
}

.sprk-carousel-nav.prev {
    left: 15px;
}

.sprk-carousel-nav.next {
    right: 15px;
}

/* Dot Indicators for Sprks */
.sprk-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.sprk-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sprk-carousel-dot.active {
    background: #F2DB2A;
    border-color: black;
}

.sprk-carousel-dot:hover {
    background: #F2DB2A;
    transform: scale(1.2);
}

/* Responsive Design for Sprks Carousel */
@media (max-width: 768px) {
    .sprk-carousel-container {
        max-width: 350px;
        padding: 20px 40px;
    }

    .sprk-carousel-wrapper {
        width: 85%;
        max-width: 300px;
    }

    .sprk-card-single {
        padding: 20px;
    }

    .sprk-card-single img {
        width: 120px;
        height: 120px;
    }

    .sprk-card-single h3 {
        font-size: 1.5rem;
    }

    .sprk-card-single .sprk-category {
        font-size: 1rem;
    }

    .sprk-card-single .sprk-description {
        font-size: 0.9rem;
        max-height: 120px;
    }

    .sprk-carousel-nav {
        width: 25px;
        height: 25px;
        font-size: 20px;
        top: 10px;
    }

    .sprk-carousel-nav.prev {
        left: 10px;
    }

    .sprk-carousel-nav.next {
        right: 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .maker-carousel-container, .sprk-carousel-container {
        max-width: 100%;
        width: 100%;
        padding: 15px 60px;
        position: relative;
        overflow: visible;
    }

    .maker-carousel-wrapper, .sprk-carousel-wrapper {
        width: 100%;
        max-width: none;
        padding: 30px 0;
        margin: 0;
        overflow: hidden;
    }

    /* Tablet: 2 cards per view */
    .maker-card-single, .sprk-card-single {
        min-width: calc(45% - 20px);
        max-width: calc(45% - 20px);
        margin: 0 10px;
        flex-shrink: 0;
    }


    .maker-card-single, .sprk-card-single {
        padding: 20px;
    }

    .maker-carousel-container .carousel-nav.next,
    .sprk-carousel-container .sprk-carousel-nav.next {
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        background: rgba(255, 255, 255, 0.8) !important;
        border: 1px solid #ccc !important;
        border-radius: 50% !important;
        z-index: 1000 !important;
        color: black !important;
    }

    .maker-carousel-container .carousel-nav.prev,
    .sprk-carousel-container .sprk-carousel-nav.prev {
        left: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        background: rgba(255, 255, 255, 0.8) !important;
        border: 1px solid #ccc !important;
        border-radius: 50% !important;
        z-index: 1000 !important;
        color: black !important;
    }

    .maker-card-single img {
        width: 100px;
        height: 100px;
    }

    .sprk-card-single img {
        width: 100px;
        height: 100px;
    }
}

/* Mobile Layout - Stack Vertically (Makers on top, Sprks below) */
@media (max-width: 768px) {
    .maker-carousel-container, .sprk-carousel-container {
        max-width: 350px;
        padding: 20px 50px;
    }

    .maker-carousel-wrapper, .sprk-carousel-wrapper {
        width: 85%;
        max-width: 300px;
        padding: 25px 0;
        overflow: hidden;
    }

    /* Mobile: Display 1 card at a time */
    .maker-card-single, .sprk-card-single {
        min-width: calc(100% - 20px);
        margin: 0 10px;
    }

    /* Mobile: Need all 6 dots since showing 1 card at a time */
    .carousel-dots, .sprk-carousel-dots {
        display: none; /* Hide dots on mobile for cleaner look */
    }


    .maker-card-single .maker-title, .sprk-card-single .sprk-category {
        font-size: 1rem;
    }

    .maker-card-single .maker-bio, .sprk-card-single .sprk-description {
        font-size: 0.9rem;
        max-height: 120px;
    }

    .carousel-nav, .sprk-carousel-nav {
        width: 25px;
        height: 25px;
        font-size: 20px;
        top: 10px;
    }

    .carousel-nav.prev, .sprk-carousel-nav.prev {
        left: 10px;
    }

    .carousel-nav.next, .sprk-carousel-nav.next {
        right: 5px;
    }
}

.sprk-idea img{
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.view-more-container{
    margin: 3% 0% 5% 16%;
}
.view-more-container button{
    font-family: 'Roboto Slab';
    font-size: 1.2rem;
    color: black;
    font-weight: 100;
    border-radius: 18px;
    border: 2px black solid;
    padding: 1% 3% 1% 3%;
    background-color: white;
}
.view-more-container button:hover{
    background-color: #F2DB2A;
    
}
.sprk-line{
    width: 80%;
    border: 1.5px solid black;
    border-radius: 6px;
}
/* Bootstrap Overrides */
hr {
    color: black !important;
    border-color: black !important;
    opacity: 1 !important;
}

#makerCarousel, #sprkCarousel {
    margin: 0 auto !important;
    max-width: 1320px !important;
    overflow: visible !important;
    position: relative !important;
}


.carousel-control-prev, .carousel-control-next {
    width: 5%;
}

.carousel-control-prev {
    margin-left: 0 !important;
}

.carousel-control-next {
    margin-right: 0 !important;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    padding: 8px !important;
}

.carousel-control-prev-icon:hover, .carousel-control-next-icon:hover {
    background-color: rgba(242, 219, 42, 0.9);
}

.carousel-indicators {
    display: none !important;
}

/* Bootstrap Carousel Card Styling - Original */
#makerCarousel .card, #sprkCarousel .card, .container.layout-2 .card {
    border: 1px solid #ddd;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 10px;
    min-height: 400px;
    height: auto;
    display: flex;
    flex-direction: column;
}

/* Ensure Layout 2 cards have proper height on desktop */
#makerCarousel.layout-2 .card,
#sprkCarousel.layout-2 .card,
.container.layout-2 .card {
    height: 400px !important;
}

/* Card hover effects - removed yellow border and outline */
#makerCarousel .card,
#sprkCarousel .card {
    transition: all 0.3s ease;
}

/* Layout Option 1: Large image at top, minimal text below */
#makerCarousel.layout-1 .card-img-top,
#sprkCarousel.layout-1 .card-img-top {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    object-position: center 30% !important;
    border-radius: 15px 15px 0 0 !important;
    border: none !important;
    margin: 0 !important;
}

#makerCarousel.layout-1 .card-body,
#sprkCarousel.layout-1 .card-body {
    padding: 15px !important;
    min-height: 150px !important;
    height: auto !important;
    border-radius: 0 0 15px 15px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#makerCarousel.layout-1 .card-title,
#sprkCarousel.layout-1 .card-title {
    font-size: 1.2rem !important;
    margin-bottom: 5px !important;
}

#makerCarousel.layout-1 .card-subtitle,
#sprkCarousel.layout-1 .card-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 8px !important;
}

#makerCarousel.layout-1 .card-text,
#sprkCarousel.layout-1 .card-text {
    font-size: 0.8rem !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    flex: 1;
}

/* Layout Option 2: Image with overlay text */
/* Apply to all cards in layout-2 */
#makerCarousel.layout-2 .card,
#sprkCarousel.layout-2 .card {
    position: relative !important;
    overflow: visible !important;
    border-radius: 15px !important;
    height: 400px !important;
}

/* Image overlay styles - ONLY for cards with images (not placeholder cards) */
#makerCarousel.layout-2 .card:not(.placeholder-sprk-card) .card-img-top,
#sprkCarousel.layout-2 .card:not(.placeholder-sprk-card) .card-img-top,
.container.layout-2 .card:not(.placeholder-sprk-card) .card-img-top {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 15px !important;
    border: none !important;
    margin: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
}

/* Text overlay styles - ONLY for cards with images (not placeholder cards) */
#makerCarousel.layout-2 .card:not(.placeholder-sprk-card) .card-body,
#sprkCarousel.layout-2 .card:not(.placeholder-sprk-card) .card-body,
.container.layout-2 .card:not(.placeholder-sprk-card) .card-body {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.8) 100%) !important;
    color: white !important;
    padding: 30px 20px 20px 20px !important;
    height: auto !important;
    z-index: 2 !important;
    text-align: center !important;
}

/* White text with shadow - ONLY for cards with images (not placeholder cards) */
#makerCarousel.layout-2 .card:not(.placeholder-sprk-card) .card-title,
#makerCarousel.layout-2 .card:not(.placeholder-sprk-card) .card-subtitle,
#makerCarousel.layout-2 .card:not(.placeholder-sprk-card) .card-text,
#sprkCarousel.layout-2 .card:not(.placeholder-sprk-card) .card-title,
#sprkCarousel.layout-2 .card:not(.placeholder-sprk-card) .card-subtitle,
#sprkCarousel.layout-2 .card:not(.placeholder-sprk-card) .card-text,
.container.layout-2 .card:not(.placeholder-sprk-card) .card-title,
.container.layout-2 .card:not(.placeholder-sprk-card) .card-subtitle,
.container.layout-2 .card:not(.placeholder-sprk-card) .card-text {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
}

/* Font styling for layout-2 titles - Oswald */
#makerCarousel.layout-2 .card-title,
#sprkCarousel.layout-2 .card-title,
.container.layout-2 .card-title {
    font-family: 'Oswald', sans-serif !important;
    font-size: 1.4rem !important;
    font-weight: 400 !important;
    margin-bottom: 8px !important;
}

/* Font styling for layout-2 subtitles - Roboto Slab 100 */
#makerCarousel.layout-2 .card-subtitle,
#sprkCarousel.layout-2 .card-subtitle,
.container.layout-2 .card-subtitle {
    font-family: 'Roboto Slab', serif !important;
    font-weight: 100 !important;
    font-size: 1rem !important;
    margin-bottom: 10px !important;
    color: rgba(255,255,255,0.9) !important;
}

/* Font styling for layout-2 text - Roboto Slab 100 */
#makerCarousel.layout-2 .card-text,
#sprkCarousel.layout-2 .card-text,
.container.layout-2 .card-text {
    font-family: 'Roboto Slab', serif !important;
    font-weight: 100 !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
}

/* Layout Option 3: Square image with side-by-side layout */
.layout-3 .card {
    display: flex !important;
    flex-direction: row !important;
    height: 200px !important;
}

.layout-3 .card-img-top {
    width: 200px !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 15px 0 0 15px !important;
    flex-shrink: 0 !important;
}

.layout-3 .card-body {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 20px !important;
}

/* Current default styling (keeping as backup) */
#makerCarousel .card-img-top, #sprkCarousel .card-img-top {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 3px solid #F2DB2A !important;
    margin: 20px auto 15px auto !important;
    display: block !important;
}

.carousel .card-title {
    font-family: 'Oswald', sans-serif;
    color: black;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.carousel .card-subtitle {
    font-family: 'Roboto Slab', serif;
    color: #666;
    font-weight: 300;
    margin-bottom: 15px;
}

.carousel .card-text {
    font-family: 'Roboto Slab', serif;
    color: black;
    font-weight: 100;
    font-size: 0.9rem;
    line-height: 1.4;
}
/* Contact Icon Styling */
.contact-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: #F2DB2A;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* View Work Icon Styling - positioned below contact icon */
.view-work-icon {
    position: absolute;
    top: 65px;
    right: 15px;
    z-index: 10;
    background: #F2DB2A;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-icon i {
    font-size: 1.1rem !important;
    color: #000;
    transition: all 0.3s ease;
    filter: none;
}

/* Makers carousel - explicitly set size */
#makerCarousel .contact-icon i.fa-solid.fa-envelope {
    font-size: 1.1rem !important;
}

/* Sprks carousel - make envelope icon smaller to match makers */
#sprkCarousel .card .contact-icon i.fa-solid.fa-envelope {
    font-size: 0.7rem !important;
}

#sprkCarousel.layout-2 .card .contact-icon i.fa-solid.fa-envelope {
    font-size: 0.7rem !important;
}

.container.layout-2 .card .contact-icon i.fa-solid.fa-envelope {
    font-size: 0.7rem !important;
}

#sprkCarousel .contact-icon i {
    font-size: 0.7rem !important;
}

#sprkCarousel.layout-2 .contact-icon i {
    font-size: 0.7rem !important;
}

.container.layout-2 .contact-icon i {
    font-size: 0.7rem !important;
}

.view-work-icon i {
    font-size: 1.1rem;
    color: #000;
    transition: all 0.3s ease;
    filter: none;
}

.contact-icon:hover {
    background: #000;
    transform: scale(1.1);
}

.contact-icon:hover i {
    color: #F2DB2A;
}

.view-work-icon:hover {
    background: #000;
    transform: scale(1.1);
}

.view-work-icon:hover i {
    color: #F2DB2A;
}

@keyframes bounce {
    0% { transform: translateY(0) scale(1); }
    30% { transform: translateY(-10px) scale(1.08); }
    50% { transform: translateY(-6px) scale(1.05); }
    70% { transform: translateY(-8px) scale(1.05); }
    100% { transform: translateY(-8px) scale(1.05); }
}

/* Tooltip styling with black background */
.contact-icon::before {
    content: "Contact";
    position: absolute;
    bottom: -35px;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: 'Roboto Slab', serif;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 20;
}

.view-work-icon::before {
    content: "View my work";
    position: absolute;
    bottom: -35px;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: 'Roboto Slab', serif;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 20;
}

.contact-icon:hover::before,
.view-work-icon:hover::before {
    opacity: 1;
}

/* Responsive adjustments for contact icons */
@media (max-width: 768px) {
    .contact-icon {
        width: 35px;
        height: 35px;
        top: 12px;
        right: 12px;
    }

    .view-work-icon {
        width: 35px;
        height: 35px;
        top: 55px;
        right: 12px;
    }

    .contact-icon i,
    .view-work-icon i {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .contact-icon {
        width: 32px;
        height: 32px;
        top: 10px;
        right: 10px;
    }

    .view-work-icon {
        width: 32px;
        height: 32px;
        top: 50px;
        right: 10px;
    }

    .contact-icon i,
    .view-work-icon i {
        font-size: 1.1rem;
    }
}

/* Force center all card content - Nuclear option */
.carousel .carousel-inner .carousel-item .card .card-body,
.carousel .carousel-inner .carousel-item .card .card-body *,
.card-body,
.card-body * {
    text-align: center !important;
}

/* Super specific targeting */
#makerCarousel .card-body h5,
#makerCarousel .card-body p,
#sprkCarousel .card-body h5,
#sprkCarousel .card-body p {
    text-align: center !important;
}

.card-text{
    text-align: center !important;
    justify-content: center !important;
}

.carousel-inner {
    padding: 20px 0;
    overflow: visible !important;
}

/* Responsive adjustments for all layouts */
@media (max-width: 768px) {
    .carousel .row .col-md-4,
    #makerCarousel .row .col-md-4,
    #makerCarousel .row .col-md-6,
    #sprkCarousel .row .col-md-4,
    #sprkCarousel .row .col-md-6,
    .container.layout-2 .row .col-md-4,
    .container.layout-2 .row .col-md-6 {
        margin-bottom: 2%;
        padding-bottom: 2%;
    }

    .carousel .card {
        height: auto;
        min-height: 350px;
    }

    /* Layout 1 mobile adjustments */
    #makerCarousel.layout-1 .card-img-top {
        height: 250px !important;
    }

    #sprkCarousel.layout-1 .card-img-top {
        height: 200px !important;
    }

    #makerCarousel.layout-1 .card-body {
        height: auto !important;
        min-height: 140px !important;
        padding: 20px !important;
    }

    #sprkCarousel.layout-1 .card-body {
        height: auto !important;
        padding: 15px !important;
    }

    /* Layout 2 mobile adjustments - maintain overlay effect */
    #makerCarousel.layout-2 .card,
    #sprkCarousel.layout-2 .card {
        height: 350px !important;
    }

    #makerCarousel.layout-2 .card-body,
    #sprkCarousel.layout-2 .card-body {
        padding: 25px 15px 15px 15px !important;
    }

    #makerCarousel.layout-2 .card-title,
    #sprkCarousel.layout-2 .card-title {
        font-size: 1.2rem !important;
    }

    #makerCarousel.layout-2 .card-subtitle,
    #sprkCarousel.layout-2 .card-subtitle {
        font-size: 0.9rem !important;
    }

    #makerCarousel.layout-2 .card-text,
    #sprkCarousel.layout-2 .card-text {
        font-size: 0.8rem !important;
    }

    .carousel-control-prev-icon, .carousel-control-next-icon {
        padding: 8px !important;
        width: 30px !important;
        height: 30px !important;
    }

    .carousel-control-prev {
        left: -3% !important;
    }

    .carousel-control-next {
        right: -3% !important;
    }
}

/* Tablet responsive adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    #makerCarousel.layout-1 .card-img-top,
    #sprkCarousel.layout-1 .card-img-top {
        height: 220px !important;
    }

    /* Layout 2 tablet adjustments - maintain full image overlay */
    #makerCarousel.layout-2 .card,
    #sprkCarousel.layout-2 .card {
        height: 380px !important;
    }

    #makerCarousel.layout-2 .card-img-top,
    #sprkCarousel.layout-2 .card-img-top {
        height: 100% !important;
    }

    #makerCarousel.layout-2 .card-body,
    #sprkCarousel.layout-2 .card-body {
        padding: 25px 18px 18px 18px !important;
    }

    #makerCarousel.layout-2 .card-title,
    #sprkCarousel.layout-2 .card-title {
        font-size: 1.3rem !important;
    }

    #makerCarousel.layout-2 .card-subtitle,
    #sprkCarousel.layout-2 .card-subtitle {
        font-size: 0.95rem !important;
    }

    #makerCarousel.layout-2 .card-text,
    #sprkCarousel.layout-2 .card-text {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 576px) {
    /* Layout 2 extra small screen adjustments */
    #makerCarousel.layout-2 .card,
    #sprkCarousel.layout-2 .card {
        height: 320px !important;
    }

    #makerCarousel.layout-2 .card-body,
    #sprkCarousel.layout-2 .card-body {
        padding: 20px 12px 12px 12px !important;
    }

    #makerCarousel.layout-2 .card-title,
    #sprkCarousel.layout-2 .card-title {
        font-size: 1.1rem !important;
        margin-bottom: 6px !important;
    }

    #makerCarousel.layout-2 .card-subtitle,
    #sprkCarousel.layout-2 .card-subtitle {
        font-size: 0.85rem !important;
        margin-bottom: 8px !important;
    }

    #makerCarousel.layout-2 .card-text,
    #sprkCarousel.layout-2 .card-text {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }

    .carousel-control-prev-icon, .carousel-control-next-icon {
        padding: 8px !important;
        width: 30px !important;
        height: 30px !important;
    }

    .carousel-control-prev {
        left: 2% !important;
    }

    .carousel-control-next {
        right: 2% !important;
    }
}

/* Partial Footer */
footer{
    height: 7%;

}
.footer-line{
    width: 86%;
    border: 2.5px solid black;
    border-radius: 5px;
    margin: 40px auto;
}
.footer-section{
    text-align: center;
}

.footer-text{
    color: black;
    font-family: "Roboto Slab";
    font-weight: 100;
}
.icons{
    width: 100%;
    text-align: center;
    margin-top: 1%;
}
.icons i{
    padding: 5px;
    font-size: 2rem;
    color: black;
    transition: all 0.3s ease;
}

.icons i:hover {
    color: #F2DB2A;
    font-size: 2.25rem;
    transform: translateY(-2px);
}
.copyright-text{
    width: 100%;
    text-align: right !important;
    color: black;
    font-size: .75rem;
    margin-top: 5%;
    font-family: "Roboto Slab";
    font-weight: 100;
    padding-right: 7% !important;
    margin-left: 0 !important;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Large screens/desktops - largest fonts */
@media (min-width: 1100px) and (max-width: 1440px) {
    .welcome-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        min-height: auto;
    }

    .welcome-logo {
        order: 1;
        position: relative;
        margin-bottom: 5px;
    }

    .welcome-png {
        width: 95%;
        height: auto;
        margin: 0;
        float: none;
    }

    .title-text-container {
        position: absolute;
        top: calc(30% - 30px);
        left: calc(8% + 100px);
        order: 2;
        margin: 0;
        z-index: 10;
    }

    .title-text {
        font-size: 8rem;
        color: black;
        text-shadow: 2px 2px 4px rgba(255,255,whites,0.8);
    }

    .welcome-text-container {
        position: absolute;
        margin-top: 37% !important;
        margin-left: -8% !important;
        order: 3;
        z-index: 10;
    }

    .welcome-text {
        font-size: 4rem;
    }

    .join-btn-container {
        position: static;
        order: 4;
        margin: 0;
        margin-bottom: 40px;
    }
}

/* Medium screens - medium fonts - Tablet */
@media (min-width: 770px) and (max-width: 1099px) {
    .welcome-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        min-height: auto;
    }

    .welcome-logo {
        order: 1;
        position: static;
        margin-bottom: 20px;
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .welcome-png {
        content: url('../images/mainlogo-mobile.png');
        width: 60%;
        max-width: 400px;
        height: auto;
        margin: 0;
        float: none;
        display: block;
        transform: translateX(-15%);
    }

    .title-text-container {
        position: static;
        order: 2;
        margin: 0;
        margin-bottom: 20px;
        width: 100%;
        text-align: center;
        display: block;
    }

    .title-text {
        font-size: 5rem;
        color: black;
        text-shadow: none;
    }

    .welcome-text-container {
        position: static;
        order: 3;
        margin: 0;
        margin-bottom: 25px;
        width: 100%;
        text-align: center;
    }

    .welcome-text {
        font-size: 2rem;
    }

    .join-btn-container {
        position: static;
        order: 4;
        margin: 0;
        margin-bottom: 40px;
        width: 100%;
        text-align: center;
    }
}

/* Small screens - mobile layout */
@media (max-width: 768px) {
    .welcome-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        min-height: auto;
    }

    .welcome-logo {
        order: 1;
        position: static;
        margin-bottom: 20px;
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .welcome-png {
        content: url('../images/mainlogo-mobile.png');
        width: 70%;
        max-width: 300px;
        height: auto;
        margin: 0;
        float: none;
        display: block;
        transform: translateX(-15%);
    }

    .title-text-container {
        position: static;
        order: 2;
        margin: 0;
        margin-bottom: 15px;
        width: 100%;
        text-align: center;
        display: block;
    }

    .title-text {
        font-size: 4rem;
        color: black;
        text-shadow: none;
    }

    .welcome-text-container {
        position: static;
        order: 3;
        margin: 0;
        margin-bottom: 20px;
        width: 100%;
        text-align: center;
    }

    .welcome-text {
        font-size: 1.5rem;
    }

    .join-btn-container {
        position: static;
        order: 4;
        margin: 0;
        margin-bottom: 40px;
        width: 100%;
        text-align: center;
    }
}

/* Modal responsive styles - Removed conflicting positioning */

@media (min-width: 1025px) and (max-width: 1439px) {
    .welcome-text-container {
        margin-top: 37% !important;
        margin-left: -8% !important;
    }
}

@media (min-width: 1440px) {
    .welcome-text-container {
        margin-top: 30% !important;
        margin-left: 40% !important;
    }

    .join-btn-container {
        margin-top: 39% !important;
    }
}

@media (max-width: 480px) {
    .join-modal-container{
        width: 95vw;
        height: 95vh;
        padding: 10px;
    }

    .sign-in-modal{
        width: 95vw;
        height: auto;
        min-height: 350px;
        padding: 10px;
    }

    .welcome-back-text {
        font-size: 1.8rem;
    }

    .welcome-back-instruction {
        font-size: 0.9rem;
    }

    #username_signin, #password_signin {
        width: 90%;
        font-size: 0.9rem;
        padding: 12px;
        height: 40px;
    }

    #login-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
        min-width: 100px;
    }

    .forgot-credentials-btn {
        font-size: 0.8rem;
    }

    .forgot-title-text {
        font-size: 1.8rem;
    }

    .forgot-instruction-text {
        font-size: 0.9rem;
    }

    #email_forgot {
        width: 90%;
        font-size: 0.9rem;
        padding: 12px;
    }

    #forgot-submit-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
        min-width: 120px;
    }

    .back-to-signin-btn {
        font-size: 0.8rem;
    }

    .title-form {
        font-size: 2rem;
    }

    .title-form-text {
        font-size: 1rem;
    }

    #first_name, #last_name, #email, #username, #password, #birth_date, #username_signin, #password_signin{
        width: 95%;
        font-size: 0.9rem;
        padding: 12px;
    }

    .checkbox-container {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .checkbox-item {
        justify-content: center;
    }
}

/* Mobile and tablet responsive styles */
@media (max-width: 1440px) {

    .about-container {
        flex-direction: column;
        width: 90%;
        height: auto;
        padding: 0;
    }

    .about-photo-container {
        width: 100%;
        order: 1;
        max-width: 600px;
        margin: 0 auto;
    }

    .about-img img {
        max-height: 450px;
        width: 100%;
        object-fit: cover;
        padding: 0;
    }

    .about-text-container {
        width: 100%;
        order: 2;
        padding-left: 0;
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

/* Fix Featured Makers and Featured Sprks title alignment at 480px and below */
@media (max-width: 480px) {
    .maker-title-container,
    .sprk-title-container {
        margin-left: 0 !important;
        text-align: center !important;
        width: 100% !important;
    }

    .maker-title-text,
    .sprk-title-text {
        margin-left: 0 !important;
        text-align: center !important;
        width: 100% !important;
        font-size: 2rem !important;
    }
}

