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

:root {
    --primary-color: #3d4f61;
    --secondary-color: #111a23;
    --accent-color: #8b4a5c;
    --text-color: #2c3e50;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --muted-blue: #6b8baa;
    --muted-red: #9b5a6c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-image: url('Media/PageMedia/siteImages/Background.png');
    background-attachment: fixed;
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    padding-top: 130px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 0;
}

/* Navbar Styles */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.top-bar-link {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    background: var(--muted-red);
    color: white !important;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.35rem;
    transition: opacity 0.3s ease;
}

.top-bar-link:hover {
    opacity: 0.9;
    color: white !important;
    text-decoration: underline;
}

.navbar {
    position: relative;
    background-image: url('Media/PageMedia/siteImages/cityscapeNBg.png');
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    backdrop-filter: blur(25px);
    box-shadow: var(--shadow);
    padding: 0.9rem 1.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4.75px solid var(--secondary-color);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.55) 100%);
    z-index: -1;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.9rem;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 204.2975px;
    width: auto;
    object-fit: contain;
    transform: translateY(7%);
}

.navbar-headshot {
    display: none;
}

.endorsers-icon-nav {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.9rem;
}

.nav-links a {
    text-decoration: none;
    color: #123e60;
    font-weight: 700;
    font-size: 1.235rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #0f2f4a;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ae1b20;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

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

.donate-section {
    text-align: center;
    padding: 0.5rem;
}

.donate-label {
    font-weight: bold;
    color: var(--muted-red);
    margin-bottom: 0.5rem;
    font-size: 1.9rem;
}

.qr-code-placeholder {
    background: var(--white);
    padding: 0.5rem;
    border: 3px solid var(--secondary-color);
    border-radius: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(91, 90, 108, 0.2);
}

.qr-code-placeholder a {
    display: block;
    text-decoration: none;
}

.qr-code-placeholder img {
    width: 120px;
    height: 120px;
    display: block;
}

.qr-code-placeholder:hover {
    transform: scale(1.05);
}

.qr-code-link {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.qr-code-link a {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.qr-code-link a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Hero Section */
.hero-section {
    width: 100%;
    margin-top: -90px;
    padding-top: 80px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    height: 495px;
}

.hero-image {
    width: 100%;
    height: 495px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: blur(3px);
}

.hero-headshot {
    position: absolute;
    bottom: -196px;
    left: 0%;
    height: 405px;
    width: auto;
    object-fit: contain;
    object-position: bottom;
    z-index: 5;
    max-width: 36%;
    transform: scaleX(-1);
}

.hero-headshot-mobile {
    display: none;
}

.hero-endorsers-icon {
    position: absolute;
    right: 0;
    top: 75%;
    transform: translateY(-50%);
    height: 200px;
    width: auto;
    object-fit: contain;
    object-position: right center;
    z-index: 5;
}

.hero-motto {
    position: absolute;
    top: 75%;
    left: 45%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 4.41rem;
    font-weight: 600;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.6);
    text-align: center;
    z-index: 10;
    width: 90%;
    max-width: 1400px;
    line-height: 1.2;
    padding: 0 2rem;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.content-section {
    margin-bottom: 6rem;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.section-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.content-section.alternate .section-container {
    direction: rtl;
}

.content-section.alternate .section-container > * {
    direction: ltr;
}

.section-image {
    width: 100%;
    min-height: 400px;
    border-radius: 4px;
    overflow: visible;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    background: #f8f8f8;
    padding: 15px;
    padding-bottom: 15px;
    position: relative;
}

.section-image:hover {
    transform: scale(1.02);
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

#about .section-image {
    transform: scale(0.8);
    transform-origin: center;
}

.section-text {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(61, 79, 97, 0.1);
}

.section-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
}

/* Alternating colors: Red, White, Blue pattern */
.content-section:nth-child(1) .section-text h2 {
    color: #ec1017;
    border-left-color: #ec1017;
}

.content-section:nth-child(2) .section-text h2 {
    color: #000000;
    border-right-color: #000000;
}

.content-section:nth-child(3) .section-text h2 {
    color: #123e60;
    border-left-color: #123e60;
}

.content-section:nth-child(4) .section-text h2 {
    color: #ec1017;
    border-right-color: #ec1017;
}

.content-section:nth-child(5) .section-text h2 {
    color: #000000;
    border-left-color: #000000;
}

.content-section:nth-child(6) .section-text h2 {
    color: #123e60;
    border-right-color: #123e60;
}

.content-section.alternate .section-text h2 {
    border-left: none;
    border-right: 4px solid;
    padding-left: 0;
    padding-right: 1rem;
}

.section-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 3px solid var(--secondary-color);
    background: linear-gradient(90deg, rgba(90, 122, 154, 0.1) 0%, rgba(139, 74, 92, 0.1) 100%);
    padding: 1.5rem;
    border-radius: 8px;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-form {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 3px solid var(--secondary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--muted-blue);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(90, 122, 154, 0.1);
}

.submit-btn {
    background: var(--secondary-color);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(76, 175, 80, 0.2);
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.form-message.error {
    display: block;
    background: rgba(244, 67, 54, 0.2);
    color: #c62828;
    border: 1px solid #f44336;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #123e60;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-drawer.open {
    right: 0;
}

.drawer-content {
    padding: 80px 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links a {
    text-decoration: none;
    color: #123e60;
    font-weight: 700;
    font-size: 1.5rem;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.mobile-nav-links a:hover {
    color: #0f2f4a;
    border-bottom-color: #123e60;
}

.mobile-donate-section {
    text-align: center;
    padding: 1.5rem;
    background: rgba(90, 122, 154, 0.1);
    border-radius: 8px;
    margin-top: 1rem;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-links,
    .nav-right {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    body {
        padding-top: 250px;
    }

    .navbar {
        justify-content: center;
        padding: 1rem;
    }

    .navbar::before {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.79) 100%);
    }

    .nav-left {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }

    .endorsers-icon-nav {
        display: flex;
        align-items: center;
        margin-left: 30%;
    }

    .endorsers-icon-nav img {
        height: 103px;
        width: auto;
        object-fit: contain;
    }

    .hero-endorsers-icon {
        display: none;
    }

    .logo {
        margin-left: -5%;
    }

    .logo-image {
        height: 215.05px;
    }

    .navbar-headshot {
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        height: 178.5px;
        width: auto;
        object-fit: contain;
        transform: scaleX(-1);
        z-index: 1001;
    }

    .section-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-section.alternate .section-container {
        direction: ltr;
    }

    .section-image {
        height: 300px;
    }

    .main-content > .content-section:first-child {
        margin-top: 2rem;
    }

    .hero-section.about-hero,
    .hero-section.index-hero {
        display: none;
    }

    .hero-section {
        padding-top: 80px;
        height: 135px;
    }


    .hero-image {
        height: 135px;
        background-color: #113e61;
        position: relative;
        overflow: visible;
    }

    .hero-image img {
        display: none;
    }

    .hero-headshot {
        display: none;
    }

    .hero-headshot-mobile {
        display: block;
        position: absolute;
        height: 122px;
        bottom: -40px;
        left: 0%;
        max-width: 27%;
        transform: scaleX(-1);
        z-index: 5;
        object-fit: contain;
        object-position: bottom;
    }

    .section-text h2 {
        font-size: 2rem;
    }

    .hero-motto {
        font-size: 1.5rem;
        top: 200px;
        left: 40%;
        transform: translate(-50%, -50%);
        padding: 0 1rem;
        line-height: 1.1;
        z-index: 20;
        position: absolute;
        color: #ffffff;
        width: 100%;
        max-width: 100%;
    }

    body::before {
        background: rgba(255, 255, 255, 0.25);
    }
}

@media (max-width: 600px) {
    body {
        padding-top: 200px;
    }

    .navbar {
        padding: 0.5rem 1rem;
    }

    .logo-image {
        height: 161.2875px;
    }

    .navbar-headshot {
        height: 133.875px;
        transform: scaleX(-1);
    }

    .mobile-menu-drawer {
        width: 280px;
    }

    .hero-headshot {
        display: none;
    }

    .hero-headshot-mobile {
        display: block;
        position: absolute;
        height: 122px;
        bottom: -40px;
        left: 0%;
        max-width: 27%;
        transform: scaleX(-1);
        z-index: 5;
        object-fit: contain;
        object-position: bottom;
    }

    .hero-motto {
        font-size: 1.25rem;
        top: 200px;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 0 1rem;
        line-height: 1.1;
        z-index: 20;
        position: absolute;
        color: #ffffff;
        width: 100%;
        max-width: 100%;
    }
}

    .main-content {
        padding: 2rem 1rem;
    }

    .content-section {
        margin-bottom: 4rem;
    }

    .section-text {
        padding: 1rem;
    }

    .section-text h2 {
        font-size: 1.75rem;
    }


/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-donate {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.donate-link {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.donate-link:hover {
    background: var(--muted-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-ig-link {
    display: block;
    transition: opacity 0.3s ease;
}

.footer-ig-link:hover {
    opacity: 0.8;
}

.footer-ig-qr {
    display: block;
    max-width: 198px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-section h3 {
        font-size: 1.3rem;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }
}

/* Gallery Styles */
.section-container.gallery-container {
    display: block;
    grid-template-columns: unset;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(61, 79, 97, 0.1);
}

.gallery-header h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.gallery-header p {
    color: var(--text-color);
    font-size: 1.1rem;
}

.gallery-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
    font-size: 1.2rem;
}

.gallery-empty {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1.1rem;
}

/* Gallery Wrapper */
.gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

/* Central Viewer Area */
.gallery-viewer {
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(61, 79, 97, 0.1);
    backdrop-filter: blur(10px);
}

.viewer-image-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    max-height: 35vh;
    min-height: 200px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewer-image {
    max-width: 100%;
    max-height: 35vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.viewer-image:hover {
    opacity: 0.95;
}

.viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 1rem;
}

.viewer-nav-btn {
    pointer-events: all;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 10;
}

.viewer-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.viewer-nav-btn:active {
    transform: scale(0.95);
}

.viewer-info {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 10;
}

.viewer-counter {
    font-weight: 600;
}

/* Thumbnail Strip */
.gallery-thumbnails {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.thumbnail-container {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 1rem;
    min-width: min-content;
}

.thumbnail-item {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background: #f8f8f8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.thumbnail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: var(--muted-blue);
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(61, 79, 97, 0.4);
    transform: translateY(-3px) scale(1.05);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover img {
    transform: scale(1.1);
}

.thumbnail-error {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.8rem;
    background: #f0f0f0;
}

.thumbnail-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}

.viewer-video {
    max-width: 100%;
    max-height: 35vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-media-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.lightbox-image {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-video {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #fff;
    text-decoration: none;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 2001;
    padding: 20px;
    user-select: none;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #fff;
    transform: translateY(-50%) scale(1.2);
}

.lightbox-caption {
    color: #f1f1f1;
    font-size: 1.2rem;
    margin-top: 20px;
    text-align: center;
    padding: 0 20px;
}

/* Responsive Gallery */
@media (max-width: 968px) {
    /* Hide viewer on mobile - show only thumbnails */
    .gallery-viewer {
        display: none;
    }

    .gallery-wrapper {
        gap: 0;
    }

    /* Change thumbnails to grid layout on mobile */
    .gallery-thumbnails {
        background: transparent;
        padding: 0;
        overflow: visible;
    }

    .thumbnail-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
        padding: 1rem 0;
        min-width: auto;
    }

    .thumbnail-item {
        width: 100%;
        height: 150px;
        aspect-ratio: 1;
    }

    .thumbnail-item.active {
        transform: none;
        border-color: var(--primary-color);
        box-shadow: 0 4px 15px rgba(61, 79, 97, 0.4);
    }

    .gallery-header h2 {
        font-size: 2rem;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 35px;
        padding: 15px;
    }

    .lightbox-close {
        font-size: 35px;
        top: 15px;
        right: 25px;
    }
}

@media (max-width: 600px) {
    /* Hide viewer on mobile - show only thumbnails */
    .gallery-viewer {
        display: none;
    }

    .gallery-wrapper {
        gap: 0;
    }

    /* Thumbnails grid for small mobile */
    .thumbnail-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
        padding: 0.5rem 0;
    }

    .thumbnail-item {
        height: 120px;
    }

    .gallery-header {
        padding: 1.5rem;
    }

    .gallery-header h2 {
        font-size: 1.75rem;
    }

    .lightbox-image,
    .lightbox-video {
        max-width: 95%;
        max-height: 80%;
    }

    .lightbox-prev {
        left: 10px;
        font-size: 30px;
        padding: 10px;
    }

    .lightbox-next {
        right: 10px;
        font-size: 30px;
        padding: 10px;
    }

    .lightbox-close {
        font-size: 30px;
        top: 10px;
        right: 15px;
    }
}

/* Endorsements Styles */
.endorsements-container {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.endorsements-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 2rem 0;
}

.endorsement-item {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(61, 79, 97, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.endorsement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(61, 79, 97, 0.15);
}

.endorsement-image {
    width: 80%;
    max-width: 80%;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: #f8f8f8;
}

.endorsement-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.endorsement-item:hover .endorsement-image img {
    transform: scale(1.02);
}

.endorsement-text {
    padding: 0;
}

.endorsement-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
    text-align: left;
}

.endorsement-label {
    padding: 0;
    text-align: center;
    margin-top: 1rem;
}

.endorsement-label p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    text-align: center;
}

/* Responsive Endorsements */
@media (max-width: 968px) {
    .endorsements-list {
        gap: 2rem;
        padding: 1rem 0;
    }

    .endorsement-item {
        padding: 1.5rem;
    }

    .endorsement-text p {
        font-size: 1rem;
    }

    .endorsement-label p {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .endorsements-list {
        gap: 1.5rem;
    }

    .endorsement-item {
        padding: 1rem;
    }

    .endorsement-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .endorsement-label p {
        font-size: 1rem;
    }
}

/* Instagram Feed Section */
.instagram-feed-section {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(61, 79, 97, 0.1);
    backdrop-filter: blur(10px);
}

.instagram-header {
    text-align: center;
    margin-bottom: 2rem;
}

.instagram-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.instagram-header p {
    color: var(--text-color);
    font-size: 1.1rem;
}

.instagram-header a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.instagram-header a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.instagram-embed-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem 0;
    max-height: 90vh;
    min-height: 600px;
}

.instagram-widget-embed {
    width: 100%;
    min-height: 600px;
    border: none;
    display: block;
}

.instagram-fallback-note {
    text-align: center;
    padding: 1.5rem;
    background: rgba(61, 79, 97, 0.05);
    border-radius: 8px;
    margin-top: 1rem;
}

.instagram-fallback-note p {
    color: var(--text-color);
    font-size: 0.95rem;
    margin: 0;
}

.instagram-fallback-note a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.instagram-fallback-note a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Instagram Feed Placeholder */
.instagram-feed-placeholder {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    padding: 3rem 2rem;
}

.instagram-placeholder-content {
    text-align: center;
    max-width: 500px;
}

.instagram-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    display: block;
}

.instagram-placeholder-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.instagram-placeholder-content > p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.instagram-cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.instagram-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(131, 58, 180, 0.3);
    color: white;
}

.widget-setup-hint {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 1.5rem;
}

.widget-setup-hint a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.widget-setup-hint a:hover {
    text-decoration: underline;
}

/* Instagram Embed Blockquote Styling - Full Width with Scrollable Content */
.instagram-embed-container blockquote.instagram-media {
    margin: 0 auto !important;
    max-width: 100% !important;
    min-width: 100% !important;
    width: 100% !important;
    min-height: auto !important;
    height: auto !important;
}

/* Make Instagram embed content scrollable */
.instagram-embed-container blockquote.instagram-media iframe {
    width: 100% !important;
    height: auto !important;
    min-height: 800px !important;
}

/* Custom scrollbar styling for Instagram embed container */
.instagram-embed-container::-webkit-scrollbar {
    width: 12px;
}

.instagram-embed-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.instagram-embed-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
}

.instagram-embed-container::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Ensure embed content expands to show full feed */
.instagram-embed-container blockquote.instagram-media {
    overflow: visible !important;
}

@media (min-width: 768px) {
    .instagram-embed-container {
        max-height: 85vh;
        min-height: 600px;
    }

    .instagram-embed-container blockquote.instagram-media {
        min-height: 600px !important;
    }
}

@media (min-width: 1200px) {
    .instagram-embed-container {
        max-height: 80vh;
        min-height: 700px;
    }

    .instagram-embed-container blockquote.instagram-media {
        min-height: 700px !important;
    }
}

@media (max-width: 600px) {
    .instagram-embed-container {
        max-height: 75vh;
        min-height: 500px;
    }
}

/* Responsive Instagram Feed */
@media (max-width: 968px) {
    .instagram-feed-section {
        margin-top: 3rem;
        padding: 2rem 1.5rem;
    }

    .instagram-header h2 {
        font-size: 2rem;
    }

    .instagram-header p {
        font-size: 1rem;
    }

    .instagram-widget-embed {
        min-height: 500px;
    }

    .instagram-feed-placeholder {
        min-height: 500px;
        padding: 2rem 1.5rem;
    }

    .instagram-icon {
        width: 60px;
        height: 60px;
    }

    .instagram-placeholder-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .instagram-feed-section {
        margin-top: 2rem;
        padding: 1.5rem 1rem;
    }

    .instagram-header h2 {
        font-size: 1.75rem;
    }

    .instagram-widget-embed {
        min-height: 400px;
    }

    .instagram-feed-placeholder {
        min-height: 400px;
        padding: 1.5rem 1rem;
    }

    .instagram-icon {
        width: 50px;
        height: 50px;
    }

    .instagram-placeholder-content h3 {
        font-size: 1.3rem;
    }

    .instagram-placeholder-content > p {
        font-size: 1rem;
    }

    .instagram-cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .instagram-embed-container blockquote.instagram-media {
        max-width: 100% !important;
        min-width: 100% !important;
        width: 100% !important;
        min-height: 500px !important;
    }
}

