/* ============================================
   MyFRPs.com - Global Styles
   ============================================ */

/* === Base === */
body {
    padding-top: 50px;
    padding-bottom: 0;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    color: #333;
}

* {
    box-sizing: border-box;
}

.body-content {
    padding-left: 0;
    padding-right: 0;
}

.dl-horizontal dt {
    white-space: normal;
}

/* === Color Variables (used via classes) === */
.text-green { color: #369B47; }
.text-blue { color: #2E5090; }
.bg-green { background-color: #369B47; }
.bg-blue { background-color: #2E5090; }

/* === Buttons === */
.btn-green {
    background-color: #369B47;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-green:hover,
.btn-green:focus {
    background-color: #2e7d32;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}

.btn-outline-white {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 6px;
    padding: 0.55rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-outline-white:hover,
.btn-outline-white:focus {
    background-color: #fff;
    color: #333;
    text-decoration: none;
}

.btn-green-lg {
    background-color: #369B47;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-green-lg:hover,
.btn-green-lg:focus {
    background-color: #2e7d32;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* === Hero Banner === */
.hero-banner {
    background: linear-gradient(135deg, #2E5090 0%, #1a3560 60%, #162d4a 100%);
    color: #fff;
    padding: 80px 0 70px;
    margin-top: -70px;
    padding-top: 140px;
    text-align: center;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 32px;
    opacity: 0.85;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-outline-light {
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 6px;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s, border-color 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: rgba(255,255,255,0.12);
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 50px 0 40px;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* === Stats Bar === */
.stats-bar {
    background-color: #243f6f;
    color: #fff;
    padding: 0;
    border-bottom: 3px solid #369B47;
}

.stats-row {
    display: flex;
    justify-content: center;
    text-align: center;
}

.stats-bar .stat-item {
    flex: 0 0 auto;
    padding: 24px 50px;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.stats-bar .stat-item:last-child {
    border-right: none;
}

.stats-bar .stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.stats-bar .stat-label {
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .stats-row {
        flex-direction: column;
    }
    .stats-bar .stat-item {
        padding: 16px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .stats-bar .stat-item:last-child {
        border-bottom: none;
    }
}

/* === Project Card Grid (Home Page) === */
.project-grid {
    padding: 60px 0 50px;
    background: #f5f7fa;
}

.project-grid .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #2E5090;
    margin-bottom: 6px;
}

.project-grid .section-subtitle {
    text-align: center;
    color: #888;
    font-size: 1rem;
    margin-bottom: 40px;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e6ea;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    padding: 24px;
    margin-bottom: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    min-height: 240px;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.project-card .card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.project-card .card-tag {
    background: #eef2f7;
    color: #2E5090;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.project-card .card-status {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.project-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a2a3a;
    margin: 0 0 6px;
    line-height: 1.35;
}

.project-card .card-location {
    color: #369B47;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.project-card .card-scope {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.55;
    flex-grow: 1;
    margin-bottom: 14px;
}

.project-card .card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.project-card .card-date {
    color: #999;
    font-size: 0.78rem;
}

.project-card .btn-green.btn-sm {
    padding: 6px 16px;
    font-size: 0.82rem;
    border-radius: 4px;
}

.view-all-wrapper {
    text-align: center;
    margin-top: 30px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

.empty-state h3 {
    color: #2E5090;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state p {
    color: #888;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* === How It Works Section === */
.how-it-works {
    padding: 70px 0;
    background: #fff;
    text-align: center;
}

.how-it-works .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2E5090;
    margin-bottom: 50px;
}

.how-it-works .step {
    padding: 20px;
}

.how-it-works .step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2E5090;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.how-it-works .step h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a2a3a;
    margin-bottom: 8px;
}

.how-it-works .step p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* === CTA Section === */
.cta-section {
    background: linear-gradient(135deg, #369B47 0%, #2e7d32 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-section p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-green-lg {
    background: #fff;
    color: #2e7d32;
    font-weight: 700;
}

.cta-section .btn-green-lg:hover {
    background: rgba(255,255,255,0.9);
    color: #1b5e20;
}

/* === Footer === */
.site-footer {
    background: #141824;
    color: #ccc;
    padding: 40px 0 24px;
}

.site-footer .footer-brand {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: center;
}

.site-footer .footer-links li {
    display: inline-block;
    margin: 0 14px;
}

.site-footer .footer-links li a {
    color: #8a8fa0;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.site-footer .footer-links li a:hover {
    color: #fff;
}

.site-footer .footer-copy {
    text-align: center;
    font-size: 0.78rem;
    color: #555;
    border-top: 1px solid #252837;
    padding-top: 16px;
    margin-top: 8px;
}

/* === Login Page === */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
    padding: 40px 15px;
}

.login-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    padding: 40px;
    max-width: 420px;
    width: 100%;
}

.login-card .login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-card .login-header h2 {
    color: #2E5090;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.login-card .login-header p {
    color: #888;
    font-size: 0.9rem;
}

.login-card .form-group {
    margin-bottom: 18px;
}

.login-card label {
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 6px;
    display: block;
}

.login-card .form-control {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.login-card .form-control:focus {
    border-color: #369B47;
    box-shadow: 0 0 0 3px rgba(54, 155, 71, 0.15);
    outline: none;
}

.login-card .btn-login {
    background-color: #369B47;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-card .btn-login:hover {
    background-color: #2e7d32;
}

.login-card .login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #888;
}

.login-card .login-footer a {
    color: #369B47;
    font-weight: 500;
    text-decoration: none;
}

.login-card .login-footer a:hover {
    text-decoration: underline;
}

/* === Detail Layout Navbar === */
.detail-navbar {
    background-color: #2E5090 !important;
    border-color: #2E5090 !important;
}

.detail-navbar .navbar-brand {
    display: flex;
    align-items: center;
    padding: 5px 15px 5px 0;
}

.detail-navbar .navbar-brand img {
    height: 36px;
    width: auto;
}

.detail-navbar .navbar-nav > li > a {
    color: #fff !important;
    font-weight: 500;
    padding: 15px 14px;
    transition: background-color 0.3s;
}

.detail-navbar .navbar-nav > li > a:hover {
    background-color: rgba(255,255,255,0.1);
}

.detail-navbar .navbar-toggle {
    border-color: rgba(255,255,255,0.5);
}

.detail-navbar .icon-bar {
    background-color: #fff;
}

/* User greeting in navbar */
.nav-user-greeting {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.85rem;
    cursor: default !important;
}

.nav-user-greeting:hover {
    background-color: transparent !important;
}

/* === Project Search Page === */
.search-header {
    background: linear-gradient(135deg, #2E5090, #1a3560);
    color: #fff;
    padding: 30px 0;
    margin: -20px -15px 30px -15px;
    text-align: center;
}

.search-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.search-header p {
    opacity: 0.85;
    font-size: 1rem;
    margin: 0;
}

/* === Project Detail Page Sidebar === */
.detail-sidebar {
    background: #eef2f7;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #dce3ed;
}

.detail-sidebar p {
    margin-bottom: 14px;
    font-size: 0.92rem;
    line-height: 1.4;
}

.detail-sidebar b {
    color: #2E5090;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Detail page heading */
.detail-page-heading {
    color: #2E5090;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

/* === Responsive container for detail layout === */
.detail-body-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 70px 20px 20px;
}

/* === Kendo Grid Overrides (cleaner look) === */
.k-grid .k-grid-toolbar {
    background: #f5f7fa;
    border-bottom: 1px solid #ddd;
    padding: 12px;
}

.k-grid .k-grid-header th {
    background: #2E5090;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
}

/* === Content Pages (FAQ, Privacy, Terms, About, Contact, etc.) === */
.content-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.content-page h2 {
    color: #2E5090;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 3px solid #369B47;
}

.content-page h3 {
    color: #2E5090;
    font-weight: 600;
    font-size: 1.25rem;
    margin-top: 28px;
    margin-bottom: 12px;
}

.content-page p,
.content-page li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
}

.content-page a {
    color: #369B47;
    text-decoration: none;
}

.content-page a:hover {
    text-decoration: underline;
}

.content-page .faq-item {
    margin-bottom: 24px;
    padding: 20px 24px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2E5090;
}

.content-page .faq-item b,
.content-page .faq-item strong {
    color: #2E5090;
    font-size: 1rem;
}

/* === Modern Form Card (Register, Payment, Subscription) === */
.form-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 40px;
    max-width: 600px;
    margin: 30px auto 50px;
    margin-left: auto;
    margin-right: auto;
}

.form-card-wide {
    max-width: 800px;
}

.form-card h2,
.form-card h3 {
    color: #2E5090;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
}

.form-card h2 {
    font-size: 1.6rem;
}

.form-card h3 {
    font-size: 1.3rem;
}

.form-card .form-subtitle {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.form-card .form-group {
    margin-bottom: 16px;
}

.form-card label {
    font-weight: 500;
    color: #555;
    font-size: 0.88rem;
    margin-bottom: 5px;
    display: block;
}

.form-card .form-control {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-card .form-control:focus {
    border-color: #369B47;
    box-shadow: 0 0 0 3px rgba(54, 155, 71, 0.15);
    outline: none;
}

.form-card select.form-control {
    height: 42px;
}

.form-card .btn-submit {
    background-color: #369B47;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    margin-top: 8px;
}

.form-card .btn-submit:hover {
    background-color: #2e7d32;
}

.form-card .form-row {
    display: flex;
    gap: 16px;
}

.form-card .form-row .form-group {
    flex: 1;
}

.form-card .form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #888;
}

.form-card .form-footer a {
    color: #369B47;
    font-weight: 500;
    text-decoration: none;
}

.form-card .form-footer a:hover {
    text-decoration: underline;
}

/* Checkbox grid for state selection */
.state-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 16px;
}

.state-checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 400;
    color: #555;
    cursor: pointer;
    margin: 0;
}

.state-checkbox-grid input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #369B47;
}

/* Terms agreement box */
.terms-box {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    font-size: 0.82rem;
    color: #666;
    line-height: 1.6;
    background: #fafafa;
}

/* === Blue Button (used in forms) === */
.btn-blue {
    background-color: #2E5090;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

.btn-blue:hover,
.btn-blue:focus {
    background-color: #1a3560;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* === Kendo Grid Links === */
.k-grid a {
    color: #2E5090;
    text-decoration: none;
}

.k-grid a:hover {
    color: #369B47;
    text-decoration: underline;
}

.k-grid a:visited {
    color: #2E5090;
}

/* === Kendo Grid Pager === */
.k-grid .k-pager-wrap {
    background: #f8f9fa;
    border-top: 1px solid #e8e8e8;
}

/* === Subscription info card === */
.subscription-info {
    background: linear-gradient(135deg, #2E5090, #1a3560);
    color: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.subscription-info h3 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
}

.subscription-info p {
    opacity: 0.9;
    margin-bottom: 6px;
}

.subscription-info .price {
    font-size: 2rem;
    font-weight: 700;
    color: #369B47;
    background: #fff;
    display: inline-block;
    padding: 6px 20px;
    border-radius: 6px;
    margin-top: 10px;
}

/* === Payment Option Cards === */
.payment-options {
    margin-bottom: 20px;
}

.payment-option {
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
}

.payment-option:hover {
    border-color: #369B47;
}

.payment-option.selected {
    border-color: #369B47;
    background-color: #f0f9f1;
}

.payment-option input[type="radio"] {
    accent-color: #369B47;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 8px;
}

.payment-option .payment-option-label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    display: inline;
    margin: 0;
}

.payment-option .payment-detail {
    margin-left: 28px;
    font-size: 0.85rem;
    color: #888;
    margin-top: 4px;
}

/* === Total Amount Display === */
.total-display {
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 16px 0;
}

.total-display .total-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-display .total-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2E5090;
}

/* === Form Section Label === */
.form-section-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2E5090;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8e8e8;
}

/* === Features List (Registration) === */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.features-list li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 0.95rem;
    color: #444;
}

.features-list li:before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #369B47;
    font-weight: 700;
}

/* === Form Card Extra-Wide (for multi-column forms) === */
.form-card-xl {
    max-width: 960px;
}
