/* style.css */
:root {
    --primary-color: #4a90e2;
    --primary-dark: #357abd;
    --secondary-color: #2c3e50;
    --accent-color: #e67e22;
    --background-color: #f4f7f6;
    --text-color: #333;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Bar */
.top-bar {
    background-color: #0b2447;
    /* Dark blue from reference */
    color: #f6f1f1e4;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.top-contacts a {
    color: #fff;
    text-decoration: none;
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-socials a {
    color: #fff;
    margin-left: 15px;
}

/* Header & Banner */
.main-header {
    background-color:#010101ee;
    /* White background for nav area */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-area h1 {
    margin: 0;
    font-size: 20px;
    color: var(--primary-dark);
}

.main-menu {
    display: flex;
    gap: 5px;
}

.main-menu a {
    text-decoration: none;
    color:#f7f3f3;
    font-weight: 600;
    font-size: 12px;
    padding: 10px 12px;
    border-radius: 4px;
    /* Slight radius */
    transition: all 0.3s;
    text-transform: uppercase;
}

.main-menu a:hover,
.main-menu a.active {
    color: var(--primary-dark);
    background-color: transparent;
    /* No background, just text color change usually */
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(rgba(0, 33, 71, 0.7), rgba(0, 33, 71, 0.7)), url(img/top-banner.jpg);
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.banner-text {
    padding: 0;
    text-align: center;
}


.banner-text {
    text-align: center;
    padding: 60px 20px 80px;
}

.banner-text h1 {
    color: var(--white);
    font-size: 3em;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-text p {
    font-size: 1.2em;
    opacity: 0.9;
    margin-top: 10px;
}

/* Main Content Container */
.container {
    max-width: 900px;
    margin: -50px auto 50px;
    /* Overlap with banner */
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    flex: 1;
    width: 90%;
    position: relative;
    z-index: 10;
}

/* Footer */
.main-footer {
    background-color: #1a1a1a;
    color: #b0b0b0;
    padding: 60px 0 20px;
    font-size: 14px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 18px;
    position: relative;
    padding-bottom: 15px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    color: #888;
}

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
}


/* Common Text Styles */
h1,
h2 {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
}

/* Form Styles */
form {
    display: grid;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

input[type="text"],
input[type="date"],
input[type="file"] {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    border-color: var(--primary-color);
    outline: none;
}

button.btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(74, 144, 226, 0.3);
}

button.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Pagination & Table (Keeping previous styles compatible) */
.table-container {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid #eee;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

th {
    background-color: var(--secondary-color);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
}

tr:hover {
    background-color: #f8f9fa;
}

/* Certificate View */
.certificate-preview {
    border: 10px solid var(--secondary-color);
    padding: 40px;
    position: relative;
    background: var(--white);
    color: var(--secondary-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.student-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    margin-bottom: 20px;
}

.verification-badge {
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 20px;
}

.valid {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.invalid {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}





.nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: bold;
    padding: 10px 15px;
    border-radius: var(--radius);
    transition: background 0.3s;
}

.nav a:hover,
.nav a.active {
    background-color: var(--primary-color);
    color: var(--white);
}