/* RESET */

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

body {
    font-family: Arial, sans-serif;
    background: #fbf7ee;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== NAVBAR ===== */
header {
    width: 100%;
    background: #fbf7ee;
    padding: 15px 40px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo {
    font-size: 24px;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
}

/* ===== CENTER MENU ===== */
.nav-center {
    flex: 1;
    /* Middle section expands */
    display: flex;
    justify-content: center;
    /* Centers the menu */
}

.desktop-nav {
    display: flex;
    gap: 40px;
}

.desktop-nav a {
    text-decoration: none;
    color: rgb(23, 23, 23);
    font-size: 19px;
    font-weight: bold;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 6px;
}

.desktop-nav a:hover {
    color: #000;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* ===== SIGN IN BUTTON (RIGHT SIDE) ===== */
.signin-btn {
    padding: 7px 14px;
    background: #FA8900;
    color: black !important;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    margin-left: 20px;
    font-size: 13px;
    transition: 0.2s;
}

.signin-btn:hover {
    background: #e67e00;
    box-shadow: 0 0 10px rgba(250, 137, 0, 0.6);
}

/* ===== HAMBURGER ICON ===== */
.hamburger {
    display: none;
}

.hamburger-icon {
    width: 30px;
    height: 30px;
}

/* ===== HERO ===== */
.hero {
    height: 50vh;
    /* Fallback gradient if image doesn't exist */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/math-hero.jpg');
    background-size: cover;
    background-position: center;
    /* height of header */
    position: relative;
}

.hero-text {
    position: relative;
    color: white;
    text-align: center;
    padding-top: 18vh;
}

.hero-text h1 {
    font-size: 60px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

/* ===== ABOUT ===== */
.about-section {
    display: flex;
    gap: 40px;
    padding: 70px 10%;
    max-width: 1200px;
    margin: 40px auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.about-section img {
    flex: 1;
    border-radius: 10px;
    object-fit: cover;
    max-width: 50%;
}

.about-section .text-box {
    flex: 1;
    font-size: 18px;
    line-height: 1.6;
}

.about-section .text-box h2 {
    margin-bottom: 20px;
    color: #333;
}

.about-section .text-box p {
    margin-bottom: 15px;
    color: #555;
}

/* ===== SERVICES ===== */
#services {
    padding: 40px 20px;
    background: #FBF7EE;
    text-align: center;
}

.services-inner {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 28px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.services-inner h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
}

.services-inner p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #666;
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    background: #FA8900;
    color: black;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, box-shadow 0.3s;
}

.btn:hover {
    background: #e67e00;
    /* Slightly darker for hover, or keep same? User asked for glow. */
    box-shadow: 0 0 10px rgba(250, 137, 0, 0.6);
}

/* ===== LOCATION SECTION ===== */
#location-section {
    padding: 60px 20px;
    background: url('../images/skyline.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    max-width: 1050px;
    margin: 40px auto;
    border-radius: 10px;
}

.location-inner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 37px;
    color: #333;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.9);
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.service-box {
    background: #6e9170;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.service-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 8px;
    /* Reduced from 15px */
}

.service-box ul {
    list-style-type: disc;
    padding-left: 20px;
    /* Standard padding for bullets */
    margin-top: 5px;
    /* Reduced from 10px */
    margin-bottom: 0;
    color: #ffffff;
    /* Explicitly white */
    display: inline-block;
    /* Centers the list block */
    text-align: left;
    /* Aligns text inside the block */
    width: auto;
    /* Let it size to content */
}

.service-box li {
    margin-bottom: 5px;
    color: #ffffff;
    /* Ensure usage */
    text-align: left;
    /* Double check alignment */
    padding-left: 5px;
    /* Slight space between bullet and text */
}



/* ===== CONSULTATION CTA ===== */
#consultation-cta {
    background-color: #445C5F;
    padding: 100px 2px;
    color: #ffffff;
    text-align: center;
}

#consultation-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 10px;
}

/* ===== CONTACT ===== */
#contact-section {
    background: #455c5f;
    color: white;
    padding: 50px 20px;
    text-align: center;
}

#contact-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.contact-form {
    max-width: 500px;
    margin: auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: none;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    background: #FA8900;
    color: rgb(46, 40, 40);
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
}

.contact-form button:hover {
    background: #e67e00;
    box-shadow: 0 0 10px rgba(250, 137, 0, 0.6);
}

/* ===== FOOTER ===== */
footer {
    background: #204c4c;
    color: white;
    padding: 9px;
    text-align: center;
    margin-top: auto;
}

