/* ==========================================================================
   SELA Civil Advisory Ltd - Flat Responsive Core Styles
   ========================================================================== */

:root {
    --primary-color: #1a6c7a;
    --dark-blue: #000f2b;
    --text-color: #111111;
    --white: #ffffff;
}

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

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: url('../img/sela_header.jpg') no-repeat center center fixed;
    background-size: cover;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* Master Header */
.site-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-box {
    display: flex;
    align-items: center;
}

.site-logo {
    width: 180px;
    height: 55px;
    display: block;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.main-nav a {
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.2rem 0;
    transition: color 0.2s;
}

.main-nav a:hover, 
.main-nav a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.header-auth-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 15, 43, 0.15);
    font-size: 0.85rem;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--dark-blue);
}

.auth-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #a0aec0;
}

.auth-badge-dot.active {
    background-color: #38a169;
}

.main-wrapper {
    flex: 1 0 auto; 
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
}

.container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.main-content {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-wrapper {
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.hero-glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 4.5rem 2.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-glass-card h1 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--dark-blue);
    font-size: 2.8rem;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.hero-glass-card p {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.5;
}

.page-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--dark-blue);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

/* Course Cards */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.course-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 15, 43, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.course-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.course-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--dark-blue);
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.course-desc {
    color: #444444;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.course-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    width: 100%;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #145560;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--dark-blue);
    border: 1px solid var(--dark-blue);
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: rgba(0, 15, 43, 0.05);
}

.btn-danger {
    display: inline-block;
    background-color: #e53e3e;
    color: #ffffff;
    border: none;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.btn-danger:hover {
    background-color: #c53030;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #cbd5e0;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    margin-bottom: 1.25rem;
    transition: background-color 0.2s;
}

.btn-google:hover {
    background-color: #f7fafc;
}

/* Forms & Tabs */
.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: var(--dark-blue);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #cbd5e0;
    font-size: 1rem;
    font-family: inherit;
    background: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    cursor: pointer;
    font-weight: 700;
    color: #718096;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Admin Grid / Panels */
.admin-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
}

.admin-grid-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .admin-grid-form {
        grid-template-columns: 1fr;
    }
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #fff;
}

.admin-table th, .admin-table td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table th {
    background: #f7fafc;
    color: var(--dark-blue);
    font-weight: 700;
}

/* Modal Box Engine */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 15, 43, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.modal-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--dark-blue);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.modal-message {
    font-size: 1rem;
    color: #333333;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.site-footer {
    margin-top: auto; 
    flex-shrink: 0;
    text-align: center;
    padding: 1.5rem 1rem; 
    font-size: 0.85rem;
    color: #222222;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
    .main-nav {
        flex-direction: column;
        gap: 0.8rem;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }
    .hero-glass-card {
        padding: 3rem 1.5rem;
    }
    .hero-glass-card h1 {
        font-size: 2.1rem;
    }
}