/* Collapsible calculator sections */
.calculator-collapse {
    margin-top: 1.5em;
}
.collapse-btn {
    width: 100%;
    text-align: left;
    background: #f3f4f6;
    color: #222;
    border: none;
    outline: none;
    padding: 1em 1.2em;
    font-size: 1.08em;
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 0.5em;
    cursor: pointer;
    transition: background 0.2s;
}
.collapse-btn.active, .collapse-btn:hover {
    background: #e5e7eb;
}
.collapse-content {
    display: none;
    padding: 1em 0.5em 1.5em 0.5em;
    border-left: 3px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
    background: #fafbfc;
    margin-bottom: 1em;
}
.collapse-content.active {
    display: block;
}
/* Card and section header styles for fund types page */
.card-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 1.2em auto 16px auto;
    max-width: 650px;
    width: 95%;
    overflow: hidden;
}
.section-header {
    background: #e5e7eb;
    color: #222;
    padding: 12px 24px;
    font-size: 1.15em;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.card-content {
    padding: 14px 22px 8px 22px;
}
/* Styled table for mutual fund types */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
    font-size: 1em;
}
.styled-table th {
    background: #f8fafc;
    color: #374151;
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    border-bottom: 3px solid #e5e7eb;
}
.styled-table td {
    padding: 13px 20px;
    border-bottom: 1px solid #f3f4f6;
}
.styled-table tr:nth-child(even) {
    background: #f9fafb;
}
.styled-table tr:hover {
    background: #eff6ff;
}
@media (max-width: 768px) {
    html, body {
        font-size: 1.08em;
    }
    .styled-table, .styled-table th, .styled-table td { font-size: 1em; }
    .styled-table th, .styled-table td { padding: 12px 10px; }
    .section-header { font-size: 1.08em; padding: 14px 14px; }
    .card-content { padding: 18px 8px 8px 8px; }
}

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f6fa;
    color: #222;
    line-height: 1.6;
    padding: 0;
    margin: 0;
html {
    padding: 0;
    margin: 0;
}
}

header {
    background: #2c3e50;
    color: #fff;
    padding: 1.5rem 0 1rem 0;
    box-shadow: 0 2px 8px rgba(44,62,80,0.07);
    /* Remove width/max-width/margin for full background */
}
header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    max-width: 1200px;
    margin: 0 auto 0.5rem auto;
    text-align: center;
}
nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    padding: 0.5rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
}
nav a:hover {
    color: #f39c12;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    display: block;
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    font-size: 14px;
}

footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    font-size: 1rem;
}

/* Review Section Styles */
#review-upload {
    max-width: 900px;
    margin: 0 auto;
}
#review-form {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.2rem 2rem;
    align-items: center;
    width: 100%;
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
#review-form label {
    font-weight: 500;
    margin-bottom: 0;
    justify-self: end;
}
#review-form input[type="text"],
#review-form input[type="email"],
#review-form input[type="tel"],
#review-form textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #dbe2e8;
    border-radius: 6px;
    font-size: 1rem;
    background: #f8fafc;
    margin-bottom: 0.5rem;
}
#review-form textarea {
    resize: vertical;
}
#review-form button {
    grid-column: 2 / 3;
    padding: 0.7rem 2rem;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s;
}
#review-form button:hover {
    background: #f39c12;
}
.star-rating {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.star-rating label {
    font-size: 1.1rem;
    color: #f39c12;
    font-weight: 600;
}

#review-message {
    margin: 1rem 0;
    color: #27ae60;
    font-weight: 500;
}

#reviews-list {
    margin-top: 2rem;
}
#reviews-list h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.review-card {
    background: #f8fafc;
    border: 1px solid #dbe2e8;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.review-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}
.review-date {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 0.5rem;
}
.review-text {
    margin-bottom: 0.7rem;
}
.review-stars {
    color: #f39c12;
    font-size: 1.2rem;
}

/* Disclaimer Section */
#disclaimer {
    background: #f8fafc;
    border: 1px solid #dbe2e8;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    font-size: 14px;
    max-width: 1200px;
    margin: 2rem auto;
    display: block;
}
#disclaimer h2 {
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
}
#disclaimer p {
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */

@media (max-width: 900px) {
    main, #disclaimer {
        width: 98vw;
        max-width: 98vw;
        box-sizing: border-box;
        padding: 0.5rem;
        margin: 0.5rem auto;
    }
    header {
        padding-left: 1vw;
        padding-right: 1vw;
    }
    nav ul {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 700px) {
    main, #disclaimer {
        width: 99vw;
        max-width: 99vw;
        box-sizing: border-box;
        padding: 0.3rem;
        margin: 0.5rem auto;
        font-size: 13px;
    }
    header {
        padding-left: 0.5vw;
        padding-right: 0.5vw;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    #review-form {
        grid-template-columns: 1fr;
        padding: 0.5rem 0.2rem;
    }
    #review-form label {
        justify-self: start;
        margin-bottom: 0.2rem;
    }
}
