@font-face {
    font-family: 'Now-Regular';
    src: url('fonts/Now-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dancing Script';
    src: url('fonts/DancingScript-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dancing Script';
    src: url('fonts/DancingScript-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dancing Script';
    src: url('fonts/DancingScript-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dancing Script';
    src: url('fonts/DancingScript-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #e3f9eb;
    min-height: 100vh;
}

p, li, a, .cta-btn {
    font-family: 'Now-Regular', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1 {
    margin-bottom: 25px;
    color: #214a5f;
    font-family: 'Now-Regular';
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 3px;
}
h2 {
    font-size: 1.2rem;
    margin-top: 15px;
}
ul {
    padding-left: 20px;
}

img.banner-image-logo {
    top: 0;
    position: absolute;
    z-index: 99;
    left: 50%;
    height: 400px;
    transform: translate(-50%, 0%);
}

/* Custom bullet points for questions list */
#questions ul {
    list-style: none;
    padding-left: 0;
}

#questions ul li {
    position: relative;
    padding-left: 2.5em;
    margin-bottom: 1em;
    line-height: 1.6;
    font-weight: 600;
}

#questions ul li::before {
    content: "☆";
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 1.8em;
    color: #214a5f;
}

/* Banner Styles */
.banner {
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 400px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.banner-content {
    text-align: center;
    color: white;
    z-index: 2;
    margin-top: 60px;
    max-width: 800px;
}

.banner-content h1 {
    font-size: 3.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 10px;
    color: white;
    font-family: system-ui;
    line-height: 60px;
    width: 300px;
    text-wrap: auto;
    margin-left: auto;
    margin-right: auto;
}

.banner-content .subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 600;
    text-transform: uppercase;
    font-family: system-ui;
    width: 201px;
    margin-left: auto;
    margin-right: auto;
}

.hr {
    height: auto;
    margin: 4rem 0;
}

#introduction .dancing-script {
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
    color: #214a5f;
    font-size: 3rem;
    text-align: center;
    text-transform: none;
    text-shadow: 2px 1px rgb(103 97 97 / 50%);
}

img.trenner {
    /* margin: 0 auto; */
    display: block;
    width: 330px;
}


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

.contact-container {    
    margin: 0 auto;
    padding: 2rem 17.8rem;
    background-color: #70b2ad;
}


section.contact-form-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0rem;
}


/* Table of Contents Styles */
.table-of-contents {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(38, 99, 38, 0.2);
    border-radius: 8px;
    padding: 0.8rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    max-width: 200px;
    max-height: 80vh;
    overflow-y: auto;
}

.table-of-contents:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.table-of-contents h3 {
    color: #214a5f;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
    border-bottom: 1px solid #42a2d3;
    padding-bottom: 0.3rem;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.2rem;
}

.table-of-contents a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
}

.table-of-contents a:hover {
    background: linear-gradient(135deg, #42a2d3, #214a5f);
    color: white;
    transform: translateX(2px);
}

.table-of-contents a:active {
    transform: translateX(1px) scale(0.98);
}

/* Hide mobile-only elements on desktop */
.mobile-only,
.mobile-separator {
    display: none;
}

/* Mobile TOC Toggle Button */
.mobile-toc-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(38, 99, 38, 0.2);
    border-radius: 8px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0;
}

/* Active state - green background */
.mobile-toc-toggle.active {
    background: rgba(38, 99, 38, 0.1);
}

/* Hover states only for non-touch devices to avoid sticky hover on mobile */
@media (hover: hover) {
    .mobile-toc-toggle:not(.active):hover {
        background: rgba(38, 99, 38, 0.1);
        transform: scale(1.05);
    }
    
    .mobile-toc-toggle.active:hover {
        background: rgba(38, 99, 38, 0.15);
    }
}

/* Force reset class for temporary override */
.mobile-toc-toggle.force-reset {
    background: rgba(255, 255, 255, 0.95) !important;
    transform: scale(1) !important;
}

.mobile-toc-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #214a5f;
    transition: all 0.3s ease;
    border-radius: 1px;
}

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

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

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

header {
    text-align: center;
    color: black;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

header h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.cta-btn {
    display: block;
    background: linear-gradient(45deg, #91d7d1, #70b2ad);
    color: #26516f;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0, 0.3);
    border: none;
    cursor: pointer;
    margin: 20px auto;
    max-width: 330px;
    text-align: center;
    line-height: 1.6;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0, 0.4);    
}

.cta-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0,0,0, 0.3);
}


