/* 
   ================================================
   Betterball Stylesheet
   ================================================
   This file controls how the website looks. Think of HTML as the "skeleton" and "words" of the page, 
   and CSS as the "paint", "clothing", and "layout".
*/

/* 
   :root allows us to define "variables". Think of them as nicknames for values we use often.
   Instead of typing the exact color code '#1a4f32' every time, we just write 'var(--primary-color)'.
   If we ever want to change the green to blue, we only change it once here, and the whole site updates!
*/
:root {
    /* Color Palette */
    --primary-color: #1a4f32; /* Deep Fairway Green */
    --primary-light: #267248; /* A slightly lighter green for hover effects */
    --primary-dark: #123723;  /* A very dark green for text and headers */
    --accent-color: #d8ba6a;  /* Subtle Gold / Sand color */
    --accent-light: #f5eedf;  /* Very light sand for subtle backgrounds */
    
    /* Background Colors */
    --bg-main: #fcfbf9; /* Off-white / Sand color for the main page background */
    --bg-card: #ffffff; /* Pure white for boxes (cards) to make them pop out */
    --bg-alt: #f4f2ea;  /* Slightly darker background for alternating sections */
    
    /* Text Colors */
    --text-main: #2d3748; /* Dark gray for reading text. Pure black (#000000) is often too harsh on the eyes. */
    --text-muted: #718096; /* Lighter gray for less important text or subtitles */
    --text-light: #ffffff; /* White text, mostly used on top of dark buttons */
    
    /* Visual Effects (Shadows and Borders) */
    --border-color: #e2e8f0; /* Light gray lines between items */
    /* Shadows make boxes look like they are floating above the page (3D effect) */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); /* Small shadow */
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025); /* Medium shadow */
    --shadow-lg: 0 20px 25px -5px rgba(26, 79, 50, 0.1), 0 10px 10px -5px rgba(26, 79, 50, 0.04); /* Large green-tinted shadow */
    
    /* 'Transition' tells the browser to animate changes smoothly over 0.3 seconds. */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 
   Global Reset
   The asterisk (*) means "apply to EVERYTHING on the page".
   Browsers often add hidden spacing by default. This resets all spacing to zero so we have a clean slate to work with.
   'box-sizing: border-box' is a math trick that stops padding from making boxes wider than you intended.
*/
@font-face {
    font-family: 'Satoshi';
    src: url('assets/Satoshi-Variable.ttf') format('truetype');
    font-weight: 300 900;
    font-style: normal;
}

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

/* The 'html' tag wraps the entire page. */
html {
    scroll-behavior: smooth; /* When you click a navigation link, this makes the page glide down smoothly instead of instantly jumping. */
    scroll-padding-top: 80px; /* Leaves a gap at the top when scrolling, so our sticky navigation bar doesn't cover the title. */
}

/* The 'body' tag is where all visible content lives. */
body {
    font-family: 'Satoshi', sans-serif; /* Use the 'Satoshi' font. If it fails to load, use a generic 'sans-serif' font. */
    background-color: var(--bg-main); /* Set the background color to our off-white variable. */
    color: var(--text-main); /* Set the default text color to dark gray. */
    line-height: 1.7; /* Adds space between lines of text to make it easier to read. */
    -webkit-font-smoothing: antialiased; /* A trick to make fonts look slightly crisper on Apple devices. */
    -moz-osx-font-smoothing: grayscale;
}

/* 
   'container' is a class. In HTML, it looks like <div class="container">.
   We use it to wrap our content so it stays centered and doesn't stretch too wide on huge computer monitors.
*/
.container {
    width: 100%;
    max-width: 1200px; /* Don't grow wider than 1200 pixels. */
    margin: 0 auto; /* 'auto' on the left and right automatically centers the box. */
    padding: 0 24px; /* Gives a 24-pixel buffer on the left and right so text never touches the edge of a phone screen. */
}

/* Typography Headings (h1, h2, h3, etc.) */
h1, h2, h3, h4, h5 {
    color: var(--primary-dark);
    font-weight: 700; /* Makes the text bold (700 is bold, 400 is normal). */
    line-height: 1.2; /* Tighter line spacing for big titles. */
}

