 /* --- Core & Font Styling --- */
 :root {
    --primary: #20761a;
    --secondary: #a85400;
    --background: #008940; /* A neutral gray background */
    --text-main: #2c3e50;
}

header h1 {
    font-size: 100% !important;
}

body {
    font-family: 'lucida sans', sans-serif !important;
    background-color: var(--background);
    color: var(--text-main);
}

html {
    box-shadow: inset 0 0 2500px 0 rgba(0, 0, 0, 0.2);
}

h1, h2, h3, h4, .font-serif {
    font-family: 'lucida sans', sans-serif !important;
}
nav {
    box-shadow: inset 0 0 1px 1px rgba(0, 0, 0, 0.3);
    padding: 10px 10px !important;
    border-radius: 15px !important;
}
nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 900 !important;
    font-size: 18px;
    padding: 10px 5px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
    &:hover {
        background-color: var(--primary);
        color: #ffffff !important;
    }
}

/* --- Submenu & Icon Styling --- */
nav ul { list-style: none; padding: 0; margin: 0; padding-left: 20px; }

nav > ul {
    padding-left: 0px !important;
}
nav li { position: relative; margin-left: 0px !important; }
nav .submenu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 250px;
    z-index: 100;
    padding: 0.5rem 0;
    border: 1px solid #eee;
}
nav li:hover > .submenu { display: block; left: 90%; top: -1px; }
nav .submenu .submenu { left: 90%; top: -1px; }
nav .submenu a { display: block; padding: 0.5rem 1rem; width: 90%; font-size: 16px; }

.menu-item-link { display: flex; align-items: center; gap: 0.5rem; }
.submenu-toggle { cursor: pointer; }

/* Mobile submenu specific styles */
#mobile-menu-nav .submenu {
    position: static;
    background-color: transparent;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}
#mobile-menu-nav .submenu-open > .submenu { max-height: 1000px; /* Large enough for content */ }
#mobile-menu-nav li { width: 100%; text-align: center; }

/* --- Clearfix Utility --- */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}
/* --- Unified Page Container --- */
.page-container {
    width: 100%;
    max-width: 37cm;
    margin: 1rem auto;
    padding: 4rem;
    background-color: #ffffff;
    box-shadow: 0 2px 3px rgba(0,0,0,0.8);
    border-radius: 25px;
 
}

/* --- Mobile Menu Animation --- */
#mobile-menu {
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
}
#mobile-menu.menu-open {
    max-height: 500px; /* Adjust if your menu is taller */
    opacity: 1;
    transform: translateY(0);
}




@media (min-width: 1024px) {
    .sticky {
        position: static !important;
    }

    html {
        padding-left: 15px;
        padding-right: 15px;
    }
    
   
}
/* --- Mobile & Tablet Responsive Adjustments --- */
@media (max-width: 1024px) {

    .sticky {
        position: static !important;
    }

    .page-container {
        width: auto;
        margin: 1rem;
        padding: 1.5rem;
    }

    .desktop-only {
        display: none !important;
    }

    header {
        width: 100% !important;
        padding: 0 !important;
      
    }
    header h1 {
        font-size: 20px !important;
    }

    header p {
        font-size: 15px !important;
    }
    
    header {
        padding-left: 20px !important;
    }

    
}


.qr-code {
    border-radius: 0px !important;
    opacity: 0 !important;
    margin-top: -160px !important;
    margin-left: -10px !important;
    position: absolute;
    zoom: 0.33;
    z-index: 1000;
    border: 15px solid #ffffff;
    border-radius: 0px;
}

