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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1992d4;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-img {
    max-height: 40px;
    width: auto;
    display: block;
}

.logo-text {
    margin-right: 4px;
}

.logo-icon {
    width: 32px;
    height: 22px;
    background: #1992d4;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 2px 4px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.ph-flag {
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu.mobile-hidden {
    display: none;
}

.nav-menu.active {
    display: flex;
    flex-direction: row;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 0.75rem;
    z-index: 1001;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: center;
}

.nav-menu li {
    margin: 0 0.25rem;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    white-space: nowrap;
    font-size: 0.9rem;
}

.nav-menu a:hover {
    background-color: #e6f4fa;
    color: #1992d4;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: #666;
    border-radius: 6px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background-color: #e6f4fa;
    color: #1992d4;
}

.search-btn svg {
    width: 20px;
    height: 20px;
}

.account-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: #666;
    border-radius: 6px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
}

.account-btn:hover {
    background-color: #e6f4fa;
    color: #1992d4;
}

.account-btn svg {
    width: 20px;
    height: 20px;
}

.hamburger {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: #666;
    border-radius: 6px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
}

.hamburger:hover {
    background-color: #e6f4fa;
    color: #1992d4;
}

.hamburger svg {
    width: 20px;
    height: 20px;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: #1992d4;
    color: white;
}

.btn-primary:hover {
    background: #157ab3;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #1992d4;
    border-color: #1992d4;
}