.form-container {
    width: 100%;
    margin: 0 auto;
}

.form-container h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2rem;
    font-weight: 300;
}

.contact-form {
    background: white;
    padding: 2rem;        
}

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

/* Checkbox styling with reduced whitespace */
.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    margin: 0.1rem 0 0 0;
    width: 16px;
    height: 16px;
    accent-color: #266326;
}

.checkbox-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.recaptcha-group {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.recaptcha-group .g-recaptcha {
    transform: scale(0.95);
    transform-origin: center;
}

@media (max-width: 480px) {
    .recaptcha-group .g-recaptcha {
        transform: scale(0.85);
    }
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background-color: white;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23667eea' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    background-color: white;
    color: #214a5f;
    padding: 15px 30px;
    border: 1px solid #42a2d3;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

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

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #c3e6cb;
    text-align: center;
    margin-top: 1rem;
}

.success-message h4 {
    margin-bottom: 0.5rem;
    color: #155724;
}

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

.info-item {
    text-align: center;
    padding: 1.5rem;    
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.info-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.info-item p {
    color: #666;
    font-size: 1rem;
}

.info-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: #667eea;
}

.info-item .instagram-icon {
    height: 32px;
    width: 32px;
    vertical-align: middle;
}

.info-item .instagram-text {    
    top: 15px;
    position: relative;
}

p.prominent-text {
    margin: 3rem 0rem;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    background-color: #bfefcf;
    padding: 1.5rem;
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
}

p.prominent-text a {
    color: #214a5f;
    text-decoration: none;
    padding: 1.2rem;
}

p.prominent-text a:hover {
    text-decoration: underline;
}

/* Flyer Grid Styles */
.flyer-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.flyer-item {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flyer-image {
    max-width: 350px;
    width: 100%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

.flyer-item:hover .flyer-image {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Flyer Flip Card — mobile/tablet only */
.flyer-flip-card {
    display: none;
}

@media (max-width: 768px) {
    .flyer-grid {
        display: none;
    }

    .flyer-flip-card {
        display: block;
        position: relative;
        width: 100%;
        margin: 2rem auto;
        perspective: 1000px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .flyer-flip-card-inner {
        position: relative;
        width: 100%;
        transition: transform 0.6s ease;
        transform-style: preserve-3d;
    }

    .flyer-flip-card.flipped .flyer-flip-card-inner {
        transform: rotateY(180deg);
    }

    .flyer-flip-card-front,
    .flyer-flip-card-back {
        width: 100%;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .flyer-flip-card-front img,
    .flyer-flip-card-back img {
        width: 100%;
        display: block;
        border-radius: 4px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    }

    .flyer-flip-card-back {
        position: absolute;
        top: 0;
        left: 0;
        transform: rotateY(180deg);
    }

    .flyer-flip-hint {
        position: absolute;
        bottom: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        pointer-events: none;
        z-index: 1;
    }
}

/* Flyer Modal Styles */
.flyer-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.flyer-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.flyer-modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;    
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.flyer-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.flyer-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Services Section Styles */
.services-section {    
    max-width: 800px;
    margin: 0 auto;
}

.services-intro {     
    margin-bottom: 3rem;
    color: #333;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: white;    
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.service-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-content h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #214a5f;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
}

.card-content p {
    line-height: 1.6;
    color: #666;
}

/* Profile Section Styles */
section.warummitmir {
    background-color: #bfefcf;
    padding: 2rem;    
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
}

.profile-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.profile-image {
    flex: 0 0 300px;
    max-width: 300px;
}

.profile-image img {
    width: 100%;
    height: auto;    
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.profile-text {
    flex: 1;
    min-width: 0;
}

.profile-text p {
    margin: 0;
    line-height: 1.7;
}

footer {
    text-align: center;
    color:black;
    padding: 2rem 0;
    opacity: 0.8;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: black;
    text-decoration: none;
    margin: 0 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #214a5f;
    text-decoration: underline;
}

.footer-links span {
    color: black;
    opacity: 0.6;
    margin: 0 0.5rem;
}

/* Collapsible Legal Content Styles */
.legal-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.collapsible {
    margin-bottom: 0;    
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: white;
    max-height: 0;
    opacity: 0;
    transition: all 0.4s ease-out;
}

.collapsible.active {
    max-height: 2000px;
    opacity: 1;
    margin-bottom: 1rem;
    transition: all 0.5s ease-in;
}

.collapsible-content {
    overflow: hidden;
}

.collapsible-content h2 {
    background: linear-gradient(135deg, #42a2d3, #214a5f);
    color: white;
    margin: 0;
    padding: 1.5rem 2rem;
    text-align: center;
    font-weight: 300;
    font-size: 1.8rem;
}
.collapsible-section {
    text-align: center;
}

.legal-body {
    padding: 2rem;
    line-height: 1.6;
    max-height: 400px;
    overflow-y: auto;
}

.legal-body h3 {
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 2px solid #42a2d3;
    padding-bottom: 0.5rem;
}

.legal-body h3:first-child {
    margin-top: 0;
}

.legal-body h4 {
    color: #555;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.legal-body p {
    color: #666;
    margin-bottom: 1rem;
    text-align: justify;
}

.legal-body strong {
    color: #333;
}

.collapsible-toggle {
    position: relative;
    transition: all 0.3s ease;
    color: #214a5f;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    padding: 0.2rem 3rem;
    border-bottom: 2px solid #214a5f;    
    background-color: inherit;
}

.collapsible-toggle:hover {
    color: #44809f;
    border-color:  #44809f;
    background-color: inherit;
}

.collapsible-toggle::after {
    content: ' ▼';
    font-size: 0.8em;
    transition: transform 0.3s ease;
    display: inline-block;
    margin-left: 0.5rem;
}

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

.collapsible-toggle.active {
    color: #214a5f;
    border-color:  #214a5f;
    background-color: inherit;
}

.collapsible-section {
    margin: 2rem 0;
}

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 1000px;
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        max-height: 1000px;
        opacity: 1;
    }
    to {
        max-height: 0;
        opacity: 0;
    }
}

/* Gallery Carousel Styles */
.content-with-gallery {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 2rem 0;
}

.halfed {
    flex: 1;
    min-width: 0;
}

.image-carousel {
    flex: 1;
    min-width: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;    
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    width: 40px;
    height: 50px;
    font-size: 24px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-next {
    right: 0px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(33, 74, 95, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active,
.carousel-dot:hover {
    background: #214a5f;
    transform: scale(1.2);
}


/* Gallery Mobile Responsive Styles */
@media (max-width: 768px) {
    .content-with-gallery {
        flex-direction: column;
        gap: 2rem;
    }
    
    .halfed {
        width: 100%;
    }
    
    .image-carousel {
        width: 100%;
        max-width: none;
    }
    
    .carousel-container {
        max-width: 100%;
        width: 100%;
        margin: 0;
    }
    
    .carousel-slides {
        height: 400px;
        width: 100%;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .carousel-prev {
        left: 8px;
    }
    
    .carousel-next {
        right: 8px;
    }
}

@media (max-width: 480px) {
    .content-with-gallery {
        gap: 1.5rem;
    }
    
    .halfed {
        width: 100%;
    }
    
    .image-carousel {
        width: 100%;
        max-width: none;
    }
    
    .carousel-container {
        max-width: 100%;
        width: 100%;
        margin: 0;
    }
    
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .carousel-dots {
        gap: 6px;
        margin-top: 0.8rem;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }
    .container,
    .contact-container {
        padding: 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        margin: 0 auto;
        max-width: 500px;
    }
    section.contact-form-section {
        padding: 2rem 1rem;
    }
   
    /* Mobile TOC Toggle Button */
    .mobile-toc-toggle {
        display: flex;
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    /* Table of Contents Mobile Flyout Styles */
    .table-of-contents {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        max-width: none;
        max-height: none;
        padding: 80px 1.5rem 1.5rem 1.5rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
        border-radius: 0;
        border: none;
        border-left: 1px solid rgba(38, 99, 38, 0.2);
        transition: right 0.4s ease;
        overflow-y: auto;
        z-index: 1000;
    }
    
    .table-of-contents.active {
        right: 0;
    }
    
    .table-of-contents h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        text-align: left;
        border-bottom: 2px solid #42a2d3;
        padding-bottom: 0.5rem;
    }
    
    .table-of-contents li {
        margin-bottom: 0.5rem;
    }
    
    .table-of-contents a {
        padding: 0.8rem 1rem;
        font-size: 1rem;
        border-radius: 8px;
        display: block;
        transition: all 0.3s ease;
    }
    
    .table-of-contents a:hover {
        background: linear-gradient(135deg, #42a2d3, #214a5f);
        color: white;
        transform: translateX(5px);
    }
    
    /* Show mobile-only elements in mobile view */
    .mobile-only,
    .mobile-separator {
        display: block;
    }
    
    /* Style the separator line */
    .mobile-separator {
        height: 1px;
        background: linear-gradient(90deg, transparent, #42a2d3, transparent);
        margin: 1rem 0;
        border: none;
    }
    
    /* Style mobile-only links differently */
    .mobile-only a {
        font-size: 0.95rem;
        color: #555;
        font-style: italic;
    }
    
    .mobile-only a:hover {
        background: linear-gradient(135deg, #e3f9eb, #bfefcf);
        color: #266326;
        transform: translateX(3px);
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    header {
        padding: 1rem 0;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .contact-form-section,
    .contact-info {
        padding: 2rem 1rem;
    }
    
    .form-container h3 {
        font-size: 1.5rem;
    }
    
    .legal-content {
        padding: 0 15px;
    }
    
    .collapsible-content h2 {
        padding: 1rem 1.5rem;
        font-size: 1.5rem;
    }
    
    .legal-body {
        padding: 1.5rem;
        max-height: none;
        overflow-y: visible;
    }
    
    /* Ensure all collapsible content shows fully on mobile */
    .collapsible .legal-body {
        max-height: none;
        overflow-y: visible;
    }
    
    /* Increase collapsible container height for mobile to accommodate long content */
    .collapsible.active {
        max-height: 5000px;
    }
    
    .footer-links {
        margin-top: 0.5rem;
    }
    
    .footer-links a {
        display: inline-block;
        margin: 0.25rem 0.5rem;
        font-size: 0.85rem;
    }
    
    /* Profile section mobile */
    .profile-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .profile-image {
        flex: none;
        max-width: 250px;
        margin: 0 auto;
        order: 1;
    }
    
    .profile-text {
        order: 2;
        text-align: left;
    }
    
    .profile .profile-content + p {
        text-align: left;
        margin-top: 2rem;
    }
    
    /* Services Cards Mobile Styles */
    .services-section {
        padding: 2rem 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .card-content h2 {
        font-size: 1.6rem;
    }
    
    .flyer-modal-content {
        padding: 1rem;
    }
    
    .flyer-modal-close {
        top: 1rem;
        right: 1rem;
        font-size: 2.5rem;
        width: 50px;
        height: 50px;
    }
    
    /* Mobile banner - full screen */
    .banner {
        height: 100vh;
        min-height: 100vh;
    }
    
    .banner-image {
        content: url('images/banner1_mobile.jpg');
        object-position: center;
    }
    
    .banner-content {
        text-align: center;
        color: white;
        z-index: 2;
        max-width: 800px;
        margin-top: 70px;
    }
    .banner-content h1 {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }
    
    .banner-content .subtitle {
        font-size: 1.2rem;
    }
    
    /* Hide subtitle on very small screens */
    @media (max-width: 320px) {
        .banner-content .subtitle {
            display: none;
        }
        
        .banner-content h1 {
            font-size: 2rem;
        }
        
        /* Mobile toggle for very small screens */
        .mobile-toc-toggle {
            width: 40px;
            height: 40px;
            top: 10px;
            right: 10px;
        }
        
        .mobile-toc-toggle span {
            width: 16px;
        }
        
        /* Flyout menu for very small screens */
        .table-of-contents {
            width: 250px;
            right: -250px;
            padding: 70px 1rem 1rem 1rem;
        }
        
        .table-of-contents h3 {
            font-size: 1rem;
        }
        
        .table-of-contents a {
            padding: 0.6rem 0.8rem;
            font-size: 0.9rem;
        }
        
        /* Ensure collapsible content shows fully on very small screens */
        .legal-body,
        .collapsible .legal-body {
            max-height: none;
            overflow-y: visible;
        }
        
        /* Increase collapsible container height for very small screens */
        .collapsible.active {
            max-height: 5000px;
        }
        
        /* Mobile-only elements for very small screens */
        .mobile-only,
        .mobile-separator {
            display: block;
        }
        
        .mobile-separator {
            height: 1px;
            background: linear-gradient(90deg, transparent, #42a2d3, transparent);
            margin: 0.8rem 0;
        }
        
        .mobile-only a {
            font-size: 0.85rem;
            color: #555;
            font-style: italic;
        }
    }
}

/* Tablet responsive styles */
@media (max-width: 768px) and (min-width: 601px) {
    .banner {
        height: 50vh;
        min-height: 300px;
    }
    
    .banner-content h1 {
        font-size: 2.5rem;
    }
    
    .banner-content .subtitle {
        font-size: 1.2rem;
    }
}