/* Styles for the group of elements containing section titles and subtitles */
.section-header {
    text-align: center;
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Styles specifically for the h2 titles in our sections */
.section-title {
    font-size: 2.5rem; /* 'rem' is a flexible unit based on standard text size. 2.5 means 2.5 times larger than normal text. */
    margin-bottom: 16px;
    letter-spacing: -0.5px; /* Squeezes letters slightly closer together for a modern look. */
    position: relative; /* This is needed so we can stick the gold underline exactly where we want it. */
    display: inline-block;
}

/* 
   '::after' allows us to draw something on the screen without adding it to the HTML.
   Here, we are drawing the little gold line underneath the section titles.
*/
.section-title::after {
    content: ''; /* We aren't writing text, just drawing a shape, so content is blank. */
    position: absolute;
    bottom: -10px; /* Position it below the text. */
    left: 50%;
    transform: translateX(-50%); /* These two lines center the underline precisely. */
    width: 60px; /* The line is 60 pixels wide. */
    height: 4px; /* The line is 4 pixels thick. */
    background-color: var(--accent-color); /* Make it gold. */
    border-radius: 2px; /* Rounds the edges of the line. */
}

/* Styles for the gray text under section titles */
.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-top: 24px;
}

/* 
   Buttons (.btn class) 
   We apply this class to links to make them look like clickable buttons.
*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px; /* Top/Bottom padding, Left/Right padding. Gives the button its size. */
    border-radius: 50px; /* Very high number creates pill-shaped rounded buttons. */
    text-decoration: none; /* Removes the default blue underline from links. */
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition); /* Tells it to animate smoothly if hovered. */
    cursor: pointer; /* Turns the mouse arrow into a pointing hand when hovering. */
    border: 2px solid transparent;
}

/* A modifier class to make a button larger */
.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* The main, solid green button style */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
}

/* 
   ':hover' means "what happens when the user's mouse pointer is resting on this element". 
   Here, we make the button slightly lighter, float up, and cast a larger shadow.
*/
.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px); /* Moves the button UP by 2 pixels. */
    box-shadow: var(--shadow-md); /* Increases the shadow below it. */
}

/* The secondary button style (just a border, transparent inside) */
.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* When hovered, the outline button fills in green. */
.btn-outline:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--text-light);
}

/* 
   Header / Navbar 
*/
.navbar {
    background-color: rgba(252, 251, 249, 0.85); /* The last number (0.85) makes the background 85% solid, so it's slightly see-through. */
    backdrop-filter: blur(12px); /* Creates the modern "frosted glass" blur effect on whatever is underneath the bar. */
    -webkit-backdrop-filter: blur(12px); /* Same as above, just for Apple Safari browsers. */
    position: sticky; /* Keeps the navigation bar "stuck" to the top of the screen as you scroll down. */
    top: 0; /* Tells the sticky bar to lock onto the very top edge (0 pixels from top). */
    z-index: 1000; /* Ensures the navigation bar floats ABOVE all other elements on the page. */
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    padding: 12px 0;
    transition: var(--transition);
}

/* Inside the navbar, we use Flexbox to center the links. */
.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-app-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 auto 16px;
    letter-spacing: -1px;
}

/* The actual logo image in the hero section */
.hero-logo-img {
    height: 176px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    border-radius: 24px;
    margin: 0 auto 32px auto; /* Centered with top and bottom spacing */
}

/* The row of navigation links */
.nav-links {
    list-style: none; /* Removes bullet points. */
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    gap: 16px; /* Safe fallback */
    gap: clamp(12px, 4vw, 40px); /* Flexibly resizes the gap between links on mobile. */
    flex-wrap: wrap; /* Allows wrapping on tiny screens to prevent getting cut off. */
    justify-content: center;
}

/* Individual links in the navbar */
.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* This creates the cool effect where a gold line grows underneath a link when hovered. */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; /* Starts with 0 width (invisible). */
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%; /* When hovered, grows to 100% width, sliding across the bottom. */
}

