@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700&display=swap');

:root {
    --surface: #ffffff;
    --surface-muted: #f6f7fb;
    --text: #1f2937;
    --text-muted: #4b5563;
    --accent: #7b2d8e;
    --accent-dark: #5b1f69;
    --border: #e5e7eb;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    /* Font Variables */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 16px;
    /* Increased base size for better readability */
    line-height: 1.6;
    color: var(--text);
    background: #FFFFFF;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-header {
    font-family: var(--font-heading);
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
}

a.a1 {
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    color: #7b2d8e;
    text-decoration: none;
    transition: color 0.2s ease;
}

a.a1:hover {
    color: #333;
    text-decoration: underline;
}

a.a2 {
    font-family: inherit;
    font-weight: 600;
    font-size: 12px;
    color: #7b2d8e;
    text-decoration: none;
    transition: color 0.2s ease;
}

a.a2:hover {
    color: #333;
    text-decoration: none;
}

a.a3 {
    font-family: inherit;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

a.a3:hover {
    color: #7b2d8e;
    text-decoration: underline;
}

a.a4 {
    font-family: inherit;
    font-size: 14px;
    color: #333;
    text-decoration: underline;
    transition: color 0.2s ease;
}

a.a4:hover {
    color: #7b2d8e;
    text-decoration: underline;
}

ul {
    margin: 0px 0px 15px 0px;
    padding: 0;
    list-style: none;
}

li {
    margin: 8px 0;
    padding: 0px 0px 0px 20px;
    background: url("images/punkt.png") no-repeat 0px 6px;
}

#main {
    margin: 0 auto;
    padding: 0;
    width: 100%;
    max-width: 982px;
    text-align: left;
    background: #FFFFFF;
    box-sizing: border-box;
}

/* Deleted #home absolute button */

/* Modern Header */
.site-header {
    background: #fff;
    width: 100%;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 982px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

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

.site-logo {
    max-height: 50px;
    /* Adjustable */
    width: auto;
    display: block;
}

/* Navigation - Flexbox */
#main-nav {
    width: auto;
    min-height: auto;
    background: transparent;
    display: block;
    margin: 0;
}

#main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
}

#main-nav li {
    margin: 0;
    padding: 0;
    background: none;
}

#main-nav a {
    display: block;
    padding: 10px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 6px;
}

#main-nav a:hover {
    background: var(--surface-muted);
    color: var(--accent);
    transform: translateY(-1px);
}

#main-nav a.active {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}




#center {
    display: block;
    margin: 0 auto;
    padding: 0px;
    width: 100%;
    max-width: 980px;
    background: #F8F8F8;
    overflow: visible;
}

#tlo {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

#tlo_glowna {
    display: block;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
}

/* Modern Content Grid */
.content-container {
    padding: 40px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-template-areas: "content image";
    gap: 40px;
    align-items: start;
}

.hero-image {
    grid-area: image;
}

.hero-content {
    grid-area: content;
}

.hero-content h1 {
    font-size: 28px;
    color: var(--accent-dark);
    margin-top: 0;
    margin-bottom: 20px;
}

.hero-content h2 {
    font-size: 22px;
    color: var(--accent);
    margin-top: 30px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--surface-muted);
    padding-bottom: 10px;
    display: inline-block;
}

.hero-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--text);
}

.hero-content p {
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.img-responsive {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.img-responsive:hover {
    transform: scale(1.02);
}

/* Styled List */
.styled-list {
    margin: 0 0 20px 0;
    padding: 0;
    list-style: none;
}

.styled-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.styled-list li::before {
    content: "•";
    /* Fallback */
    content: url("images/punkt.png");
    /* Or SVG */
    position: absolute;
    left: 0;
    top: 2px;
}

@media (max-width: 900px) {
    .content-container {
        padding: 24px 16px;
        border-radius: 10px;
    }

    #tlo {
        padding: 16px;
    }

    .page-header {
        margin: 0 0 16px 0;
        padding: 12px 16px;
        font-size: 18px;
        max-width: 100%;
    }

    .hero-section {
        grid-template-columns: 1fr;
        grid-template-areas: "image" "content";
        gap: 20px;
    }

    .hero-image {
        max-width: 320px;
        margin: 0 auto;
    }

    .tabela,
    .tabela1 {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 16px 0;
    }

    .tabela td {
        width: auto !important;
        word-break: break-word;
    }

    table {
        width: 100% !important;
        max-width: 100% !important;
    }

    .p1[style*="position: absolute"] {
        position: static !important;
        margin: 0 0 16px 0 !important;
    }

    div[style*="position: absolute"] {
        position: static !important;
        left: auto !important;
        top: auto !important;
        margin: 0 0 16px 0 !important;
    }

    table[style*="position: absolute"] {
        position: static !important;
        left: auto !important;
        top: auto !important;
    }

    [id^="zd"],
    #pietrzyk,
    #film,
    #bolizab,
    #dlaczego,
    #punkt {
        display: none !important;
    }
}

