.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem; /* space between text and separator if any */
  background: #f0fdf4;  /* soft green background */
  border: 1px solid #bbf7d0; /* subtle green border */
  color: #166534; /* deep green text */
  font-size: 1.0rem; /* 14px */
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px; /* fully rounded */
  line-height: 2.0;
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
}

.pill:hover {
  background: #dcfce7; /* brighter on hover */
  border-color: #86efac;
  cursor: default;
}


/* ========== ADD THIS ENTIRE BLOCK TO YOUR <style> SECTION ========== */

/* --- STYLES FOR THE NEW DETAILED GUIDE CONTENT --- */

/* Main wrapper for the guide */
.site-wrap {
    font-family: 'Inter', sans-serif;
    color: #374151; /* text-gray-700 */
}

/* Basic Card Styles */
.card {
    background-color: #f9fafb; /* bg-gray-50 */
    border: 1px solid #e5e7eb; /* border-gray-200 */
    border-radius: 0.5rem; /* rounded-lg */
    padding: 1.5rem; /* p-6 */
    margin-bottom: 1.5rem;
}
.site-wrap h2 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    color: #1f2937; /* text-gray-800 */
    margin-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

/* Table of Contents */
.toc {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.toc ul {
    list-style-type: none;
    padding-left: 0;
    columns: 2; /* Create two columns on wider screens */
}
.toc li {
    margin-bottom: 0.5rem;
}
.toc a {
    text-decoration: none;
    color: #166534; /* green-800 */
    transition: color 0.2s;
}
.toc a:hover {
    color: #15803d; /* green-700 */
    text-decoration: underline;
}
@media (max-width: 768px) {
    .toc ul { columns: 1; } /* Single column on mobile */
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
th, td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}
thead {
    background-color: #f3f4f6; /* gray-100 */
}
tbody tr:last-child td {
    border-bottom: none;
}

/* Special Text Styles */
.kbd {
    background-color: #e5e7eb; /* gray-200 */
    color: #1f2937; /* gray-800 */
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-weight: 600;
}
.note {
    background-color: #eff6ff; /* blue-50 */
    border-left: 4px solid #2563eb; /* blue-600 */
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0.25rem;
}

/* FAQ Accordion Styles */
.faq details {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}
.faq summary {
    font-weight: 600;
    cursor: pointer;
    color: #111827; /* gray-900 */
}
.faq details[open] summary {
    color: #166534; /* green-800 */
}
.faq details p, .faq details ul {
    margin-top: 0.75rem;
    padding-left: 1.25rem;
}

/* Button Styles */
.cta {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}
        /* Base Button Styles (Provided by User) */
        .btn {
            display: inline-block;
            background-color: #16a34a; /* green-600 */
            color: white;
            padding: 0.75rem 1.5rem;
            border-radius: 0.5rem;
            text-decoration: none;
            font-weight: 600;
            transition: background-color 0.2s, transform 0.2s;
            text-align: center; /* Ensures text is centered if button becomes full width */
            white-space: nowrap; /* Prevents text from wrapping */
        }
        .btn:hover {
            background-color: #15803d; /* green-700 */
            transform: translateY(-1px); /* Subtle lift effect */
        }
        .btn.btn--ghost {
            background-color: transparent;
            color: #16a34a;
            border: 2px solid #16a34a;
            padding: calc(0.75rem - 2px) calc(1.5rem - 2px); /* Adjust padding to account for border */
        }
        .btn.btn--ghost:hover {
            background-color: #f0fdf4; /* green-50 */
            transform: translateY(-1px);
        }

        /* --- New CSS for Responsiveness --- */

        .button-group {
            /* 1. Base (Desktop) Layout: Side-by-side using Flexbox */
            display: flex;
            justify-content: center; /* Center the buttons horizontally */
            gap: 1.5rem; /* Spacing between the buttons */
            margin: 3rem auto; /* Vertical spacing and center the group itself */
            max-width: 600px; /* Limit the max width so buttons don't stretch too far */
            padding: 0 1rem; /* Padding for the container on the edges of the screen */
        }

        /* 2. Mobile Layout: Stacked and Full Width */
        @media (max-width: 640px) {
            .button-group {
                /* Change layout to stack vertically */
                flex-direction: column;
                /* Remove left/right margins from the buttons (now done by the .btn styles below) */
                gap: 1rem; /* Adjust vertical gap */
            }

            /* Force all buttons inside the group to take up the full available width */
            .button-group .btn {
                width: 100%;
                display: block; /* Change from inline-block to block for full width */
            }
        }

/* Footer Style */
#footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #6b7280; /* gray-500 */
}

/* Remove default styles from the section holding the guide */
section.Abey {
    all: unset;
}

/* --- END OF NEW GUIDE STYLES --- */


/* ========== ADD THIS TO YOUR <style> BLOCK ========== */

/* --- STYLES FOR SCROLLABLE ARTICLE CONTENT --- */
#article-content {
    max-height: 450px; /* Set a maximum height for the text area */
    overflow-y: auto;  /* Add a vertical scrollbar only when needed */
    padding-right: 16px; /* Create space for the scrollbar */
}

/* Custom Scrollbar Styling for the article */
#article-content::-webkit-scrollbar {
    width: 8px;
}
#article-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
#article-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
#article-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
/* --- END OF SCROLLABLE ARTICLE STYLES --- */


        /* ========== ADD THIS TO YOUR <style> BLOCK ========== */