/* 
   Hero Section (Top banner)
*/
.hero {
    position: relative;
    padding: 40px 0 20px;
    text-align: center;
    overflow: hidden; /* Hides any background patterns that spill over the edges. */
    background-color: var(--bg-alt);
}

/* A decorative background made of repeating dots */
.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4; /* Makes it faint. */
    /* This creates a grid of small dots using math, without needing an image file. */
    background-image: radial-gradient(var(--primary-light) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0; /* Puts it behind the text. */
}

.hero-content {
    position: relative;
    z-index: 1; /* Puts the text in front of the dot pattern. */
    max-width: 800px;
}

/* The little 'Version 2.0 Now Available' pill shape */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--accent-light);
    color: var(--primary-dark);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    border: 1px solid rgba(216, 186, 106, 0.4);
}

/* The massive main title */
.hero h1 {
    font-size: 4.5rem;
    letter-spacing: -2px;
    margin-bottom: 24px;
    /* The next 3 lines paint a color gradient across the text instead of a solid color. */
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 
   Overview Section 
*/
.overview-section {
    padding: 20px 0 20px;
    background-color: var(--bg-main);
}

/* 
   This uses CSS Grid. It automatically creates columns based on available space. 
   'repeat(auto-fit, minmax(350px, 1fr))' means: Make as many columns as will fit, but never let a column get smaller than 350 pixels. If it gets too small, stack them vertically instead. Perfect for phones!
*/
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/* The white boxes holding info about Social Games / Competitions */
.overview-card {
    background-color: var(--bg-card);
    border-radius: 24px; /* Rounded corners */
    padding: 48px;
    box-shadow: var(--shadow-sm); /* A little 3D drop shadow */
    transition: var(--transition); /* Smooth animation when hovered */
    border: 1px solid var(--border-color); /* Thin border outline */
    position: relative;
    overflow: hidden;
}

/* We create an invisible gold line at the top of the card using ::before */
.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-color);
    transform: scaleX(0); /* Squish it to a width of 0 so it disappears. */
    transform-origin: left;
    transition: transform 0.4s ease;
}

/* When the user's mouse hovers over the card... */
.overview-card:hover {
    transform: translateY(-8px); /* The card floats up 8 pixels. */
    box-shadow: var(--shadow-lg); /* The shadow gets bigger to match. */
}

