/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, p, span, div, h1, h2, h3, h4, h5, h6, li, td, th, label, input, textarea, select {
    color: #0084A7 !important;
}

html, body {
    height: 100%;
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #ffffff;
}

/* Utility Classes */
.sr-only {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
    .desktop-only {
        display: block;
    }
}

/* Main Layout */
.site-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.background-container {
    background-color: #ffffff;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    z-index: -1;
    top: 56px;
    bottom: -120px;
}

@media (min-width: 768px) {
    .background-container {
        top: 0;
    }
}

.main-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
    width: 100%;
    max-width: 1200px;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

/* Mobile Header - Fixed overlap issues */
.mobile-header-spacer {
    height: 56px;
    width: 100%;
}

@media (max-width: 480px) {
    .mobile-header-spacer {
        height: 60px; /* Increased for very small screens */
    }
}

@media (min-width: 768px) {
    .mobile-header-spacer {
        display: none;
    }
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: block;
    height: 40px;
    left: 8px;
    margin: 0;
    overflow: hidden;
    position: fixed;
    top: 8px;
    width: 40px;
    z-index: 19;
}

@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 10px;
    height: 40px;
    width: 40px;
    border-radius: 3px;
    cursor: pointer;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    height: 3px;
    left: 20%;
    margin: 0 auto;
    border-radius: 3px;
    margin-top: -0.15em;
    position: absolute;
    top: 50%;
    transition: all 0.4s;
    width: 24px;
    background: #0084A7;
    box-shadow: 0 -10px 0 0 #0084A7, 0 10px 0 0 #0084A7;
}

/* Mobile Header Bar - Fixed height consistency */
.mobile-header-bar {
    height: 56px;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 18;
    background-color: #ffffff;
}

@media (max-width: 480px) {
    .mobile-header-bar {
        height: 60px; /* Match spacer height */
    }
}

@media (min-width: 768px) {
    .mobile-header-bar {
        display: none;
    }
}

.mobile-title {
    align-items: center;
    display: flex;
    height: 56px;
    justify-content: center;
    width: 100%;
    font-family: Poppins;
    color: #0084A7;
    font-size: 32px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
}

@media (max-width: 480px) {
    .mobile-title {
        height: 60px; /* Match bar height */
        font-size: 28px; /* Smaller on very small screens */
    }
}

@media (max-width: 640px) {
    .mobile-title {
        font-size: 30px; /* Progressive scaling */
    }
}

/* Mobile Navigation */
.mobile-nav {
    left: 0;
    overflow: hidden;
    position: fixed;
    top: 0;
    transition: all 0.5s;
    width: 100%;
    z-index: 18;
    background-color: #ffffff;
    height: 0;
}

.mobile-nav.active {
    height: 100vh;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }
}

.mobile-nav-content {
    padding-top: 56px;
    height: 100vh;
    overflow-y: auto;
}

@media (max-width: 480px) {
    .mobile-nav-content {
        padding-top: 60px; /* Match header height */
    }
}

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