#tab_dol {
    display: none;
}

.p1 {
    font-family: inherit;
    position: relative;
    margin: 0;
    width: 100%;
    font-size: 14px;
    text-align: left;
    color: #333;
    line-height: 1.8;
    word-wrap: break-word;
    /* min-height handled by parent now */
}

/* Deleted #dlaczego - replaced with h2 */

.tabela {
    font-family: inherit;
    position: absolute;
    font-size: 14px;
    color: #333;
    top: 60px;
    left: 30px;
    text-align: left;
    line-height: 1.7;
}

.tabela1 {
    font-family: inherit;
    position: absolute;
    font-size: 14px;
    color: #333;
    top: 250px;
    left: 240px;
    line-height: 1.7;
}

/* Modern Text-Based Page Headers */
.page-header {
    background: linear-gradient(135deg, #8b3a9f 0%, #6a2d7a 100%);
    color: #ffffff;
    padding: 15px 30px;
    margin: 5px 0 20px 18px;
    border-radius: 6px;
    font-size: 20px;
    font-weight: 700;
    text-align: left;
    box-shadow: 0 2px 8px rgba(123, 45, 142, 0.2);
    letter-spacing: 0.5px;
    position: relative;
    max-width: 850px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Obsolete image-based banner styles - replaced with .page-header */
/*
/* Obsolete image-based banner styles - Removed during cleanup */



/* Deleted #film & #pietrzyk - moved to HTML imgs */

/* Legacy absolute positioned images removed during cleanup */

#punkt {
    position: absolute;
    top: 56px;
    left: 0px;
    width: 6px;
    height: 6px;
    background-image: url("images/punkt.png");
}

#zd_gdyboli2 {
    position: relative;
    top: 0px;
    left: 0px;
    width: 202px;
    height: 167px;
    background-image: url("images/zd3.png");
}

#zd_gdyboli3 {
    position: relative;
    top: 0px;
    left: 0px;
    width: 202px;
    height: 167px;
    background-image: url("images/zd4.png");
}

#lokalizacja {
    position: absolute;
    top: 140px;
    left: 110px;
    width: 312px;
    height: 234px;
    border: none;
}

#mapa {
    /* Responsive Map Fix */
    position: relative;
    /* Take space in flow */
    float: right;
    top: auto;
    left: auto;
    margin: 20px 0 20px 20px;
    border: none;
    max-width: 100%;
    /* Prevent overflow on mobile */
}

/* Global Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

#footer {
    clear: both;
    width: 100vw;
    /* max-width: 952px; */
    height: auto;
    min-height: 82px;
    margin: 0 calc(50% - 50vw);
    text-align: left;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    padding-top: 20px;
    font-family: var(--font-body);
}

#bolizab {
    position: relative;
    top: 1px;
    left: 50px;
    background-image: url("images/gdy_boli.png");
    background-repeat: no-repeat;
    width: 66px;
    height: 51px;
    border: none;
}

#bolizab:hover {
    background-image: url("images/gdy_boli1.png");
    background-repeat: no-repeat;
    width: 66px;
    height: 51px;
}

#usmiech {
    position: relative;
    top: -50px;
    left: 133px;
    background-image: url("images/usmiech.png");
    background-repeat: no-repeat;
    width: 94px;
    height: 51px;
    border: none;
}

#usmiech:hover {
    background-image: url("images/usmiech1.png");
    background-repeat: no-repeat;
    width: 94px;
    height: 51px;
}