/* --- STYLES FOR "OTHER INFORMATION" SWIPEABLE CARDS --- */
#info-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    gap: 1rem; /* This creates the space between the cards */
}

/* Hide scrollbar */
#info-slider::-webkit-scrollbar {
    display: none;
}
#info-slider {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Style for individual info cards in the slider */
#info-slider > div {
    flex-shrink: 0;
    width: 90%; /* Each card takes up 90% of the container width on mobile */
    scroll-snap-align: center;
}

/* On large screens, switch back to a grid layout */
@media (min-width: 1024px) {
    #info-slider {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
    }
    #info-slider > div {
        width: auto; /* Let the grid manage the width */
    }
}
/* --- END OF "OTHER INFORMATION" STYLES --- */


        body {
            font-family: 'Inter', sans-serif;
        }
        .resource-card {
            transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        }
        .resource-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }
        #notification {
            transition: opacity 0.3s ease-in-out;
        }

        /* --- NEW STYLES FOR HORIZONTAL SWIPE --- */
        #featured-grid {
            display: flex;
            overflow-x: auto; /* Enable horizontal scrolling */
            scroll-snap-type: x mandatory; /* Snap items horizontally */
            scroll-behavior: smooth;
            padding-bottom: 1rem; /* Space for scrollbar if it shows, though we hide it */
        }
        /* Hide the scrollbar for a cleaner look */
        #featured-grid::-webkit-scrollbar {
            display: none;
        }
        #featured-grid {
            -ms-overflow-style: none;  /* IE and Edge */
            scrollbar-width: none;  /* Firefox */
        }
        /* Style for individual cards in the horizontal slider */
        #featured-grid > .resource-card {
            flex-shrink: 0; /* Prevents cards from shrinking */
            width: 85%; /* Each card takes up 85% of the container width */
            scroll-snap-align: center; /* Snap cards to the center of the view */
            margin-right: 1rem;
        }
        /* On larger screens, show more cards */
        @media (min-width: 768px) {
            #featured-grid > .resource-card {
                width: calc(50% - 0.5rem); /* Show 2 cards with a gap */
            }
        }
        @media (min-width: 1280px) {
            #featured-grid > .resource-card {
                width: calc(33.333% - 0.66rem); /* Show 3 cards with a gap */
            }
        }
        /* --- END OF HORIZONTAL SWIPE STYLES --- */
        

        /* --- NEW STYLES FOR VERTICAL SCROLL CONTAINER --- */
        #small-grid-container {
            max-height: 600px; /* Set a max height */
            overflow-y: auto;  /* Add a scrollbar only when content overflows */
            padding-right: 8px; /* Space for the scrollbar */
            border: 1px solid #e5e7eb; /* Optional: adds a subtle border */
            border-radius: 0.5rem;
            padding: 1rem;
            background-color: #ffffff;
        }
        /* Custom Scrollbar Styling */
        #small-grid-container::-webkit-scrollbar {
            width: 8px;
        }
        #small-grid-container::-webkit-scrollbar-track {
            background: #f1f5f9; /* gray-100 */
            border-radius: 10px;
        }
        #small-grid-container::-webkit-scrollbar-thumb {
            background: #cbd5e1; /* gray-300 */
            border-radius: 10px;
        }
        #small-grid-container::-webkit-scrollbar-thumb:hover {
            background: #94a3b8; /* gray-400 */
        }
        /* --- END OF VERTICAL SCROLL STYLES --- */



            /* Custom Styles */

        body {
            font-family: 'Inter', sans-serif;
            background-color: #f8fafc; /* light gray background */
        }
        .smooth-scroll {
            scroll-behavior: smooth;
        }
        /* Hide scrollbar for Chrome, Safari and Opera */
        .no-scrollbar::-webkit-scrollbar {
            display: none;
        }
        /* Hide scrollbar for IE, Edge and Firefox */
        .no-scrollbar {
            -ms-overflow-style: none;  /* IE and Edge */
            scrollbar-width: none;  /* Firefox */
        }



         /* --- Styles for the Popup --- */

        /* The semi-transparent background overlay */
        .popup-overlay {
            position: fixed; /* Stays in place even when scrolling */
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6); /* Black with 60% opacity */
            z-index: 1000; /* Ensures it's on top of other content */
            display: none; /* Hidden by default */
            justify-content: center;
            align-items: center;
        }

        /* The main popup box */
        .popup-box {
            background: #ffffff;
            padding: 25px 30px;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
            text-align: center;
            width: 90%;
            max-width: 400px; /* Limits width on larger screens */
            position: relative; /* Needed for positioning the close button */
            font-family: sans-serif;
        }

        .popup-box h2 {
            margin-top: 0;
            color: #333;
        }

        .popup-box p {
            color: #0c0b0b;
            margin-bottom: 20px;
            font-family: monospace ;
        }

        /* The "Join" button */
        .popup-join-btn {
            display:inline-block; 
width:80%; 
padding:12px; 
text-align:center; 
            background-color: #0aa83f; /* WhatsApp green */
            color: white;
            text-decoration: none;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.3s ease;
            margin: 0 auto;
        }

        .popup-join-btn:hover {
            background-color: #014e1d; /* Darker WhatsApp green */
        }

        /* The "Cancel" button */
        .popup-cancel-btn {
            position: absolute;
            top: 10px;
            right: 15px;
            background: none;
            border: none;
            font-size: 24px;
            color: #535353;
            cursor: pointer;
        }
        