/* Base Reset */
a, abbr, acronym, address, applet, b, big, blockquote, button, caption, center, cite, code, dd, del, dfn, div, dl, dt, em, fieldset, font, footer, form, h1, h2, h3, h4, h5, h6, header, i, iframe, img, ins, kbd, label, legend, li, nav, object, ol, p, pre, q, s, samp, section, small, span, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, title, tr, tt, u, ul, var {
    background: transparent;
    border: 0;
    margin: 0;
    outline: 0;
    padding: 0;
    vertical-align: baseline;
}

* {
    box-sizing: border-box;
}

body, html {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    margin: 0;
    padding: 0;
}

body {
    -webkit-text-size-adjust: none;
    -webkit-highlight: none;
    --scrollbar-width: 0px;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: rgb(var(--color_15));
    background-color: transparent;
    font-size: 16px;
}

div {
    display: block;
    unicode-bidi: isolate;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* CSS Variables */
:root {
    --color_0: 255, 255, 255;
    --color_1: 255, 255, 255;
    --color_2: 0, 0, 0;
    --color_11: 242, 241, 245;
    --color_15: 48, 48, 49;
    --color_36: 242, 241, 245;
    --color_37: 48, 48, 49;
    --color_38: 194, 193, 196;
    --color_39: 145, 145, 147;
    --color_40: 97, 96, 98;
    --color_41: 96, 145, 76;
    --color_42: 13, 32, 49;
    --color_43: 25, 64, 99;
    --color_44: 22, 117, 105;
    --color_45: 48, 48, 49;
    --color_46: 48, 48, 49;
    --color_47: 97, 96, 98;
    --color_48: 96, 145, 76;
    --color_49: 96, 145, 76;
}

/* Header Styles */
#SITE_HEADER {
    --bg-overlay-color: rgb(var(--color_41));
    --bg-gradient: linear-gradient(90deg, #5e8f4d 0%, #1d4461 100%);
    --shc-mutated-brightness: 48, 73, 38;
    --bg: var(--color_41);
    --shd: none;
    --brwt: 0px;
    --brd: 160, 160, 159;
    --brwb: 0px;
    --bgctr: var(--color_41);
    --rd: 0px;
    --alpha-bgctr: 1;
    --alpha-brd: 1;
    --alpha-bg: 1;
    --backdrop-filter: none;
    --boxShadowToggleOn-shd: none;
    --pinned-layer-in-container: 50;
    --above-all-in-container: 49;
    position: relative;
    width: 100%;
    height: 100px;
    background: linear-gradient(90deg, #5e8f4d 0%, #1d4461 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-bg, .header-content {
    position: relative;
    width: 100%;
}

.header-bg-container {
    background: linear-gradient(90deg, #5e8f4d 0%, #1d4461 100%);
}

.header-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-inline-content {
    display: block;
}

.header-grid-container {
    display: block;
}

.header-section {
    padding: 5px;
    height: 100px;
    display: flex;
    align-items: center;
    width: 100%;
}

.header-columns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-column {
    position: relative;
}

/* Logo Styles */
.logo-column {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo-image {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Navigation Styles */
.nav-column {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.main-navigation {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    display: block;
    text-decoration: none;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-text {
    display: block;
}

.nav-label {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: white;
    white-space: nowrap;
}

.nav-item:hover .nav-link,
.nav-item.active .nav-link {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active .nav-label {
    font-weight: 500;
}

/* Mobile Menu Styles */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    color: white;
    transition: background-color 0.3s ease;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
}

.mobile-menu-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.hamburger-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: opacity 0.3s ease;
}

.hidden {
    display: none !important;
}

.mobile-menu {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #5e8f4d 0%, #1d4461 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.mobile-menu.show {
    display: block;
    max-height: 400px;
    opacity: 1;
}

.mobile-navigation {
    padding: 0;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-link {
    display: block;
    padding: 16px 20px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-item.active .mobile-nav-link {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-label {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.mobile-nav-item.active .mobile-nav-label {
    font-weight: 500;
}

/* Desktop styles - ensure mobile menu is hidden on larger screens */
@media (min-width: 769px) {
    .mobile-menu-button {
        display: none !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
    
    .desktop-nav {
        display: flex !important;
    }
}

/* Main Content */
.main {
    padding: 30px 0;
    min-height: calc(100vh - 200px);
}

.memories-section {
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
}

/* Section Header - Two Column Layout */
.section-header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: start;
}

.section-content {
    padding-right: 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: rgb(25, 64, 99);
    margin-bottom: 5px;
    text-align: left;
}

.section-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    text-align: left;
}

.section-description strong {
    color: black;
}

/* Search Bar */
.search-container {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 300px;
    background-color: rgb(227, 227, 227);
    border: 1px solid rgba(48, 48, 49, 0.6);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.search-box:focus-within {
    border-color: rgb(48, 48, 49);
}

.search-icon {
    width: 20px;
    height: 20px;
    margin-left: 12px;
    color: rgba(48, 48, 49, 0.6);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    padding: 12px 16px 12px 8px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    outline: none;
    color: rgb(48, 48, 49);
}

.search-input::placeholder {
    color: rgba(48, 48, 49, 0.6);
}

/* Memory Cards Grid */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.memory-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.memory-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px 20px 20px;
    color: white;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.2;
    text-align: left;
    font-stretch: expanded;
    transition: color 0.3s ease;
}

.memory-card:hover .card-title {
    color: rgb(96, 145, 76);
}

/* Footer */
.footer {
    background: rgb(96, 145, 76);
    color: white;
    padding: 50px 0 160px;
}

.footer-content {
    display: grid;
    grid-template-columns: 50% 50%;
    align-items: start;
}

.footer-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.footer-logo-address {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    max-width: 192px;
    height: auto;
}

.footer-address {
    margin: -15px 10px 0 50px;
}

.footer-logo-address p {
    margin: 0;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: white;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: underline;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.social {
    margin-top: 15px;
}

.social ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.social li {
    margin: 0;
}

.social a {
    display: block;
    transition: opacity 0.3s ease;
}

.social a:hover {
    opacity: 0.8;
}

.social img {
    width: 25px;
    height: 25px;
    object-fit: cover;
}

.footer-right {
    max-width: 100%;
}

.form-input-container {
    position: relative;
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    text-align: left;
}

.form-input-wrapper {
    position: relative;
    text-align: left;
}

.form-input {
    width: 70%;
    max-width: 420px;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background-color: rgb(64, 97, 51);
    color: white;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-message {
    display: none;
    margin: 5px 0;
}

.form-thank-message {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    color: white;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
}

.form-button-container {
    margin-top: 20px;
    text-align: right;
    margin-right: 180px;
}

.form-submit {
    padding: 12px 25px;
    background-color: white;
    color: rgb(96, 145, 76);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
}

.form-submit:hover {
    background-color: #f5f5f5;
    transform: translateY(-1px);
}

.form-button-label {
    display: inline-block;
}



.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-item {
    display: inline-block;
}

.social-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 0.8;
}

.social-icon {
    display: block;
    width: 25px;
    height: 25px;
    object-fit: cover;
}

/* Post Content Styles */
.post-content {
    border: 2px solid #000;
    padding: 40px;
    background-color: white;
    max-width: 1000px;
    margin: 0 auto;
}

/* Comments Section Styles */
#cusdis_thread {
    border: 2px solid #ccc;
    margin-top: 40px;
    min-height: 400px;
    overflow: hidden;
}

/* Cusdis iframe styles */
#cusdis_thread iframe {
    width: 100% !important;
    min-height: 400px !important;
    height: auto !important;
    border: none !important;
    overflow: hidden !important;
}

/* Embed Responsive Styles */
.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    max-width: 660px;
    margin: 20px auto;
    padding: 0;
    overflow: hidden;
}

.embed-responsive iframe {
    position: relative;
    top: 0;
    left: 0;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Ensure figure containing embed-responsive is also centered */
figure .embed-responsive {
    margin: 20px auto;
}

.post-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: rgb(25, 64, 99);
    margin: 0 0 30px 0;
    text-align: center;
    line-height: 1.2;
}

.post-image-container {
    margin: 0 0 30px 0;
    text-align: center;
}

.post-image {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.post-caption {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    font-style: italic;
    text-align: center;
    line-height: 1.4;
}

.post-dates {
    margin: 0 0 30px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.date-line {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: rgb(48, 48, 49);
}

.date-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.star-icon {
    color: rgb(96, 145, 76);
}

.cross-icon {
    color: rgb(48, 48, 49);
}

.date-text {
    font-weight: 500;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
}

.post-text {
    font-size: 16px;
    line-height: 1.8;
    color: rgb(48, 48, 49);
    text-align: justify;
}

.post-text p {
    margin: 0 0 20px 0;
}

.post-text p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hide desktop navigation and show mobile button */
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header-columns {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        text-align: left;
    }
    
    .nav-column {
        justify-content: flex-end;
        flex: 0 0 auto;
    }
    
    .logo-image {
        max-width: 200px;
        height: auto;
    }
    
    /* Section Header Responsive */
    .section-header {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .section-content {
        padding-right: 0;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .section-description {
        text-align: center;
    }
    
    .search-container {
        justify-content: center;
        padding-top: 0;
    }
    
    .search-box {
        width: 100%;
        max-width: 300px;
    }
    
    .memory-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-left {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo-address {
        align-items: center;
        text-align: center;
        justify-content: center;
    }
    
    .footer-logo {
        margin: 0 auto;
        display: block;
    }
    
    .footer-address {
        margin: 0;
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
        text-align: center;
    }
    
    .social {
        display: flex;
        justify-content: center;
    }
    
    .footer-right {
        text-align: center;
        max-width: none;
    }
    
    .form-label {
        text-align: center;
    }
    
    .form-input-wrapper {
        text-align: center;
    }
    
    .form-input {
        width: 90%;
        max-width: 350px;
    }
    
    .form-button-container {
        text-align: center;
        margin-right: 0;
    }
    
    /* Post Content Responsive */
    .post-content {
        padding: 20px;
        border-width: 1px;
    }
    
    .post-title {
        font-size: 2rem;
        margin-bottom: 25px;
    }
    
    .post-image-container {
        margin-bottom: 25px;
    }
    
    .post-dates {
        margin-bottom: 25px;
    }
    
    .date-line {
        gap: 10px;
        font-size: 15px;
    }
    
    .date-icon {
        width: 18px;
        height: 18px;
    }
    
    /* Embed Responsive Mobile */
    .embed-responsive {
        max-width: 100%;
        margin: 15px auto;
    }
    
    .embed-responsive iframe {
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    /* Mobile menu specific adjustments for very small screens */
    .mobile-menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .logo-image {
        max-width: 150px;
        height: auto;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .main {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .search-container {
        justify-content: center;
        padding-top: 0;
    }
    
    .search-box {
        width: 100%;
        max-width: 280px;
    }
    
    /* Footer Mobile Adjustments */
    .footer-logo {
        max-width: 150px;
        margin: 0 auto;
    }
    
    .footer-left {
        gap: 25px;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .form-input {
        width: 95%;
        max-width: 300px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .form-submit {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    /* Post Content Mobile */
    .post-content {
        padding: 15px;
    }
    
    .post-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .post-image-container {
        margin-bottom: 20px;
    }
    
    .post-dates {
        margin-bottom: 20px;
    }
    
    .date-line {
        font-size: 14px;
    }
    
    .date-icon {
        width: 16px;
        height: 16px;
    }
    
    .post-text {
        font-size: 15px;
        line-height: 1.7;
    }
}