@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

/* --- GLOBAL RESETS AND BASE STYLES --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* Main Container Styles: Full-width background container */
.min-h-screen {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center; 
    padding-top: 0; 
    padding-bottom: 0;
    min-height: 100vh;
    width: 100%; 
    box-sizing: border-box;
}

/* --- CORE FIX: CONTENT WRAPPER PARA SA BALANCED GILID --- */
.page-container {
    width: 100%;
    /* FIX: Ginawang 1920px max-width (Full HD) para hindi sumagad sa ultra-wide monitors */
    max-width: 1920px; 
    margin: 0 auto; 
    /* FIX: Standard large padding (1.25rem = 20px) para may konting space sa gilid */
    padding: 0 1.25rem; 
    box-sizing: border-box;
}

/* Responsive adjustment for small screens: sapat na padding */
@media (max-width: 639px) { /* sm breakpoint */
    .page-container {
        padding: 0 1rem; 
    }
}


/* --- HEADER STYLES (PLAIN WHITE, NO SHADOW, FULL-WIDTH) --- */
header {
    background-color: #ffffff;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-bottom: 3rem; 
    box-sizing: border-box;
    width: 100%; 
    max-width: 100% !important; 
}

/* Wrapper para sa Header content - inilagay ang layout (flex/padding) dito */
header .page-container {
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column; 
    align-items: center;
    /* Tiyakin na ang content (Logo at Buttons) ay nasa magkabilang gilid */
    justify-content: space-between; 
}

/* Responsive Header Styles for screens wider than 640px (small breakpoint) */
@media (min-width: 640px) { /* sm breakpoint */
    header .page-container {
        flex-direction: row; 
    }
}

/* Styles for the SwapTayo logo within the header */
.swap-tayo-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: none !important; 
    box-shadow: none !important; 
    flex-shrink: 0;
}

/* Styles for the app name text in the header */
.text-green-700 {
    color: #047857;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Styles for the navigation list (ul) */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* Responsive Navigation List Styles for screens wider than 640px */
@media (min-width: 640px) { /* sm breakpoint */
    nav ul {
        flex-direction: row; 
        gap: 1rem; 
    }
}

/* Styles for individual navigation items (buttons/links) */
.nav-item-bg {
    background-color: #e0f2f7;
    color: #065f46;
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #a7f3d0;
    white-space: nowrap;
}

/* Hover effects for navigation items */
.nav-item-bg:hover {
    background-color: #d1fae5;
    color: #047857;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* Main Content / Hero Section Styles (PLAIN WHITE, NO SHADOW, FULL-WIDTH) */
main {
    background-color: #ffffff; 
    border-radius: 0 !important;
    box-shadow: none !important; 
    margin-top: 0; 
    margin-bottom: 3rem;
    box-sizing: border-box;
    width: 100%; 
    max-width: 100% !important; 
}

/* Wrapper para sa Main content - inilagay ang padding dito */
main .page-container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Styles for the main heading (h1) within the main content */
main h1 {
    font-size: 2.5rem; 
    font-weight: 900; 
    color: #1a202c; 
    margin-bottom: 1.5rem; 
    line-height: 1.2; 
}

/* Responsive Heading Styles for screens wider than 640px */
@media (min-width: 640px) { 
    main h1 {
        font-size: 3rem; 
    }
}

/* Responsive Heading Styles for screens wider than 1024px */
@media (min-width: 1024px) { 
    main h1 {
        font-size: 3.75rem; 
    }
}

/* Styles for paragraphs (p) within the main content */
main p {
    font-size: 1.125rem; 
    color: #4a5568; 
    margin-bottom: 2rem; 
}

/* Responsive Paragraph Styles for screens wider than 640px */
@media (min-width: 640px) { 
    main p {
        font-size: 1.25rem; 
    }
}

/* Styles for the "Join Now" button */
.join-now-btn {
    background-color: #10b981; 
    color: white; 
    padding: 0.9rem 2.5rem; 
    border: none; 
    border-radius: 9999px; 
    font-size: 1.05rem; 
    font-weight: 700; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    box-shadow: 0 8px 15px rgba(16, 185, 129, 0.3), 0 4px 8px rgba(16, 185, 129, 0.15); 
}

/* Hover effects for the "Join Now" button */
.join-now-btn:hover {
    background-color: #059669; 
    transform: translateY(-3px); 
    box-shadow: 0 12px 20px rgba(16, 185, 129, 0.4), 0 6px 12px rgba(16, 185, 129, 0.2); 
}

/* Active (click) effects for the "Join Now" button */
.join-now-btn:active {
    background-color: #047857; 
    transform: translateY(0); 
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.2); 
}

/* Styles for images within the main content */
main img {
    max-width: 100%; 
    height: auto; 
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Features Section Styles (Kailangan pa rin ng Shadow at Box Look ang mga cards/sections na ito) */
section.bg-white, section.mb-12 {
    background-color: #ffffff; 
    border-radius: 0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); 
    margin-bottom: 3rem; 
    box-sizing: border-box;
    width: 100%; 
    max-width: 100% !important; 
}

/* I-overwrite ang background para sa specific section */
section.mb-12 {
    background-color: #f0fdf4; 
}

/* Wrapper para sa Section content - inilagay ang padding dito */
section .page-container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Styles for section titles (h2) */
section h2 {
    font-size: 2.25rem; 
    font-weight: 700; 
    color: #1a202c; 
    margin-bottom: 2rem; 
}

/* Styles for individual feature cards within the grid */
.grid > div {
    border-radius: 0.75rem; 
    padding: 2rem; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); 
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; 
    border: 1px solid #e2e8f0; 
}