.btn-secondary:hover {
    background: #1992d4;
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1992d4, #34a6e1);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.description {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.product-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.product-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Tabs Section */
.tabs-section {
    padding: 4rem 0;
    background: white;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tab-btn {
    background: #f8f9fa;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    color: #666;
}

.tab-btn.active,
.tab-btn:hover {
    background: #1992d4;
    color: white;
}

.tab-content {
    display: none;
    text-align: center;
    padding: 2rem;
}

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

.tab-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: #1992d4;
}

.tab-content p {
    margin-bottom: 1.5rem;
    color: #666;
}

/* News Section */
.news-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.news-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1992d4;
    font-size: 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card:hover {
    transform: translateY(-4px);
    text-decoration: none;
    color: inherit;
}

.news-image {
    height: 180px;
    width: 100%;
    background: linear-gradient(135deg, #1992d4, #34a6e1);
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1992d4;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.85rem;
}

.author-avatar {
    width: 24px;
    height: 24px;
    background: #1992d4;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Investment Promotion */
.investment-promo {
    background: linear-gradient(135deg, #1992d4, #34a6e1);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.investment-promo h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.apy-highlight {
    color: #e6f4fa;
    font-weight: bold;
}

.investment-promo p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Social Section */
.social-section {
    padding: 4rem 0;
    background: white;
    text-align: center;
}

.social-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #1992d4;
}

.social-section p {
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #1992d4;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: all 0.3s;
}

.social-icon:hover {
    background: #1992d4;
    transform: translateY(-2px);
}

/* App Section */
.app-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.app-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
}

.app-info h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #1992d4;
}

.app-features {
    list-style: none;
    margin-bottom: 2rem;
}

.app-features li {
    margin-bottom: 0.5rem;
    color: #666;
}

.app-stores {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.store-badge {
    height: 50px;
    width: auto;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: #666;
}

.testimonial-author {
    font-weight: bold;
    color: #1992d4;
}

/* Footer */
.footer {
    background: #1992d4;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #e6f4fa;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #1992d4;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .app-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-menu li {
        flex-shrink: 0;
    }
    
    @media (max-width: 768px) {
        .hamburger {
            display: flex;
        }
    }
    
    @media (min-width: 769px) {
        .hamburger {
            display: none;
        }
        
        .nav-menu.mobile-hidden {
            display: flex;
        }
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

/* Quiz Styles */
.quiz-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.quiz-step {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.quiz-step h1 {
    color: #1992d4;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    text-align: center;
}

.quiz-step h2 {
    color: #1992d4;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    border-bottom: 3px solid #1992d4;
    padding-bottom: 0.5rem;
}

.quiz-step > p {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.question {
    margin-bottom: 2rem;
}

.question p {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.option {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option:hover {
    border-color: #1992d4;
    background: #e6f4fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.option.selected {
    border-color: #1992d4;
    background-color: rgba(25, 146, 212, 0.1);
    color: #1992d4;
}

.next-button, .prev-button {
    background: #1992d4;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.next-button:hover, .prev-button:hover {
    background: #157ab3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 146, 212, 0.3);
}

.prev-button {
    background: #6c757d;
}

.prev-button:hover {
    background: #545862;
}

.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

/* Results Styles */
.results-container {
    padding: 1rem 0;
}

.result-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #1992d4;
}

.result-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1992d4;
}

.result-section p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.result-section ul, .result-section ol {
    color: #555;
    padding-left: 1.5rem;
}

.result-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

#loan-amount, #monthly-payment {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1992d4;
}

.loan-option {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
}

.loan-option:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.loan-option h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1992d4;
}

.loan-option p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cta-button {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: center;
    background: #1992d4;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    margin-top: 1rem;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #157ab3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(25, 146, 212, 0.3);
}

.cta-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.primary-cta {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: center;
    background: #1992d4;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.primary-cta:hover {
    background: #157ab3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
}

.secondary-cta {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: center;
    background: transparent;
    color: #1992d4;
    border: 2px solid #1992d4;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.secondary-cta:hover {
    background: #1992d4;
    color: white;
}

/* Responsive Quiz Styles */
@media (max-width: 768px) {
    .quiz-step {
        padding: 1.5rem 1rem;
    }
    
    .quiz-step h1 {
        font-size: 2rem;
    }
    
    .options {
        grid-template-columns: 1fr;
    }
    
    .option {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .button-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .next-button, .prev-button {
        width: 100%;
        padding: 1rem;
    }
    
    .cta-container {
        flex-direction: column;
        align-items: center;
    }
    
    .primary-cta, .secondary-cta {
        width: 100%;
        text-align: center;
    }
    
    #loan-amount, #monthly-payment {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .quiz-container {
        padding: 0 0.5rem;
    }
    
    .quiz-step {
        padding: 1rem;
    }
    
    .quiz-step h1 {
        font-size: 1.8rem;
    }
    
    .option {
        padding: 0.75rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalFadeIn 0.3s ease-in-out;
}

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

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus {
    border-color: #1992d4;
    outline: none;
    box-shadow: 0 0 0 2px rgba(25, 146, 212, 0.2);
}

.required {
    color: #e53e3e;
}

.message-box {
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.message-box.success {
    background-color: rgba(52, 168, 83, 0.1);
    border: 1px solid rgba(52, 168, 83, 0.3);
    color: #2d9248;
}

.message-box.error {
    background-color: rgba(229, 62, 62, 0.1);
    border: 1px solid rgba(229, 62, 62, 0.3);
    color: #c53030;
}

/* Admin Dashboard Styles */
.admin-header {
    background-color: #f8f9fa;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eaeaea;
}

.admin-title {
    font-size: 1.75rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.admin-subtitle {
    color: #666;
    font-size: 1rem;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.admin-panel {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.admin-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.table-container {
    overflow-x: auto;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th,
.user-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

.user-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.user-table tr:hover {
    background-color: #f8f9fa;
}

.btn-export {
    background-color: #34a853;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-export:hover {
    background-color: #2d9248;
}

.search-box {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 250px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 0.5rem;
}

.pagination button {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    border-radius: 4px;
}

.pagination button.active {
    background-color: #1992d4;
    color: white;
    border-color: #1992d4;
}

.pagination button:hover:not(.active) {
    background-color: #f5f5f5;
}

/* DataTables Customization */
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1.5rem;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-left: 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .admin-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .user-table th,
    .user-table td {
        padding: 0.5rem;
    }
}