.mobile-nav-item {
    text-align: center;
    width: 100%;
    padding: 8px;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus {
    background-color: rgba(0, 132, 167, 10%);
}

.mobile-nav-link {
    font-family: Poppins;
    letter-spacing: 1px;
    color: #0084A7;
    font-size: 14px;
    font-style: italic;
    font-weight: normal;
    border-bottom: 2px solid transparent;
    display: block;
    letter-spacing: 2px;
    line-height: 1;
    margin: 0 auto;
    padding: 8px 8px 6px;
    text-decoration: none;
    transition: all 0.25s;
    width: fit-content;
}

.mobile-nav-link.active {
    border-bottom: 2px solid #0084A7;
}

@media (max-width: 640px) {
    .mobile-nav-link {
        font-size: 13px; /* Consistent scaling */
    }
}

/* Hero Section - Simplified to single column */
.hero-section {
    width: 100%;
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
}

@media (max-width: 767px) {
    .hero-section {
        height: 50%;
        overflow: hidden;
        padding-bottom: 91.666%;
    }
}

.hero-image-container {
    width: 100%;
    padding-bottom: 91.666%;
    position: relative;
    overflow: hidden;
}

@media (max-width: 767px) {
    .hero-image-container {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 0;
        padding-bottom: 0;
        height: 100%;
    }
}

.cover-photo {
    width: 100%;
}

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

@media (min-width: 768px) {
    .cover-image {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
    }
}

/* Headers - Simplified and centered */
.mobile-header {
    background-image: url('../../background_pattern.png');
    background-color: rgba(255, 255, 255, 0.8); /* White with 50% transparency */
    background-blend-mode: lighten;
    padding: 0 4% 10px 4%;
    text-align: center;
    width: 100%;
    z-index: 1;
}

@media (min-width: 768px) {
    .mobile-header {
        background-image: url('../../background_pattern.png');
        background-color: rgba(255, 255, 255, 0.8); /* White with 50% transparency */
        background-blend-mode: lighten;
        display: none;
    }
}

.desktop-header {
    background-image: url('../../background_pattern.png');
    background-color: rgba(255, 255, 255, 0.8); /* White with 50% transparency */
    background-blend-mode: lighten;
    padding: 0 4% 10px 4%;
    text-align: center;
    width: 100%;
    z-index: 1;
    display: none;
}

@media (min-width: 768px) {
    .desktop-header {
        background-image: url('../../background_pattern.png');
        background-color: rgba(255, 255, 255, 0.8); /* White with 50% transparency */
        background-blend-mode: lighten;
        display: block;
    }
}

.couple-names {
    line-height: 1;
    margin: 16px auto;
    font-family: Poppins;
    color: #0084A7;
    font-size: 60px;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-weight: 600;
    padding-top: 400px;
    padding-bottom: 15px;
}

/* Improved responsive scaling for couple names */
@media (max-width: 480px) {
    .couple-names {
        font-size: 36px; /* Better scaling */
        letter-spacing: 2px;
        padding-top: 120px;
    }
}

@media (max-width: 640px) {
    .couple-names {
        font-size: 45px;
        letter-spacing: 3px;
        padding-top: 180px;
    }
}

@media (max-width: 768px) {
    .couple-names {
        letter-spacing: 3px;
    }
}

@media (max-width: 1500px) {
    .couple-names {
        padding-top: 360px;
    }
}

@media (max-width: 1280px) {
    .couple-names {
        padding-top: 280px;
    }
}

@media (max-width: 900px) {
    .couple-names {
        padding-top: 160px;
    }
}

.wedding-date-location {
    line-height: 1;
    margin: 8px 0;
    font-family: Poppins;
    letter-spacing: 2px;
    color: #0084A7;
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.25rem;
}

@media (max-width: 480px) {
    .wedding-date-location {
        font-size: 16px; /* Better scaling */
        letter-spacing: 1px;
    }
}

@media (max-width: 640px) {
    .wedding-date-location {
        font-size: 17px;
    }
}

.countdown {
    line-height: 1;
    margin: 8px 0;
    font-family: Poppins;
    letter-spacing: 2px;
    color: #0084A7;
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.25rem;
}

@media (max-width: 480px) {
    .countdown {
        font-size: 16px; /* Better scaling */
        letter-spacing: 1px;
    }
}

@media (max-width: 640px) {
    .countdown {
        font-size: 17px;
    }
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    width: 100%;
    margin-top: 25px;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: block;
        z-index: 1;
    }
}

.nav-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 8px 16px;
}

.nav-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-item {
    display: inline-block;
    list-style: none;
    padding: 0 8px;
}

.nav-link {
    margin: 0;
    padding: 8px 0;
    font-family: Poppins;
    letter-spacing: 1px;
    color: #0084A7;
    font-size: 14px;
    font-style: italic;
    font-weight: normal;
    border-bottom: 2px solid transparent;
    display: block;
    letter-spacing: 2px;
    line-height: 1;
    margin: 0 auto;
    padding: 8px 8px 6px;
    text-decoration: none;
    transition: all 0.25s;
    width: fit-content;
}

.nav-link:hover {
    color: #0084A7;
    border-bottom: 2px solid rgba(0, 132, 167, 70%);
}

.nav-link.active {
    border-bottom: 2px solid #0084A7;
}

@media (max-width: 640px) {
    .nav-link {
        font-size: 13px;
    }
}