#pacjenci {
    position: relative;
    top: -101px;
    left: 244px;
    background-image: url("images/pacjenci.png");
    background-repeat: no-repeat;
    width: 86px;
    height: 51px;
    border: none;
}

#pacjenci:hover {
    background-image: url("images/pacjenci1.png");
    background-repeat: no-repeat;
    width: 86px;
    height: 51px;
}


#nowosci {
    position: relative;
    top: -152px;
    left: 347px;
    background-image: url("images/nowosci.png");
    background-repeat: no-repeat;
    width: 95px;
    height: 51px;
    border: none;
}

#nowosci:hover {
    background-image: url("images/nowosci1.png");
    background-repeat: no-repeat;
    width: 95px;
    height: 51px;
}


#testy {
    position: relative;
    top: -203px;
    left: 459px;
    background-image: url("images/testy.png");
    background-repeat: no-repeat;
    width: 47px;
    height: 51px;
    border: none;
}

#testy:hover {
    background-image: url("images/testy1.png");
    background-repeat: no-repeat;
    width: 47px;
    height: 51px;
}


#pytania {
    position: relative;
    top: -254px;
    left: 523px;
    background-image: url("images/pytania.png");
    background-repeat: no-repeat;
    width: 119px;
    height: 51px;
    border: none;
}

#pytania:hover {
    background-image: url("images/pytania1.png");
    background-repeat: no-repeat;
    width: 119px;
    height: 51px;
}

#trivia {
    position: relative;
    top: -305px;
    left: 659px;
    background-image: url("images/trivia.png");
    background-repeat: no-repeat;
    width: 49px;
    height: 51px;
    border: none;
}

#trivia:hover {
    background-image: url("images/trivia1.png");
    background-repeat: no-repeat;
    width: 49px;
    height: 51px;
}

#warto {
    position: relative;
    top: -356px;
    left: 725px;
    background-image: url("images/warto.png");
    background-repeat: no-repeat;
    width: 69px;
    height: 51px;
    border: none;
}

#warto:hover {
    background-image: url("images/warto1.png");
    background-repeat: no-repeat;
    width: 69px;
    height: 51px;
}

#news {
    position: relative;
    top: -407px;
    left: 811px;
    background-image: url("images/news.png");
    background-repeat: no-repeat;
    width: 92px;
    height: 51px;
    border: none;
}

#news:hover {
    background-image: url("images/news1.png");
    background-repeat: no-repeat;
    width: 92px;
    height: 51px;
}

#yuka {
    position: relative;
    top: 0px;
    left: 0px;
    width: 166px;
    height: 20px;
    border: none;
}

/*
playback timings (ms):
  captures_list: 0.504
  exclusion.robots: 0.022
  exclusion.robots.policy: 0.013
  esindex: 0.008
  cdx.remote: 80.547
  LoadShardBlock: 204.052 (3)
  PetaboxLoader3.resolve: 536.52 (5)
  PetaboxLoader3.datanode: 197.568 (5)
  load_resource: 582.549 (2)
*/

/* =========================================
   MODERN OVERRIDES - Added by SuperDentysta AI
   ========================================= */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* Global Reset & Typography */
html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

:root {
    --surface: #ffffff;
    --surface-muted: #f6f7fb;
    --text: #1f2937;
    --text-muted: #4b5563;
    --accent: #7b2d8e;
    --accent-dark: #5b1f69;
    --border: #e5e7eb;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

body {
    font-family: var(--font-body) !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: var(--text) !important;
    background: radial-gradient(circle at top, #ffffff 0%, #f4f6fb 55%, #eef1f7 100%) !important;
    /* Soft, modern backdrop */
    margin: 0;
    padding: clamp(12px, 2vw, 24px) 0;
    /* Add top/bottom spacing to the page */
}

/* Main Container - Card Style */
#main {
    background-color: var(--surface) !important;
    box-shadow: var(--shadow);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin: 0 auto !important;
}

#main-nav {
    background: linear-gradient(135deg, #8b3a9f 0%, #6a2d7a 100%);
    border-radius: 12px;
    margin: 12px auto 0;
    box-shadow: 0 10px 20px rgba(123, 45, 142, 0.18);
}

#main-nav ul {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 6px 10px;
    gap: 10px;
}