.print-only {
    display: none !important;
}
/* --- Base Print Styles --- */
@media print {
    .print-only {
        display: block !important;
    }

    .desktop-only {
        display: block !important;
    }

    .screen-only {
        display: none !important;
    }

    header h1 {
        font-size: 180% !important;
    }

    .sticky {
        position: static !important;
    }
    @page {
        padding: 0pt !important;
        margin: 7mm !important;
        background-color: var(--background) !important;
        border: 5mm solid #ffffff !important;
        border-radius: 20px !important;
    }
    html {
        box-shadow: none !important;
    }
    body .qr-code {
        border-radius: 0px !important;
        opacity: 1 !important;
    }
    body.mobile-pdf .qr-code {
        opacity: 0 !important;
    }
    body {
        background-color: #ffffff !important;
    }
    html, body {
        font-size: 7pt !important;
        line-height: 1.15 !important;
    }
    body.mobile-pdf {
        font-size: 15.5pt !important;
        line-height: 1 !important;
    }
    main {
        padding: 0pt !important;
        margin: 0pt !important;
    }

    body.mobile-pdf section > * {
        padding: 0pt !important;
    }

    body.mobile-pdf .disclaimer-text {
        font-size: 20pt !important;
    }


    body .portrait-image {
        zoom: 1.4 !important;
    }
    body.mobile-pdf .portrait-image {
        margin-top: 20pt !important;
        zoom: 1.75!important;
    }
    .print-header {
        margin-bottom: 0pt !important;
    }
    body {
         -webkit-print-color-adjust: exact !important;
         print-color-adjust: exact !important;
    }
    .page-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        /* border-radius: 20px; */
        box-shadow: none !important;
        background-color: transparent !important;
    }
    .no-print {
        display: none !important;
    }
    section, article, header {
        break-inside: avoid-page;
        page-break-inside: avoid;
        padding: 0pt !important;
        padding-left: 0pt !important;
        padding-right: 0pt !important;
    }
    section, header {
        margin-left: 5pt !important;
        margin-right: 5pt !important;
        padding-top: 0pt !important;
        padding-bottom: 0pt !important;
    }
    section h2, header, section h1 {
        padding-top: 0pt !important;
        padding-bottom: 0pt !important;
        margin-left: 5pt !important;
    }

    
    .print-header {
        break-after: avoid;
        page-break-after: avoid;
    }
    @media (min-width: 18cm) {
        section {
            font-size: 125% !important;
        }
        
    }
    @media (max-width: 30cm) {
        section {
            font-size: 150% !important;
        }
       
    }
    section * {
        transform: scale(0.975);
    }
    .mobile-pdf h2 {
        font-size: 80% !important;
    }
    h2 {
        font-size: 120% !important;
    }
    h1 {
        font-size: 220% !important;
    }
    header {
        padding-left: 20pt !important;
       
    }

    header a,  header a p  {
        font-size: 13.25pt !important;
    }

    .logo-icon {
        font-size: 19pt !important;
    }

   body.mobile-pdf p {
     text-align: left !important;
   }
    
    /* body.mobile-pdf .social-media-links {
        display: block !important;
    } */

   

    .disclaimer-section {
        padding-left: 20pt !important;
        padding-right: 20pt !important;
    }

    .social-media-links {
        display: none !important;
    }

    body.mobile-pdf .social-media-links {
        display: block !important;
    }

    * {
        line-height: 1.4 !important;
    }

    section > * {
        padding-top: 2.5pt !important;
        padding-bottom: 2.5pt !important;
        
    }
    

    
}



  /* CSS for the Share Modal */
  .modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 10px auto;
    padding: 25px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    animation: slideIn 0.3s ease-out;
}



.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.2s;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.share-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: transform 0.2s, background-color 0.2s;
}

.share-link:hover {
    transform: translateY(-5px);
    background-color: #f0f0f0;
}

.share-link svg {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-50px); opacity: 0; }
}

/* make the #menu-btn glow */

#menu-btn {

    border-color: rgb(0, 87, 3) !important;
    border-width: 1px !important;
    box-shadow: inset 0 0 3px 0 rgb(115, 195, 78);
    
}

@media print {
    .print\:grid-cols-4 {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .print\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

    .print\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    /* ... other print styles will be here ... */
  }


  /* ======================== */

 /* app-ui.css */
/* This is the updated file with fixes for desktop and mobile scrolling. */


 /* ======================== */
 /* APP UI STYLES */
 /* ======================== */

/* --- GENERAL APP MODE ACTIVATION --- */
html.app body {
    background-color: rgb(6, 47, 20);
    margin: 0;
    padding: 0;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    width: 100vw;
    overflow: hidden;
    font-family: 'lucida sans', sans-serif;
 }
 
 html.app body, html.app html {
    box-shadow: none !important;
 }
 
 /* Hide original website header/nav */
 html.app body .sticky.top-0 {
    display: none !important;
 }
 
 /* --- APP LAYOUT WRAPPER --- */
 html.app body > div:not(#shareModal):not(#app-footer-menu) {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
 }
 
 /* Reset page-container styles */
 html.app body .page-container {
    margin: 0;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 100%;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    background-color: #ffffff;
    box-sizing: border-box;
 }
 
 /* --- FOOTER/SIDEBAR MENU (Frosted Glass Effect) --- */
.app-footer-menu {
    z-index: 1000;
    
    /* 1. Make the background semi-transparent to see the blur effect */
    background: linear-gradient(135deg, rgba(46, 158, 23, 0.65) 0%, rgba(22, 113, 14, 0.65) 100%);
    
    /* 2. Blur the content behind the element */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* 3. Add a subtle border to catch the light, like a glass edge */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    
    /* 4. A soft shadow to lift the element off the page */
    
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2), inset 0 0 80px 0 rgba(0, 0, 0, 0.6) !important;
 }
 
 /* --- The rest of your styles for the links are great and don't need to be changed --- */
 
 .app-footer-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    position: relative;
 }
  
 .app-footer-menu a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: all 0.3s ease;
 }
  
 .app-footer-menu a:hover::before {
    background: rgba(255, 255, 255, 0.1);
 }
  
 .app-footer-menu a:hover {
    color: #ffffff;
    transform: translateY(-2px);
 }
  
 .app-footer-menu a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
 }
  
 .app-footer-menu a.active::before {
    background: rgba(255, 255, 255, 0.05);
 }
  
 .app-footer-menu a svg {
    margin-bottom: 4px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
 }
  
 .app-footer-menu a:hover svg,
 .app-footer-menu a.active svg {
    transform: scale(1.1);
 }
  
 .app-footer-menu a span {
    font-weight: 500;
    letter-spacing: 0.3px;
 }

 
 /* --- MOBILE PORTRAIT ( < 768px and portrait ) --- */