/* Content Grid - Fixed to single column */
.content-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main Content - Centered single column */
.main-content {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

/* Wedding Date Display */
.wedding-date-display {
    letter-spacing: 2.23px;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 12px auto;
    padding: 0 16px;
    width: fit-content;
    font-family: Poppins;
    color: #0084A7;
    font-size: 42px;
    letter-spacing: 3px;
    font-weight: 600;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .wedding-date-display {
        display: flex;
        justify-content: center;
        padding: 0 16px;
        flex-direction: row;
        margin: 52px auto 20px;
    }
}

@media (max-width: 640px) {
    .wedding-date-display {
        font-size: 1rem;
    }
}

.date-section {
    padding: 0 36px 20px;
    border-bottom: 1px solid #0084A7;
}

@media (min-width: 640px) {
    .date-section {
        border-bottom: none;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 20px 72px 20px 0;
        width: 315px;
        border-right: 1px solid #0084A7;
    }
}

.date-text {
    text-align: center;
}

.location-section {
    padding: 20px 36px 0;
}

.location-section a {
    text-decoration: none;
    color: inherit;
}

@media (min-width: 768px) {
    .location-section {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 20px 0 20px 72px;
        width: 315px;
    }
}

.location-text {
    text-align: center;
}

/* Events */
.events-container {
    margin: 0 auto;
    max-width: 720px;
    width: 100%;
    padding: 0 20px;
}

@media (min-width: 720px) {
    .events-container {
        padding: 0;
    }
}

.event-row {
    margin: 0 auto;
    max-width: 720px;
    width: 100%;
    padding: 0 20px;
}

@media (min-width: 720px) {
    .event-row {
        padding: 0;
    }
}

.event-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin: 48px 0 24px;
    align-items: center;
}

@media (min-width: 768px) {
    .event-content {
        align-items: center;
        margin: 48px 0 24px;
        text-align: center;
    }
}

.event-header {
    margin: 8px 0;
}

.event-title {
    line-height: 1;
    margin: 32px 0 8px 0;
    font-family: Poppins;
    color: #0084A7;
    font-size: 32px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
}

@media (max-width: 480px) {
    .event-title {
        font-size: 24px; /* Better scaling */
        letter-spacing: 1px;
    }
}

@media (max-width: 640px) {
    .event-title {
        font-size: 28px;
    }
}

.event-date {
    margin: 8px 0;
    font-family: Poppins;
    letter-spacing: 2px;
    color: #0084A7;
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
}

@media (max-width: 480px) {
    .event-date {
        font-size: 16px; /* Better scaling */
        letter-spacing: 1px;
    }
}

@media (max-width: 640px) {
    .event-date {
        font-size: 18px;
    }
}

.event-time {
    margin: 8px 0;
    font-family: Poppins;
    letter-spacing: 2px;
    color: #0084A7;
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
}

@media (max-width: 480px) {
    .event-time {
        font-size: 16px; /* Better scaling */
        letter-spacing: 1px;
    }
}

@media (max-width: 640px) {
    .event-time {
        font-size: 18px;
    }
}

.event-details {
    margin: 8px 0;
}

.event-location {
    margin: 4px 0;
    font-family: Poppins;
    letter-spacing: 1px;
    color: #0084A7;
    font-size: 14px;
    font-style: italic;
    font-weight: normal;
}

@media (max-width: 480px) {
    .event-location {
        font-size: 12px; /* Better scaling */
    }
}

@media (max-width: 640px) {
    .event-location {
        font-size: 13px;
    }
}

.event-address {
    margin: 4px 0;
    font-family: Poppins;
    letter-spacing: 1px;
    color: #0084A7;
    font-size: 14px;
    font-style: italic;
    font-weight: normal;
}

@media (max-width: 480px) {
    .event-address {
        font-size: 12px; /* Better scaling */
    }
}

@media (max-width: 640px) {
    .event-address {
        font-size: 13px;
    }
}

.event-attire {
    margin: 4px 0;
    font-family: Poppins;
    letter-spacing: 1px;
    color: #0084A7;
    font-size: 14px;
    font-style: italic;
    font-weight: normal;
}

@media (max-width: 480px) {
    .event-attire {
        font-size: 12px; /* Better scaling */
    }
}

@media (max-width: 640px) {
    .event-attire {
        font-size: 13px;
    }
}

.event-description {
    margin: 8px 0;
}