#main-nav li {
    background: none;
    /* Remove global legacy bullet points */
    padding: 0;
    margin: 0;
}

#main-nav a {
    padding: 12px 18px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

#center {
    background: var(--surface-muted);
    padding: clamp(10px, 2vw, 24px);
    border-top: 1px solid var(--border);
}

#tlo {
    padding: clamp(16px, 3vw, 28px);
}

#tlo_glowna {
    background: var(--surface) !important;
    border: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    padding: clamp(18px, 3vw, 32px);
}

/* Links */
a {
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* Header Buttons - Hover Effects */
/* We target the IDs used for navigation buttons */
#kontakt,
#galeria,
#cennik,
#ogabinecie,
#ekonsultacje,
#glowna,
#english {
    transition: transform 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

#kontakt:hover,
#galeria:hover,
#cennik:hover,
#ogabinecie:hover,
#ekonsultacje:hover,
#glowna:hover,
#english:hover {
    transform: translateY(-2px);
    /* Slight lift */
    filter: brightness(1.1);
    /* Slight highlight */
}

/* Content Area Improvements */
.p1 {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: var(--text) !important;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--accent-dark) !important;
    margin-bottom: 1em;
}

@media (max-width: 1024px) {

    #pietrzyk,
    #zd1,
    #zd_ogabinecie1,
    #zd_ogabinecie2,
    #zd_gdyboli {
        display: none !important;
    }
}

/* Flexible Content Height - CRITICAL for larger text */
/* Verify if resizing these breaks the layout. 
   Original was fixed height. We try min-height instead. */
#tlo_glowna {
    height: auto !important;
    min-height: 355px;
    background: none !important;
    /* Remove old background image if it restricts flow */
    background-color: #fff !important;
    padding-bottom: 40px;
    /* Space at bottom */
}

#tlo {
    height: auto !important;
    min-height: 410px;
    background: none !important;
    background-color: #fff !important;
}

/* Footer / Bottom Area */
/* Add some spacing */
#n4 {
    margin-top: 0px;
}

/* Sidebar Images */
/* Removed empty #n3 */

/* Sidebar Menu Items (if any) */
/* Enhance whatever lists exist */
ul li {
    padding-left: 20px !important;
    margin-bottom: 8px !important;
}

/* Flash Replacement Image */
#flash img {
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

#flash img:hover {
    transform: scale(1.01);
}

/* =========================================
   Modern Footer Styles (4-Column Grid)
   ========================================= */
.modern-footer {
    width: 100%;
    /* Override legacy #footer fixed width/bg if needed, 
       though we might replace the ID with a class to avoid conflicts. 
       For now, we assume the ID stays or we work within it. */
    background: linear-gradient(180deg, #fbf7f2 0%, #f3ede6 100%);
    background-image: none !important;
    color: var(--text);
    padding: 60px 0 40px;
    margin-top: 50px;
    border-top: 1px solid var(--border);
    font-family: var(--font-body);
    box-sizing: border-box;
    /* Reset legacy footer styles if this class is applied */
    height: auto !important;
    min-height: auto !important;
    max-width: 100% !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-radius: 0 !important;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px;
    padding: 0 20px;
    text-align: left !important;
}

.footer-col h3 {
    color: var(--accent-dark);
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 14px;
    color: var(--text-muted);
}

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

.footer-col ul li {
    margin-bottom: 10px;
    padding-left: 0;
    background: none;
}

.footer-col ul li a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col a {
    color: var(--text);
    text-decoration: none;
}

.footer-col ul li a:hover,
.footer-col a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
    display: block;
}

.copyright {
    font-size: 12px;
    color: #8b95a7;
    margin-top: 20px;
}

.footer-desktop {
    display: block;
}

.footer-mobile {
    display: none;
}

.footer-mobile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
    margin: 20px auto 0;
    padding: 24px;
    text-align: center;
    max-width: 520px;
}

.footer-mobile p {
    color: var(--text-muted);
    margin: 12px 0;
    line-height: 1.6;
}

.btn-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 10px 0;
    padding: 12px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #8b3a9f 0%, #6a2d7a 100%);
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(123, 45, 142, 0.2);
}