/* Hover effects for feature cards */
.grid > div:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); 
}

/* Styles for feature card headings (h3) */
.grid h3 {
    font-size: 1.5rem; 
    font-weight: 600; 
    margin-bottom: 0.75rem; 
}

/* Styles for paragraphs (p) within feature cards */
.grid p {
    font-size: 1rem; 
    color: #4a5568; 
}

/* Specific background and text colors for different feature cards */
.bg-blue-50 { background-color: #eff6ff; } 
.text-blue-700 { color: #1d4ed8; } 

.bg-purple-50 { background-color: #f5f3ff; } 
.text-purple-700 { color: #6d28d9; } 

.bg-red-50 { background-color: #fef2f2; } 
.text-red-700 { color: #b91c1c; } 

.bg-indigo-50 { background-color: #eef2ff; } 
.text-indigo-700 { color: #4338ca; } 


/* How It Works Section Styles */

/* Utility classes for step circles (width and height) */
.w-24 { width: 6rem; } 
.h-24 { height: 6rem; } 

/* Background colors for step circles */
.bg-pink-200 { background-color: #fbcfe8; } 
.bg-purple-200 { background-color: #e9d5ff; } 
.bg-blue-200 { background-color: #bfdbfe; } 

/* Text colors and font weights for steps */
.text-gray-600 { color: #4b5563; } 
.font-bold { font-weight: 700; } 

/* Spacing for content within each step column */
.flex-col > .flex-col {
    gap: 1rem; 
}

/* Styles for step titles (h3) */
.flex-col > .flex-col h3 {
    font-size: 1.25rem; 
    font-weight: 600; 
    color: #2c3e50; 
}

/* Styles for step descriptions (p) */
.flex-col > .flex-col p {
    font-size: 1rem; 
    color: #4a5568; 
}

/* Footer Styles: Defines the appearance of the page footer (FULL-WIDTH BACKGROUND) */
footer {
    background-color: #e2e8f0; 
    color: #64748b; 
    border-top: 1px solid #cbd5e1; 
    margin-top: auto; 
    width: 100%; 
    max-width: 100% !important; 
    border-radius: 0 !important;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05); 
}

/* Wrapper para sa Footer content - inilagay ang padding dito */
footer .page-container {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    text-align: center; 
}

/* Responsive Adjustments for screens up to 1023px (large breakpoint) */
@media (max-width: 1023px) { /* lg breakpoint */
    main .page-container {
        padding-top: 2.5rem; 
        padding-bottom: 2.5rem;
    }
    section .page-container {
        padding-top: 2.5rem; 
        padding-bottom: 2.5rem;
    }
    section h2 {
        font-size: 2rem; 
    }
    .grid > div {
        padding: 1.5rem; 
    }
    .grid h3 {
        font-size: 1.375rem; 
    }
    .w-24, .h-24 {
        width: 5rem; 
        height: 5rem; 
        font-size: 3rem; 
    }
}

/* Responsive Adjustments for screens up to 767px (medium breakpoint) */
@media (max-width: 767px) { /* md breakpoint */
    header .page-container {
        padding-top: 0.8rem;
        padding-bottom: 0.8rem; 
    }
    main .page-container {
        padding-top: 2rem; 
        padding-bottom: 2rem; 
    }
    main h1 {
        font-size: 2.25rem; 
    }
    main p {
        font-size: 1rem; 
    }
    .join-now-btn {
        padding: 0.8rem 2rem; 
        font-size: 1rem; 
    }
    section .page-container {
        padding-top: 2rem;
        padding-bottom: 2rem; 
    }
    section h2 {
        font-size: 1.875rem; 
    }
    .grid > div {
        padding: 1.25rem; 
    }
    .grid h3 {
        font-size: 1.25rem; 
    }
    .w-24, .h-24 {
        width: 4.5rem; 
        height: 4.5rem; 
        font-size: 2.5rem; 
    }
    .flex-col > .flex-col h3 {
        font-size: 1.125rem; 
    }
    .flex-col > .flex-col p {
        font-size: 0.9rem; 
    }
}

/* Responsive Adjustments for screens up to 639px (small breakpoint) */
@media (max-width: 639px) { /* sm breakpoint */
    header .page-container {
        flex-direction: column; 
        align-items: center; 
        gap: 1rem; 
        padding-top: 0.75rem; 
        padding-bottom: 0.75rem; 
    }
    nav ul {
        flex-direction: column; 
        gap: 0.5rem; 
    }
    .nav-item-bg {
        width: 100%; 
        text-align: center; 
    }
    main .page-container {
        flex-direction: column; 
        padding-top: 1.5rem; 
        padding-bottom: 1.5rem; 
    }
    main h1 {
        font-size: 2rem; 
    }
    main p {
        font-size: 0.95rem; 
    }
    .join-now-btn {
        width: 100%; 
        text-align: center; 
    }
    section .page-container {
        padding-top: 1.5rem; 
        padding-bottom: 1.5rem; 
    }
    section h2 {
        font-size: 1.75rem; 
    }
    .grid {
        grid-template-columns: 1fr; 
    }
    .w-24, .h-24 {
        width: 4rem; 
        height: 4rem; 
        font-size: 2rem; 
    }
}