html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
/* ===== GLOBAL ===== */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f7fbff;
    color: #1c1c1c;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ===== STICKY HEADER ===== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: linear-gradient(90deg, #0a1f44, #1e5eff);
    padding: 18px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
}

nav a {
    color: white;
    margin-left: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
}

nav a:hover {
    color: #dbe9ff;
}

.btn-nav {
    background: white;
    color: #1e5eff;
    padding: 8px 18px;
    border-radius: 6px;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1e5eff, #4da3ff);
    color: white;
    padding: 120px 20px 0 20px;
    text-align: center;
    overflow: hidden;
}

.hero h1 {
    font-size: 46px;
    font-weight: 700;
}

.hero p {
    margin-top: 15px;
    font-size: 18px;
    opacity: 0.95;
}

.hero-buttons {
    margin-top: 30px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    margin: 10px;
    display: inline-block;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-primary {
    background: white;
    color: #1e5eff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: #0a1f44;
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-3px);
}

/* Floating Shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
}

.shape1 {
    width: 200px;
    height: 200px;
    background: white;
    top: 40px;
    left: -60px;
}

.shape2 {
    width: 150px;
    height: 150px;
    background: white;
    bottom: 100px;
    right: -40px;
}

/* Wave */
.wave svg {
    display: block;
    margin-top: 50px;
}

/* ===== CARDS ===== */
.boards {
    padding: 80px 0;
    text-align: center;
}

/* ===== PERFECT 3 + 2 CENTERED LAYOUT ===== */
/* ===== FIXED 3 + 2 CENTERED CLEAN ===== */
/* ===== BOARDS SECTION FINAL CLEAN ===== */

.boards {
    padding: 100px 0;
    background: #f7fbff;
    text-align: center;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Row layout */
.board-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

/* Card style */
.card {
    background: white;
    padding: 30px;
    width: 250px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(30,94,255,0.1);
    font-weight: 600;
    text-align: center;
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
}

/* ===== FEATURES ===== */
.features {
    background: #eef5ff;
    padding: 80px 0;
    text-align: center;
}

.feature-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-card {
    background: white;
    padding: 30px;
    width: 260px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(30,94,255,0.1);
    transition: 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
}

/* ===== FOOTER ===== */
.main-footer {
    background: #0a1f44;
    color: white;
    text-align: center;
    padding: 18px 0;
}

@media (max-width: 768px) {
    .board-row {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== LOGO ===== */

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

/* ===== CONTACT PAGE ===== */

.contact-section {
    padding: 100px 0;
    background: #f7fbff;
}

.contact-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
    color: #555;
}

.contact-wrapper {
    display: flex;
    gap: 50px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 280px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-form {
    flex: 1;
    min-width: 320px;
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(30,94,255,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e5eff;
}

/* ===== CONTACT BUTTON FIX ===== */

.contact-form button {
    display: inline-block;
    background: linear-gradient(135deg, #1e5eff, #4da3ff);
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30,94,255,0.3);
}
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
    }
}
/* Footer link styling */
.footer-link {
    color: #4da3ff;
    text-decoration: none;
    font-weight: 500;
}

.footer-link:hover {
    text-decoration: underline;
}
.grid-3, .grid-4 {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.grid-3 .card {
    width: 280px;
}

.grid-4 .card {
    width: 240px;
}

.center-btn {
    text-align: center;
    margin-top: 40px;
}

.hero-tagline {
    margin-top: 20px;
    opacity: 0.9;
}

/* Section Title & Subtitle Center Alignment */

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px auto;
    color: #555;
}

/* ===== FIX CTA ALIGNMENT ===== */

.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e5eff, #4da3ff);
    text-align: center;   /* THIS centers everything */
    color: white;
}

.cta-section h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 25px auto;  /* Centers paragraph */
}

.cta-section .btn-primary {
    margin-top: 15px;
}

.cta-small {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.9;
}

/* ===== COURSES PAGE ===== */

.courses-page {
    padding: 100px 0;
    background: #f7fbff;
}

.course-category {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin: 60px 0 30px 0;
    position: relative;
}

.course-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.course-card {
    background: white;
    width: 300px;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(30,94,255,0.1);
    transition: 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card h4 {
    margin-bottom: 10px;
}

.course-card ul {
    margin: 15px 0;
    padding-left: 18px;
}

.course-price {
    font-weight: 600;
    margin-bottom: 15px;
    color: #1e5eff;
}

/* ===== COURSE FILTER DESIGN ===== */

.course-filter {
    margin: 40px 0 60px 0;
    text-align: center;
}

.filter-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Dropdown Styling */
.course-filter select {
    padding: 12px 18px;
    min-width: 170px;
    border-radius: 8px;
    border: 2px solid #1e5eff;
    background: white;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: 0.3s ease;
}

.course-filter select:focus {
    border-color: #0a1f44;
    box-shadow: 0 0 0 3px rgba(30,94,255,0.2);
}

/* Button Styling */
.filter-btn {
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #1e5eff, #4da3ff);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30,94,255,0.3);
}
/* REGISTER PAGE LAYOUT */

.register-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
}

.summary-card,
.form-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(30,94,255,0.08);
}

.summary-card {
    width: 35%;
}

.form-card {
    width: 60%;
}

.summary-card h3,
.form-card h3 {
    margin-bottom: 20px;
}

.summary-card p {
    margin: 10px 0;
}

.highlight-price {
    color: #1e5eff;
    margin-top: 10px;
}

.form-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 14px;
}

.form-card input:focus {
    border-color: #1e5eff;
    outline: none;
}