/* ...and the gold line unsquishes to cover the top of the card! */
.overview-card:hover::before {
    transform: scaleX(1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

/* The square box that holds the SVG icons */
.card-icon {
    width: 64px;
    height: 64px;
    background-color: var(--accent-light);
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.overview-card h3 {
    font-size: 1.75rem;
    margin: 0;
}

.overview-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.feature-list {
    list-style: none; /* Removes normal bullet points. */
}

/* Adds a custom green checkmark instead of a bullet point */
.feature-list li {
    position: relative;
    padding-left: 28px; /* Makes room for the checkmark. */
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 500;
}

.feature-list li::before {
    content: '✓'; /* Type a checkmark character. */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 900;
}

/* 
   User Guide Section 
*/
.guide-section {
    padding: 20px 0 40px;
    background-color: var(--bg-alt);
}

.guide-steps {
    display: flex;
    flex-direction: column; /* Stacks the steps vertically on top of each other. */
    gap: 100px; /* Big space between each step. */
}

/* A single step (which has text on one side and an image on the other) */
.guide-step {
    display: flex; /* Flexbox puts the text block and image block side-by-side. */
    align-items: center;
    gap: 80px;
}

/* 
   Adding '.reverse' flips the order.
   Instead of [Text] then [Image], it becomes [Image] then [Text]. 
   We use this for step 2 so it zig-zags down the page.
*/
.guide-step.reverse {
    flex-direction: row-reverse;
}

/* 'flex: 1' tells the block to expand and share the available space equally with other blocks. */
.step-text {
    flex: 1; 
}

/* The big faint "01", "02" numbers */
.step-number {
    font-size: 4.5rem;
    font-weight: 700;
    color: rgba(26, 79, 50, 0.08); /* Barely visible green. */
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.step-text h3 {
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.step-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.step-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Drawing a fake smartphone frame around the screenshot using borders */
.phone-frame {
    width: 320px;
    height: 650px;
    background-color: var(--bg-card);
    border-radius: 40px; /* Curves the corners like a phone edge. */
    padding: 12px;
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--text-main); /* The black edge of the phone. */
    position: relative;
}

/* Drawing the little iPhone "notch" at the top of the screen */
.phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%); /* Centers the notch. */
    width: 120px;
    height: 24px;
    background-color: var(--text-main); /* Black, to match the border. */
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

/* The actual screenshot image inside the phone */
.phone-frame img {
    width: 100%;
    height: 100%;
    border-radius: 30px; /* Curves the corners of the image itself. */
    object-fit: cover; /* Ensures the image fills the space without squishing or stretching. */
    background-color: var(--bg-alt);
}

/* 
   FAQ & Support Section 
*/
.faq-support-section {
    padding: 80px 0;
    background-color: var(--bg-main);
}

.faq-accordion {
    max-width: 700px;
    margin: 0 auto 80px;
}

/* The individual FAQ questions */
.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

/* When the <details> box is opened, make its border green */
.faq-item[open] {
    border-color: var(--primary-color);
}

/* The clickable question part */
.faq-item summary {
    padding: 24px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer; /* Pointer hand icon on hover */
    color: var(--primary-dark);
    list-style: none; /* Hides the ugly default black triangle arrow */
    position: relative;
    outline: none; /* Removes the ugly blue box when clicked */
    display: flex;
    justify-content: space-between; /* Pushes the text and our custom '+' sign apart */
    align-items: center;
}

/* This is a hack to completely hide the default arrow across different browsers */
.faq-item summary::-webkit-details-marker {
    display: none;
}

/* Drawing our own '+' sign on the right side */
.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease; /* Animate the flip later */
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* When the box is open, we change the '+' to a '−' and spin it upside down just for fun */
.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

/* The answer text inside the FAQ */
.faq-content {
    padding: 0 24px 24px;
    color: var(--text-muted);
    /* 'animation' calls the 'slideDown' rules we write below to fade the text in smoothly */
    animation: slideDown 0.3s ease-out;
}

/* Defining the custom animation: It starts invisible and slightly shifted up, then drops in. */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* The big green block at the bottom asking "Still need help?" */
.support-block {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--text-light);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden; /* Stops our decorative circle from poking out the sides */
}

/* Drawing a faint decorative gold circle in the top right corner of the green block */
.support-block::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: var(--accent-color);
    opacity: 0.1;
    border-radius: 50%;
}

.support-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1); /* 10% white, 90% see-through */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.support-block h3 {
    color: var(--text-light);
    font-size: 2rem;
    margin-bottom: 16px;
}

.support-block p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.support-block .btn {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    border: none;
}

.support-block .btn:hover {
    background-color: var(--text-light);
    transform: translateY(-2px);
}

/* 
   Footer 
*/
footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.build-number {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 12px;
    letter-spacing: 0.5px;
}

/* 
   ================================================
   Responsive Design (Mobile Support)
   ================================================
   "@media" queries are like "if statements" for CSS. 
   They say: "IF the screen width shrinks below X pixels, apply these rule changes."
*/

/* If the screen is smaller than 992px (like an iPad or small laptop)... */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem; /* Shrink the massive title a bit */
    }
    
    .guide-step, .guide-step.reverse {
        /* Instead of sitting side-by-side, stack the image BELOW the text. */
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
}

/* If the screen is smaller than 768px (like a smartphone)... */
@media (max-width: 768px) {
    .hero {
        padding: 20px 0 16px; /* Highly tightened for mobile */
    }
    
    .hero h1 {
        font-size: 2.75rem; /* Shrink the main title even more */
    }
    
    .tagline {
        font-size: 1.15rem;
    }
    
    .hero-actions {
        flex-direction: column; /* Stack the two hero buttons on top of each other */
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .overview-grid {
        grid-template-columns: 1fr; /* Force the grid to only have 1 column. */
    }
    
    .overview-card {
        padding: 32px; /* Reduce padding inside the cards */
    }
    
    .support-block {
        padding: 40px 24px;
    }
}


/* 
   ================================================
   User Guide Search
   ================================================
*/
.guide-search-container {
    max-width: 600px;
    margin: 0 auto 32px;
    position: relative;
}

.guide-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 20px 16px 48px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 16px; /* Exactly 16px stops iOS auto-zoom */
    color: var(--text-main);
    background-color: var(--bg-card);
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none; /* Removes default iOS text field styling */
    appearance: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* Modern soft shadow */
}

