@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --border-color: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --success: #22c55e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar Style */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    background-color: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Layout Container */
.container {
    max-width: 1100px;
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

/* Hero Section (index.html) */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: radial-gradient(circle at top, #1e293b 0%, var(--bg-main) 100%);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.hero-section h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.hero-section p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-secondary {
    background-color: transparent !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
}

.btn-secondary:hover {
    background-color: var(--bg-card) !important;
}

/* Form Styling (post_tuition.html) */
.form-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    max-width: 550px;
    margin: 0 auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.form-container h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

.btn-submit, .btn {
    width: 100%;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover, .btn:hover {
    background-color: var(--primary-hover);
}

.btn-submit:active, .btn:active {
    transform: scale(0.98);
}

/* Tuition Grid & Bidding Cards (tuition_list.html) */
.tuition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.tuition-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.2s ease;
}

.tuition-card:hover {
    border-color: var(--accent);
}

.tuition-card h3 {
    font-size: 18px;
    color: var(--accent);
}

.card-body p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.card-body strong {
    color: var(--text-main);
}

.bid-section {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 8px;
}

.bid-section h4 {
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--text-main);
}

/* Footer Styling */
.site-footer {
    background-color: var(--bg-card);
    color: var(--text-muted);
    padding: 40px 20px 20px 20px;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-col h3 {
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    margin: 6px 0;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.pay-badge {
    padding: 6px 12px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 12px;
    color: #ffffff;
}

.bkash { background-color: #e2136e; }
.nagad { background-color: #f7921e; }
.rocket { background-color: #8c3494; }
.card { background-color: #2563eb; }

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}