* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: 75%;
    font-family: 'Poppins', sans-serif;
    color: #333;
    /*background: linear-gradient(180deg, #f9f9f9 0%, #e6f0ea 100%);*/
    line-height: 1.6;
}

.profile-container {
    position: relative;
    display: inline-block;
}

.profile-btn {
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.profile-btn:hover {
    background-color: #f0f0f0;
}

.profile-btn:hover:not(.your-stories .profile-btn:hover) {
    background-color: #f0f0f0;
}

.profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    padding: 8px 0;
    margin-top: 5px;
}

.profile-dropdown.active {
    display: block;
}

.profile-dropdown li {
    list-style: none;
}

.profile-dropdown a,
.profile-dropdown button {
    display: block;
    width: 100%;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.profile-dropdown a:hover,
.profile-dropdown button:hover {
    background-color: #f0f0f0;
}

.profile-dropdown button {
    font-weight: 500;
    color: #dc3545;
}

.profile-dropdown button:hover {
    color: #b02a37;
}

.logout-btn:hover:not(.your-stories .logout-btn:hover) {
    color: #b02a37;
}




/* Header and Navigation */
header {
    background: #fff;
    padding: 20px 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

site-header.sticky header {
    background: rgba(255, 255, 255, 0.95);
}

.hidden {
    opacity: 0;
}

.logo img {
    height: 50px;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

nav ul li a,
.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.sign-in-link {
    margin-left: 15px; /* Add spacing from the previous link */
}

nav ul li a:hover,
.nav-link:hover {
    color: #FF375F;
    transform: translateY(-2px);
    display: inline-block;
}

nav ul li a.active,
.nav-link.active {
    color: #FF375F; /* red color for active link */
    text-decoration: underline;
    text-decoration-color: #FF375F;
  
}

/* Rest of the existing CSS remains unchanged */
/* More Button and Dropdown for Mobile */
.more-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.more-btn:hover {
    color: #FF375F;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 20px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1000;
    min-width: 200px;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu li {
    padding: 10px 20px;
}

.dropdown-menu li a {
    display: block;
    font-size: 1em;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dropdown-menu li a:hover {
    color: #FF375F;
}

/* Add padding to the main content to account for header height on mobile */
main {
    padding-top: 0;
}

/* Hero Section (used in index.html) */
.hero {
    position: relative;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /*background: #f5f5f5;*/
    color: #fff;
    overflow: hidden;
}

.hero img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.hero h1 {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 3.5em;
    max-width: 800px;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.hero h1 .highlight {
    color: #FF375F;
    font-style: italic;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

section.section-margin-top {
    padding-top: 6.25em;
}

section.section-margin-bottom {
    padding-bottom: 6.25em;
}

.bold-text-section {
    width: 1086px;
    margin: auto;
    text-align: left;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

/* Stories Section (used in index.html) */
.stories {
    background: #f9f9f9;
}

.stories h2 {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 2.5em;
    color: #FF375F;
    margin-bottom: 40px;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.story-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.story-card h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
}

.story-card p {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
}

.story-card .read-more {
    display: inline-block;
    padding: 10px 20px;
    background: #FF375F;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.story-card .read-more:hover {
    background: #e62e5a;
}

.clipart {
    width: 100px;
}

.clear-float {
    clear: both;
}

@media (max-width: 1060px) {
    nav ul {
        gap: 12px;
    }

    nav ul li a {
        font-size: 0.8em;
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    header {
        padding: 10px 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo img {
        width: 120px;
    }

    nav ul {
        display: none;
    }

    nav .home-link {
        display: block;
    }

    .more-btn {
        display: block;
    }

    main {
        padding-top: 70px;
    }

    .hero {
        height: 40vh;
    }

    .hero img {
        object-fit: cover;
        height: 100%;
    }

    .hero-text h1, .hero h1 {
        font-size: 1.8em;
        line-height: 1.2;
        padding: 0 20px;
    }

    .about {
        padding: 40px 20px;
    }

    .about h2 {
        font-size: 2em;
    }

    .about p {
        font-size: 1em;
    }

    .principle {
        padding: 40px 20px;
    }

    .principle h3 {
        font-size: 1.8em;
    }

    .principle p {
        font-size: 1em;
    }

    .cta-section, .cta {
        padding: 40px 20px;
    }

    .cta h2 {
        font-size: 1.8em;
    }

    .cta p {
        font-size: 1em;
    }

    .start-button a, .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .sign-in {
        padding: 40px 20px;
        margin: 40px 20px;
    }

    .sign-in h2 {
        font-size: 2em;
    }

    .login-form {
        gap: 15px;
    }

    .form-group input {
        padding: 10px;
        font-size: 0.9em;
    }

    .login-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .get-started {
        padding: 40px 20px;
        margin: 40px 20px;
    }

    .get-started h2 {
        font-size: 2em;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-group {
        min-width: 100%;
    }

    .signup-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .contact-us {
        padding: 40px 20px;
        margin: 40px 20px;
    }

    .contact-us h2 {
        font-size: 2em;
    }

    .contact-us .intro-text {
        font-size: 1em;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        padding: 20px;
    }

    .contact-card h3 {
        font-size: 1.3em;
    }

    .contact-card .role, .contact-card .email a {
        font-size: 0.9em;
    }
}

/* Story Toggle and Dropdown (used in our-story.html) */
.story-toggle {
    color: #c0392b;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    background: #f9e6e6;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.story-toggle:hover {
    background: #f5d5d5;
    color: #a93226;
    transform: translateY(-2px);
}

.story-toggle::after {
    content: '▼';
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.story-toggle.active::after {
    transform: rotate(180deg);
}

.story-dropdown {
    display: none;
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.story-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Reusing Huang Story Styles for Dropdown */
.huang-story h3 {
    font-family: 'Calisto MT', sans-serif;
    font-size: 2.2em;
    font-weight: 700;
    color: lightcoral;
    margin-bottom: 20px;
    text-align: left;
    letter-spacing: 0.5px;
}

.huang-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    color: #444;
    line-height: 1.9;
    margin-bottom: 20px;
}

.huang-text p {
    margin-bottom: 15px;
}

.huang-text blockquote {
    background: #e0ece4;
    border-left: 5px solid #FF375F;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #2c3e50;
    border-radius: 5px;
}

.huang-text .huang-quote {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1em;
    color: #5a5a5a;
    margin-top: 15px;
    line-height: 1.6;
}

.huang-images {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.huang-image-box {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.huang-image-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.huang-image-box img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.huang-image-box .caption {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95em;
    font-style: italic;
    color: #666;
    text-align: center;
    margin-top: 10px;
    line-height: 1.4;
}

/* Reusing Yu Story Styles for Dropdown */
.yu-story h3 {
    font-family: 'Calisto MT', sans-serif;
    font-size: 2.2em;
    font-weight: 700;
    color: lightgreen;
    margin-bottom: 20px;
    text-align: left;
    letter-spacing: 0.5px;
}

.yu-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    color: #444;
    line-height: 1.9;
    margin-bottom: 20px;
}

.yu-text p {
    margin-bottom: 15px;
}

.yu-text p strong {
    color: #FF375F;
    font-weight: 600;
}

.yu-images {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.yu-image-box {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.yu-image-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.yu-image-box img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.yu-image-box .caption {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95em;
    font-style: italic;
    color: #666;
    text-align: center;
    margin-top: 10px;
    line-height: 1.4;
}

/* Clara Story Styles */
.clara-story h3 {
    font-family: 'Calisto MT', sans-serif;
    font-size: 2.2em;
    font-weight: 700;
    color: orange;
    margin-bottom: 20px;
    text-align: left;
    letter-spacing: 0.5px;
}

.clara-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    color: #444;
    line-height: 1.9;
    margin-bottom: 20px;
}

.clara-text p {
    margin-bottom: 15px;
}

.clara-images {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.clara-image-box {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clara-image-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.clara-image-box img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.clara-image-box .caption {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95em;
    font-style: italic;
    color: #666;
    text-align: center;
    margin-top: 10px;
    line-height: 1.4;
}

/* Faith Story Styles */
.faith-story h3 {
    font-family: 'Calisto MT', sans-serif;
    font-size: 2.2em;
    font-weight: 700;
    color: lightseagreen;
    margin-bottom: 20px;
    text-align: left;
    letter-spacing: 0.5px;
}

.faith-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    color: #444;
    line-height: 1.9;
    margin-bottom: 20px;
}

.faith-text p {
    margin-bottom: 15px;
}

.faith-images {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.faith-image-box {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faith-image-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.faith-image-box img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faith-image-box .caption {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95em;
    font-style: italic;
    color: #666;
    text-align: center;
    margin-top: 10px;
    line-height: 1.4;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .story-toggle {
        font-size: 1em;
        padding: 6px 12px;
    }

    .story-dropdown {
        padding: 20px;
    }

    .huang-story h3, .yu-story h3, .clara-story h3, .faith-story h3 {
        font-size: 1.8em;
    }

    .huang-text, .yu-text, .clara-text, .faith-text {
        font-size: 1em;
    }

    .huang-text blockquote, .yu-text p {
        margin: 15px 0;
    }

    .huang-images, .yu-images, .clara-images, .faith-images {
        flex-direction: column;
        gap: 20px;
    }

    .huang-image-box, .yu-image-box, .clara-image-box, .faith-image-box {
        min-width: 100%;
        max-width: 100%;
    }

    .huang-image-box img, .yu-image-box img, .clara-image-box img, .faith-image-box img {
        height: 180px;
    }

    .huang-image-box .caption, .yu-image-box .caption, .clara-image-box .caption, .faith-image-box .caption {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .story-toggle {
        font-size: 0.95em;
        padding: 5px 10px;
    }

    .story-dropdown {
        padding: 15px;
    }

    .huang-story h3, .yu-story h3, .clara-story h3, .faith-story h3 {
        font-size: 1.6em;
    }

    .huang-text, .yu-text, .clara-text, .faith-text {
        font-size: 0.95em;
    }

    .huang-text .huang-quote {
        font-size: 0.9em;
    }

    .huang-image-box img, .yu-image-box img, .clara-image-box img, .faith-image-box img {
        height: 150px;
    }
}

/* Archived Stories Section (used in archived-stories.html) */
.archived-stories {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 80px 50px;
    margin: 60px auto;
    max-width: 1200px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.archived-stories.visible {
    opacity: 1;
    transform: translateY(0);
}

.archived-stories h2 {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 3em;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
}

.stories-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.story-box {
    width: 100%;
    max-width: 600px;
}

/* Scoped Story Toggle for Archived Stories */
.archived-stories .story-toggle {
    background: linear-gradient(90deg, #FF375F, #e62e5a);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.2em;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.archived-stories .story-toggle:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg, #FF375F, #e62e5a);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.archived-stories .story-toggle::after {
    content: '▼';
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.archived-stories .story-toggle.active::after {
    transform: rotate(180deg);
}

/* Scoped Story Dropdown for Archived Stories */
.archived-stories .story-dropdown {
    display: none;
    margin-top: 20px;
    padding: 30px;
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.archived-stories .story-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Public and Private Stories Content */
.public-stories h3,
.private-stories h3 {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 2em;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: left;
}

.public-stories .public-text,
.private-stories .private-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    color: #444;
    line-height: 1.8;
    text-align: left;
}

.public-stories .public-text p,
.private-stories .private-text p {
    margin-bottom: 15px;
}

/* Responsive Adjustments for Archived Stories */
@media (max-width: 768px) {
    .archived-stories {
        padding: 40px 20px;
        margin: 40px 20px;
    }

    .archived-stories h2 {
        font-size: 2em;
        margin-bottom: 40px;
    }

    .stories-container {
        gap: 30px;
    }

    .story-box {
        max-width: 100%;
    }

    .archived-stories .story-toggle {
        font-size: 1.1em;
        padding: 10px 20px;
    }

    .archived-stories .story-dropdown {
        padding: 20px;
    }

    .public-stories h3,
    .private-stories h3 {
        font-size: 1.8em;
    }

    .public-stories .public-text,
    .private-stories .private-text {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .archived-stories h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .stories-container {
        gap: 20px;
    }

    .archived-stories .story-toggle {
        font-size: 1em;
        padding: 8px 16px;
    }

    .archived-stories .story-dropdown {
        padding: 15px;
    }

    .public-stories h3,
    .private-stories h3 {
        font-size: 1.6em;
    }

    .public-stories .public-text,
    .private-stories .private-text {
        font-size: 0.95em;
    }
}

body.your-stories .profile-btn:hover {
    background-color: #f0f0f0; /* Override green hover */
}

body.your-stories .logout-btn:hover {
    color: #b02a37; /* Override green hover */
}