.btn-mobile:hover {
    transform: translateY(-1px);
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 grid on tablets */
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        text-align: center;
    }

    .footer-col h3 {
        margin-top: 20px;
    }

    .footer-logo {
        margin: 0 auto 15px;
    }
}

/* =========================================
   MOBILE LAYOUT FIXES (Strict Reset)
   ========================================= */

/* =========================================
    MOBILE LAYOUT FIXES & NAVIGATION
    ========================================= */
#yuka,
#tab_gora,
#tab_dol,
.legacy-tab {
    display: none !important;
}

/* Hamburger Button (Hidden on Desktop) */
.hamburger-btn {
    display: none;
}

/* Mobile Media Query */
@media (max-width: 768px) {

    /* Show Hamburger */
    .hamburger-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1001;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }

    .hamburger-btn span {
        display: block;
        width: 30px;
        height: 3px;
        background-color: #6a0dad;
        margin: 6px 0;
        transition: 0.4s;
        border-radius: 2px;
    }

    /* Nav Container Styles */
    #main-nav {
        position: relative;
    }

    #main-nav ul {
        display: none;
        /* Hidden by default on mobile */
        flex-direction: column;
        width: 100%;
        background: #fff;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        position: absolute;
        top: 60px;
        /* Below Hamburger */
        left: 0;
        z-index: 1000;
    }

    /* Nav Open State */
    #main-nav.nav-open ul {
        display: flex !important;
    }

    /* Animate Hamburger Transform */
    #main-nav.nav-open .hamburger-btn span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    #main-nav.nav-open .hamburger-btn span:nth-child(2) {
        opacity: 0;
    }

    #main-nav.nav-open .hamburger-btn span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Mobile Link Styling */
    #main-nav li {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    #main-nav a {
        display: block;
        padding: 15px;
        font-size: 18px;
        border-bottom: 1px solid #eee;
    }

    /* Cleanups */
    #tlo,
    #tlo_glowna,
    .footer-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .footer-desktop {
        display: none;
    }

    .footer-mobile {
        display: block;
    }

    #tlo {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    #tlo_glowna {
        padding: 20px !important;
    }

    #n3,
    #n4,
    #linia,
    #pietrzyk,
    #dlaczego,
    .tabela,
    .tabela1 {
        display: none !important;
    }

    #header {
        height: auto !important;
        padding-bottom: 10px;
        position: relative;
        /* For Hamburger positioning */
    }

    #flash {
        display: none !important;
    }

    #n1 {
        position: relative !important;
        margin: 0 auto 10px auto !important;
        display: block;
        max-width: 200px;
        /* Smaller logo on mobile */
    }
}

/* Hero Section Mobile Stack */
@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
        grid-template-areas:
            "content"
            "image";
    }

    .hero-image {
        margin-bottom: 30px;
        text-align: center;
    }

    .hero-image img {
        max-width: 80%;
    }
}

/* -------------------------------------------------- */
/* PRICING TABLE STYLES (Modern & Responsive) */
/* -------------------------------------------------- */
.pricing-container {
    padding: 20px;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
    overflow-x: auto;
    /* Allow horizontal scrolling on very small screens if needed */
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    min-width: 300px;
    /* Ensure it doesn't get too squashed */
}

.pricing-table th,
.pricing-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.pricing-table th {
    background-color: var(--surface-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 14px;
}

.pricing-table td {
    font-size: 16px;
    color: var(--text);
}

/* Zebra striping for readability */
.pricing-table tr:nth-child(even) {
    background-color: rgba(246, 247, 251, 0.5);
}

.pricing-table tr:hover {
    background-color: rgba(123, 45, 142, 0.05);
    /* Very subtle purple tint on hover */
    transition: background-color 0.2s ease;
}

/* Price column specific styling */
.pricing-table td:last-child {
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    /* Prevent prices from breaking */
    width: 30%;
    /* Give price column a reasonable width */
}

.pricing-note {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    text-align: right;
    margin-top: 10px;
}

/* Mobile Adjustments for Table */
@media (max-width: 600px) {

    .pricing-table th,
    .pricing-table td {
        padding: 12px 10px;
        font-size: 14px;
    }

    .pricing-table td:last-child {
        font-size: 15px;
    }
}