/* ===== MOBILE ===== */
@media (max-width: 850px) {

    .nav-center,
    .signin-btn {
        display: none;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        font-size: 28px;
    }

    .mobile-menu {
        display: none;
        background: #fbf7ee;
        text-align: center;
        padding: 20px;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        z-index: 998;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .mobile-menu a {
        display: block;
        padding: 12px;
        font-size: 20px;
        text-decoration: none;
        color: black;
        border-bottom: 1px solid #eee;
    }

    .mobile-signin {
        background: #FA8900;
        color: black !important;
        border-radius: 6px;
        padding: 12px;
        margin-top: 10px;
        border-bottom: none;
        box-shadow: none;
        /* Reset shadow or keep it? Mobile usually flatter, but let's stick to brand */
    }

    .hero-text h1 {
        font-size: 32px;
        padding: 0 20px;
    }
}

/* ===== RESPONSIVE ABOUT ===== */
@media (max-width: 900px) {
    .about-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .about-section img,
    .about-section .text-box {
        width: 100%;
    }
}

/* ===== SIGN IN PAGE ===== */
.signin-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    background: #fbf7ee;
    background-image: url('../images/skyline.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.signin-container {
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 100%;
}

.signin-container h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.signin-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.signin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: border-color 0.3s;
    font-family: Arial, sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #0077FF;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #555;
}

.remember-me input[type="checkbox"] {
    cursor: pointer;
}

.forgot-password {
    color: #0077FF;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #005FCC;
    text-decoration: underline;
}

.signin-submit-btn {
    width: 100%;
    padding: 14px;
    background: #FA8900;
    color: black;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
    margin-top: 10px;
}

.signin-submit-btn:hover {
    background: #e67e00;
    box-shadow: 0 0 10px rgba(250, 137, 0, 0.6);
}

.signin-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.signin-divider::before,
.signin-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: #e0e0e0;
}

.signin-divider::before {
    left: 0;
}

.signin-divider::after {
    right: 0;
}

.signin-divider span {
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 14px;
}

.alternate-signin {
    text-align: center;
    font-size: 15px;
    color: #555;
}

.alternate-signin a {
    color: #0077FF;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.alternate-signin a:hover {
    color: #005FCC;
    text-decoration: underline;
}

/* ===== MOBILE RESPONSIVE FOR SIGN IN ===== */
@media (max-width: 600px) {
    .signin-container {
        padding: 40px 25px;
    }

    .signin-container h1 {
        font-size: 26px;
    }

    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* ===== DASHBOARD PAGE - GRID TILES ===== */
.dashboard-section {
    min-height: 100vh;
    padding: 100px 20px 60px;
    background: #fbf7ee;
}

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

/* WELCOME HEADER */
.dashboard-header {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-section h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 8px;
}

.header-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0077FF;
}

/* GRID TILES */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.dashboard-tile {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dashboard-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #0077FF;
}

.tile-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.dashboard-tile h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.dashboard-tile p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* BACK BUTTON */
.back-btn {
    background: #FA8900;
    color: black;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 30px;
    transition: background 0.3s, box-shadow 0.3s;
}

.back-btn:hover {
    background: #e67e00;
    box-shadow: 0 0 10px rgba(250, 137, 0, 0.6);
}

/* CONTENT SECTIONS */
.dashboard-content-section {
    display: none;
}

.dashboard-content-section h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 25px;
}

/* INFO CARDS */
.info-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
}

.info-card p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.info-card p strong {
    color: #333;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }

    .welcome-section h1 {
        font-size: 24px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dashboard-tile {
        padding: 30px 20px;
    }

    .tile-icon {
        font-size: 40px;
    }
}

@media (max-width: 600px) {
    .dashboard-section {
        padding: 90px 15px 40px;
    }

    .dashboard-header {
        padding: 25px 15px;
    }

    .welcome-section h1 {
        font-size: 22px;
    }

    .header-avatar {
        width: 60px;
        height: 60px;
    }

    .dashboard-tile h3 {
        font-size: 16px;
    }
}

/* ===== ACCOUNT DASHBOARD STYLES ===== */
.account-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 12px;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
}

.account-input {
    width: 100%;
    padding: 8px 10px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #333;
    transition: all 0.3s;
}

.account-input:disabled {
    background: transparent;
    color: #333;
    cursor: default;
}

.account-input.editing {
    border-color: #0077FF;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0, 119, 255, 0.1);
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.status-paid {
    background: #d1fae5;
    color: #065f46;
}

.status-due {
    background: #fee2e2;
    color: #991b1b;
}

.status-inactive {
    background: #f3f4f6;
    color: #374151;
}

/* Account Grid Container */
.account-container-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Mobile responsive for account grid */
@media (max-width: 850px) {
    .account-container-grid {
        grid-template-columns: 1fr;
    }

    .account-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== INBOX STYLES ===== */
.inbox-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    height: 500px;
    overflow: hidden;
    background: white;
}

.inbox-sidebar {
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    background: #f9fafb;
}

.message-list {
    display: flex;
    flex-direction: column;
}

.message-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.message-item:hover {
    background: #f3f4f6;
}

.message-item.active {
    background: #eef2ff;
    border-left: 3px solid #0077FF;
}

.message-item.unread .msg-subject {
    font-weight: bold;
    color: #111;
}

.msg-sender {
    font-size: 13px;
    color: #666;
    margin-bottom: 2px;
}

.msg-subject {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-date {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    text-align: right;
}

.inbox-content {
    background: white;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#messageDetailView {
    padding: 30px;
    height: 100%;
}

.msg-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.msg-body {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}