.form-card button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
}

/* Mobile Responsive */
@media(max-width: 768px) {
    .register-wrapper {
        flex-direction: column;
    }

    .summary-card,
    .form-card {
        width: 100%;
    }
}
/* Secure Badge */

.secure-badge {
    background: linear-gradient(135deg, #1e5eff, #3c7dff);
    color: white;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 20px;
}

.trust-info {
    margin-top: 20px;
    font-size: 13px;
    color: #555;
}

.dashboard-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(30,94,255,0.08);
    max-width: 600px;
    margin: 40px auto;
}

.dashboard-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    margin-top: 30px;
}

.card-title {
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.detail-box {
    background: #f9fafc;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.detail-box .label {
    font-size: 13px;
    color: #777;
    margin-bottom: 8px;
}

.detail-box .value {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.highlight {
    background: linear-gradient(135deg, #4f7cff, #6fa8ff);
    color: white;
}

.highlight .label,
.highlight .value {
    color: white;
}

.status-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
}

/* Status colors */
.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.approved {
    background: #d4edda;
    color: #155724;
}

.status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}
.btn-pay {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-pay:hover {
    background: #218838;
}
.btn-nav {
    background: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

a[href="logout.php"] {
    background: #dc3545;
    color: white !important;
}
.logout-btn {
    background: #dc3545;
    color: white !important;
}

.logout-btn:hover {
    background: #c82333;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th, 
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.admin-table th {
    background: #f4f6f9;
    font-weight: 600;
}

.btn-approve,
.btn-reject {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-weight: 500;
}

.btn-approve {
    background: #22c55e;
}

.btn-approve:hover {
    background: #16a34a;
}

.btn-reject {
    background: #ef4444;
}

.btn-reject:hover {
    background: #dc2626;
}
.subject-badge {
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}
/* LOGIN PAGE */

.login-section {
    padding: 60px 0;
}

.login-card {
    max-width: 500px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.login-form .input-group {
    margin-bottom: 20px;
}

.login-form label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    color: #444;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: 0.3s;
}

.login-form input:focus {
    border-color: #4f7cff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79,124,255,0.1);
}

.full-btn {
    width: 100%;
    margin-top: 10px;
}

.error-box {
    background: #ffe3e3;
    color: #b02a37;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}
.welcome-user {
    margin-right: 15px;
    font-weight: 500;
    color: white;
}
/* ADMIN PANEL */

.saas-wrapper {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

.admin-sidebar {
    width: 230px;
    background: #1e2a38;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.admin-logo {
    color: white;
    margin-bottom: 30px;
}

.admin-sidebar a {
    color: #cfd8dc;
    text-decoration: none;
    padding: 10px 0;
    font-size: 14px;
    transition: 0.3s;
}

.admin-sidebar a:hover {
    color: #ffffff;
}

.logout-link {
    margin-top: auto;
    color: #ff6b6b !important;
}

.admin-content {
    flex: 1;
    background: #f4f6f9;
    padding: 30px;
}

.admin-topbar {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 600;
}
/* SAAS LAYOUT */

.saas-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f4f7fb;
}

.saas-sidebar {
    width: 240px;
    background: linear-gradient(180deg, #1f2937, #111827);
    padding: 25px;
    color: white;
}

.saas-sidebar .brand {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
}

.saas-sidebar nav a {
    display: block;
    color: #cbd5e1;
    padding: 10px 0;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.saas-sidebar nav a:hover {
    color: white;
}

.logout-btn {
    margin-top: 30px;
    color: #f87171 !important;
}

.saas-main {
    flex: 1;
    padding: 25px 30px;
    overflow-y: auto;
    overflow-x: hidden;
}

.saas-topbar {
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* STATS CARDS */
.stat-card {
    padding: 18px 20px;
    border-radius: 12px;
    color: white;
    height: 95px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
}

.stat-card h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.stat-card p {
    font-size: 13px;
    opacity: 0.9;
}

.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.green { background: linear-gradient(135deg, #10b981, #059669); }
.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    font-size: 14px;
}

/* TABLE CONTAINER */
.table-container {
    width: 100%;
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* TABLE */
.admin-table {
    width: 100%;
    min-width: 900px; /* important */
    border-collapse: collapse;
    font-size: 14px;
}

/* HEADER */
.admin-table thead {
    background: #f1f5f9;
}

.admin-table th {
    padding: 14px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

/* BODY */
.admin-table td {
    padding: 14px;
    border-top: 1px solid #eee;
    white-space: nowrap;
}

/* Hover effect */
.admin-table tbody tr:hover {
    background: #f9fafb;
}

/* Prevent ugly line breaks */
.admin-table td:first-child {
    font-weight: 500;
    white-space: nowrap;
}

.admin-table td:nth-child(2) {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Subjects formatting */
.admin-table td:nth-child(5) {
    color: #555;
}

/* Action buttons aligned */
.admin-table td:last-child {
    display: flex;
    gap: 8px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
.admin-table {
    width: 100%;
    table-layout: auto;
}
.admin-table {
    width: 100%;
    
}

.admin-table td,
.admin-table th {
    overflow: hidden;
    text-overflow: ellipsis;
}
body {
    background: #f4f7fb;
}
.table-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.search-box {
    width: 280px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: 0.3s;
}

.search-box:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.export-btn {
    background: #2563eb;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.export-btn:hover {
    background: #1d4ed8;
}
.delete-btn {
    background: #ef4444;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.delete-btn:hover {
    background: #dc2626;
}