.guide-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 79, 50, 0.1);
}

.guide-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    pointer-events: none;
}

.search-highlight {
    background-color: #ffeb3b; /* bright yellow */
    color: #000;
    font-weight: 600;
    padding: 0 2px;
    border-radius: 2px;
}

/* Search Mode Overrides */
.tabs-container.search-active {
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 24px;
}

.tabs-container.search-active .tabs-menu {
    display: none !important;
}

.tabs-container.search-active::after {
    display: none !important; /* Hides the fade mask on mobile */
}

.tabs-container.search-active .tab-content {
    padding: 0;
}

.tabs-container.search-active .tab-pane {
    display: block; /* Force all to show initially in search mode */
    background-color: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 0;
    margin-bottom: 24px;
}

.tabs-container.search-active .tab-pane.no-results {
    display: none; /* Hide panes with no matches */
}

/* 
   ================================================
   Tabbed User Guide Section
   ================================================
*/
.tabs-container {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    background-color: var(--bg-card);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    min-height: 600px;
}

.tabs-menu {
    flex: 0 0 250px;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}

.tab-btn {
    padding: 20px 24px;
    text-align: left;
    background: none;
    border: none;
    border-left: 4px solid transparent;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
    font-family: inherit;
}

.tab-btn:hover {
    background-color: var(--bg-card);
    color: var(--primary-color);
}

.tab-btn.active {
    background-color: var(--bg-card);
    color: var(--primary-dark);
    border-left-color: var(--primary-color);
}

.tabs-content {
    flex: 1;
    padding: 40px;
    position: relative;
    background-color: var(--bg-card);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


.tab-pane-header h2 {
    font-size: 1.75rem;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--accent-light);
}

.tab-pane-body {
    display: block;
}

.tab-pane-body::after {
    content: "";
    display: table;
    clear: both;
}

.tab-text-content {
    /* Text flows around the floated image */
}

.tab-text-content h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 32px 0 16px;
}

.tab-text-content h3:first-child {
    margin-top: 0;
}

.help-list {
    list-style: none;
    margin-bottom: 24px;
}

.help-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-main);
    line-height: 1.6;
}

.help-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.5rem;
    line-height: 1;
    top: -2px;
}

.help-note {
    background-color: var(--bg-alt);
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 24px;
}

/* Image Placeholders in tabs */
.help-image-placeholder {
    float: right;
    width: 280px;
    margin-left: 40px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.help-image-placeholder .phone-frame {
    width: 100%;
    height: 570px;
    border-width: 6px;
}

.placeholder-caption {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* Responsive Tabs */
@media (max-width: 992px) {
    .tabs-container {
        flex-direction: column;
        position: relative;
    }
    
    /* Creates a subtle fade on the right edge to indicate there are more tabs hiding */
    .tabs-container::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 48px;
        height: 53px; /* Exact height of the tabs menu */
        background: linear-gradient(to right, rgba(252, 251, 249, 0), var(--bg-alt));
        pointer-events: none; /* Allows clicks to pass through */
    }
    
    .tabs-menu {
        flex: none;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .tab-btn {
        flex: 0 0 auto;
        border-left: none;
        border-bottom: 4px solid transparent;
        border-right: 1px solid var(--border-color);
    }
    
    .tab-btn.active {
        border-left: none;
        border-bottom-color: var(--primary-color);
    }
    
    .tab-pane-body {
        display: block;
    }
    
    .help-image-placeholder {
        float: none;
        margin: 40px auto 0;
        width: 100%;
    }
    
    .help-image-placeholder .phone-frame {
        width: 320px;
        height: 650px;
    }
}