@media (max-width: 999.5px) and (orientation: portrait) {

    html.app body .page-container {
        margin: 0;
        width: 100%;
        max-width: none;
        height: auto;
        min-height: calc(100% - 75px);
        box-shadow: none;
        border-radius: 0;
        overflow: visible;
        background-color: #ffffff;
        box-sizing: border-box;
     }

    html.app body .page-container {
        padding: 1rem 1rem 100px 1rem;
    }
 
    .app-footer-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 76px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0 8px; /* Add horizontal padding */
        justify-content: space-between;
    }
 
    .app-footer-menu a {
        flex: 1;
        font-size: 10px;
        gap: 3px;
        text-align: center;
        padding: 12px 8px; /* Adjust vertical padding */
        margin: 0 2px;
        min-height: 80px;
        /* border-radius: 8px;  */
    }
 
    .app-footer-menu a svg {
        width: 26px;
        height: 26px;
    }
 
    .app-footer-menu a span {
        font-size: 10px;
    }

    .nav-buttons {
       display: none;
     
    }


 }
 
 /* --- MOBILE LANDSCAPE ( < 768px and landscape ) --- */
 @media (max-width: 999.5px) and (orientation: landscape) {
    html.app body {
        height: 100vh;
        height: 100dvh;
    }
 
    html.app body .page-container {
        padding: 0.5rem 1rem 0.5rem 80px; /* Add left padding for sidebar */
    }
 
    .app-footer-menu {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 70px;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Changed from flex-start to center */
        align-items: center;
        /* padding: 0.5rem 0; */
        /* gap: 4px; */
        border-right: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.08);
        border-top: none;
        justify-content: space-between;
        
    }
 
    .app-footer-menu a {
        width: 80px;
        font-size: 9px;
        text-align: center;
        padding: 8px 8px;
        min-height: auto;
        /* gap: 2px; */
        border-radius: 8px; /* Add border radius */
    }
 
    .app-footer-menu a svg {
        width: 16px;
        height: 16px;
    }
 
    .app-footer-menu a span {
        font-size: 9px;
    }

    .nav-buttons {
        width: calc(100% - 70px);
        margin-left: 70px;
     
    }

    .app-footer-menu a.active {
        width: 73px !important;
    }
 

 }
/*  
 /* --- DESKTOP STYLES ( >= 768px ) --- */
 @media (min-width: 1000px) {
    html.app body {
        display: flex;
    }
 
    html.app body > div:not(#shareModal):not(#app-footer-menu) {
        flex-grow: 1;
    }
 
    html.app body .page-container {
        padding: 2rem 3rem;
    }
 
    .app-footer-menu {
        order: -1;
        position: static;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        width: 80px;
        height: 100vh;
        height: 100dvh;
        border-right: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.08);
        padding: 1rem 0;
        gap: 8px;
        border-top: none;
        border-radius: 0;
    }
 
    .app-footer-menu a {
        font-size: 11px;
        text-align: center;
        padding: 12px 8px;
        width: 80px;
        height: 40px;
        min-height: 72px;
        gap: 6px;
    }

  
    .app-footer-menu a svg {
        width: 28px;
        height: 28px;
    }
 
    .app-footer-menu a span {
        font-size: 11px;
    }
 }
  
 html.app {
    padding-left: 0px !important;
    padding-right: 0px !important;
 }

 /* ?gradient bg styles */
 .gradient-bg {
    background: linear-gradient(-45deg, #044c07, #3d2906, #084219, #224106);
    background-size: 400% 400%;
    animation: gradient-animation 30s ease infinite;
    color: white;
    width: 100%; /* Ensure it fills the container's width */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: colors 0.5s;
    padding: 2rem 1rem; /* Added more vertical padding */
    min-height: 500px; /* A sensible default minimum height for larger screens */
}

.gradient-bg main {

    color: white;
    width: 100%; /* Ensure it fills the container's width */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: colors 0.5s;
    padding: 2rem 1rem; /* Added more vertical padding */
    min-height: 500px; /* A sensible default minimum height for larger screens */
}