.description-text {
    margin: 8px 0;
    max-width: 460px;
    white-space: pre-line;
    font-family: Poppins;
    letter-spacing: 1px;
    color: #0084A7;
    font-size: 14px;
    font-style: italic;
    font-weight: normal;
    text-align: center;
}

@media (max-width: 480px) {
    .description-text {
        font-size: 12px; /* Better scaling */
        text-align: center;
    }
}

@media (max-width: 640px) {
    .description-text {
        font-size: 13px;
        text-align: center;
    }
}

/* Mobile Footer Navigation */
.mobile-footer-nav {
    padding: 48px 0 40px;
}

@media (min-width: 768px) {
    .mobile-footer-nav {
        display: none;
    }
}

.footer-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(0, 132, 167, 45%);
}

.footer-nav-item {
    text-align: center;
    width: 100%;
    padding: 8px;
    border-bottom: 1px solid rgba(0, 132, 167, 45%);
}

.footer-nav-item:hover,
.footer-nav-item:focus {
    background-color: rgba(0, 132, 167, 10%);
}

.footer-nav-link {
    font-family: Poppins;
    letter-spacing: 1px;
    color: #0084A7;
    font-size: 14px;
    font-style: italic;
    font-weight: normal;
    border-bottom: 2px solid transparent;
    display: block;
    letter-spacing: 2px;
    line-height: 1;
    margin: 0 auto;
    padding: 8px 8px 6px;
    text-decoration: none;
    transition: all 0.25s;
    width: fit-content;
}

.footer-nav-link.active {
    border-bottom: 2px solid #0084A7;
}

@media (max-width: 480px) {
    .footer-nav-link {
        font-size: 12px; /* Better scaling */
    }
}

@media (max-width: 640px) {
    .footer-nav-link {
        font-size: 13px;
    }
}

/* Page Header Section */
.page-header-section {
    width: 100%;
    margin-bottom: 30px;
}

.page-header-image {
    width: 100%;
    display: block;
    margin-bottom: 0;
}

.page-header-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px; 
}

@media (max-width: 767px) {
    .page-header-section {
        margin-bottom: 20px;
    }
}

/* Desktop specific adjustments */
@media (min-width: 768px) {
    .page-header-section {
        margin-bottom: 40px;
    }
}

/* Page Content */
.page-content {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.content-container {
    margin: 0 auto;
    max-width: 720px;
    width: 100%;
    padding: 0 20px;
}

@media (min-width: 720px) {
    .content-container {
        padding: 0;
        max-width: 900px;
    }
}

/* Registry Page Styles - Moved from embedded CSS */
.registry-section {
    padding: 40px 0;
}

@media (max-width: 767px) {
    .registry-section {
        padding: 20px 0;
    }
}

.registry-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Registry Boxes - Moved from embedded CSS */
.registry-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.registry-box {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    display: block;
}

.registry-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.registry-logo {
    width: 120px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.registry-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.registry-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.registry-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.registry-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #333;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s ease;
    text-decoration: none;
}

.registry-button:hover {
    background: white;
    color: #555;
    text-decoration: none;
}

.registry-intro {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.registry-intro h3 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #333;
}

.registry-intro p {
    font-size: 18px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Mobile responsive adjustments for registry */
@media (max-width: 768px) {
    .registry-boxes {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 24px 0;
    }
    
    .registry-box {
        padding: 24px 20px;
    }
    
    .registry-logo {
        width: 100px;
        height: 50px;
        margin-bottom: 16px;
    }
    
    .registry-name {
        font-size: 22px;
    }
    
    .registry-description {
        font-size: 15px;
    }
    
    .registry-intro h3 {
        font-size: 24px;
    }
    
    .registry-intro p {
        font-size: 16px;
    }
}

/* Additional mobile fixes for registry */
@media (max-width: 480px) {
    .registry-box {
        padding: 20px 16px;
    }
    
    .registry-logo {
        width: 80px;
        height: 40px;
    }
    
    .registry-name {
        font-size: 20px;
    }
    
    .registry-description {
        font-size: 14px;
    }
    
    .registry-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

.registry-title {
    margin: 44px 0 0 0;
    text-align: center;
    font-family: Poppins;
    color: #0084A7;
    font-size: 32px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

@media (max-width: 480px) {
    .registry-title {
        font-size: 24px; /* Better scaling */
        margin: 20px 0 0 0;
        letter-spacing: 1px;
    }
}

@media (max-width: 640px) {
    .registry-title {
        font-size: 28px;
        margin: 20px 0 0 0;
    }
}

@media (max-width: 767px) {
    .registry-title {
        padding: 0 16px;
    }
}

.registry-message {
    margin-bottom: 40px;
}

.registry-message p {
    font-family: Poppins;
    color: #0084A7;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

@media (max-width: 480px) {
    .registry-message p {
        font-size: 14px; /* Better scaling */
    }
}

.registry-placeholder {
    padding: 40px 20px;
    border: 2px dashed #0084A7;
    border-radius: 8px;
    margin: 40px 0;
    opacity: 0.7;
}

.placeholder-icon {
    color: #0084A7;
    margin-bottom: 16px;
}

.placeholder-icon svg {
    width: 48px;
    height: 48px;
}

.placeholder-text {
    font-family: Poppins;
    color: #0084A7;
    font-size: 14px;
    font-style: italic;
    margin: 0;
}

.registry-contact {
    margin-top: 40px;
    padding: 30px;
    background-color: rgba(0, 132, 167, 0.05);
    border-radius: 8px;
}

.contact-title {
    font-family: Poppins;
    color: #0084A7;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.registry-contact p {
    font-family: Poppins;
    color: #0084A7;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Footer - Fixed spacing consistency */
.site-footer {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: auto;
    position: relative;
    width: 100%;
    padding-bottom: 20px; /* Added consistent padding */
}

.footer-content {
    letter-spacing: 3.4px;
    line-height: 1;
    margin: 52px auto;
    text-align: center;
    width: fit-content;
}

@media (max-width: 480px) {
    .footer-content {
        margin: 32px auto; /* Reduced margin on small screens */
    }
}

.footer-title {
    padding: 0 18px 16px;
    font-family: Poppins;
    color: #0084A7;
    font-size: 60px;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-weight: 600;
}

@media (max-width: 480px) {
    .footer-title {
        font-size: 36px; /* Better scaling */
        letter-spacing: 2px;
    }
}

@media (max-width: 640px) {
    .footer-title {
        font-size: 45px;
        letter-spacing: 3px;
    }
}

@media (max-width: 768px) {
    .footer-title {
        letter-spacing: 3px;
    }
}

.footer-date {
    padding: 20px 18px 0;
    font-family: Poppins;
    letter-spacing: 2px;
    color: #0084A7;
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.25rem;
    border-top: 1px solid #0084A7;
}

@media (max-width: 480px) {
    .footer-date {
        font-size: 16px; /* Better scaling */
        letter-spacing: 1px;
    }
}

@media (max-width: 640px) {
    .footer-date {
        font-size: 17px;
    }
}

.footer-credits {
    line-height: 1.75;
    font-family: Poppins;
    letter-spacing: 0px;
    color: #0084A7;
    font-size: 13px;
    font-style: italic;
    font-weight: normal;
    margin: 12px 0;
    text-align: center;
}

@media (max-width: 480px) {
    .footer-credits {
        font-size: 11px; /* Better scaling */
    }
}

@media (max-width: 640px) {
    .footer-credits {
        font-size: 12px;
    }
}

.footer-credits a {
    text-decoration: underline;
    color: #0084A7;
}

/* Story Page Styles */
.story-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 720px) {
    .story-content {
        padding: 0;
    }
}

.story-section {
    margin: 48px 0;
    text-align: center;
}

@media (min-width: 768px) {
    .story-section {
        text-align: center;
    }
}

/* Photo Gallery - Improved responsiveness */
.photo-gallery {
    margin: 32px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

@media (max-width: 400px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
        gap: 12px;
    }
}

@media (min-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (min-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 24px;
    }
}

.gallery-thumb {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: block;
    background: #f5f5f5;
}

@media (max-width: 400px) {
    .gallery-thumb {
        height: 240px; /* Reduced height for very small screens */
    }
}

.gallery-thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 132, 167, 0.3);
}

/* Simple Lightbox Styles */
.simple-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.simple-lightbox.active {
    display: flex;
}

.lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #ffffff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 132, 167, 0.8);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 15px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 1001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 132, 167, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-caption {
    position: absolute;
    bottom: 60px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-family: Poppins;
    font-size: 14px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: Poppins;
    font-size: 12px;
    font-weight: 500;
}

/* Responsive adjustments for lightbox */
@media (max-width: 768px) {
    .lightbox-container {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-image {
        max-height: 70vh;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 35px;
        height: 35px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 20px;
        padding: 12px 16px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-caption {
        bottom: 50px;
        left: 10px;
        right: 10px;
        padding: 12px;
        font-size: 12px;
    }
    
    .lightbox-counter {
        bottom: 15px;
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* Loading states */
.gallery-thumb[data-loading="true"] {
    background: #f5f5f5 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><circle cx="25" cy="25" r="20" fill="none" stroke="%230084A7" stroke-width="3" stroke-linecap="round" stroke-dasharray="31.416" stroke-dashoffset="31.416"><animate attributeName="stroke-dasharray" dur="2s" values="0 31.416;15.708 15.708;0 31.416" repeatCount="indefinite"/><animate attributeName="stroke-dashoffset" dur="2s" values="0;-15.708;-31.416" repeatCount="indefinite"/></circle></svg>') no-repeat center center;
    background-size: 30px 30px;
}

/* Focus styles for accessibility */
.gallery-thumb:focus,
.lightbox-close:focus,
.lightbox-prev:focus,
.lightbox-next:focus {
    outline: 2px solid #0084A7;
    outline-offset: 2px;
}

/* Smooth transitions */
.simple-lightbox {
    transition: opacity 0.3s ease;
}

.simple-lightbox.active {
    opacity: 1;
}

.lightbox-image {
    transition: opacity 0.3s ease;
}

/* Print styles */
@media print {
    .simple-lightbox {
        display: none !important;
    }
}

/* FAQ Page Styles - Improved */
.faq-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 720px) {
    .faq-content {
        padding: 0;
    }
}

/* FAQ Items - Improved mobile layout */
.faq-item {
    margin: 0 auto 32px auto;
    max-width: 550px;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background: rgba(0, 132, 167, 0.02);
    border: 1px solid rgba(0, 132, 167, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(0, 132, 167, 0.05);
    border-color: rgba(0, 132, 167, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 132, 167, 0.1);
}

@media (min-width: 768px) {
    .faq-item {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .faq-item {
        padding: 16px;
        margin: 0 auto 20px auto;
    }
}

@media (max-width: 767px) {
    .faq-item {
        padding: 16px;
        margin: 0 auto 24px auto;
    }
}

/* FAQ Questions - Improved scaling */
.faq-question {
    margin: 0 0 16px 0;
    text-align: center;
    font-family: Poppins;
    letter-spacing: 2px;
    color: #0084A7;
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .faq-question {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .faq-question {
        font-size: 16px; /* Better scaling */
        letter-spacing: 1px;
        margin-bottom: 12px;
    }
}

@media (max-width: 640px) {
    .faq-question {
        font-size: 18px;
        letter-spacing: 1px;
        margin-bottom: 12px;
    }
}

/* FAQ Answers - Improved scaling */
.faq-answer {
    padding: 0;
    margin: 0;
    text-align: center;
    font-family: Poppins;
    letter-spacing: 1px;
    color: #0084A7;
    font-size: 14px;
    font-style: italic;
    font-weight: normal;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .faq-answer {
        font-size: 12px; /* Better scaling */
    }
}

@media (max-width: 640px) {
    .faq-answer {
        font-size: 13px;
    }
}

/* Smooth scrolling for any anchor links */
html {
    scroll-behavior: smooth;
}

/* FAQ specific responsive adjustments */
@media (max-width: 768px) {
    .faq-content {
        padding: 0 16px;
    }
}

/* Print styles for FAQ page */
@media print {
    .faq-item {
        page-break-inside: avoid;
        background: white;
        border: 1px solid #ddd;
        margin-bottom: 20px;
    }
    
    .faq-question {
        color: #000;
        font-size: 16px;
    }
    
    .faq-answer {
        color: #333;
        font-size: 12px;
    }
}

.wedding-date-location a:hover,
.wedding-date-location a {
    color: inherit !important;
    text-decoration: none !important;
    border-bottom: none !important;
    opacity: 0.8;
}

.location-text a:hover,
.location-text a {
    color: inherit !important;
    text-decoration: none !important;
    border-bottom: none !important;
    opacity: 0.8;
}