/*
Theme Name: educationresult
Author: Ayan_Software_house
Description: A WordPress theme for displaying exam results similar to Bangladesh Technical Education Board
Version: 1.0
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
}

.site {
    max-width: 100%;
    margin: 0;
    background-color: #fff;
}

/* Header styles */
.site-header {
    background-color: #009B00;
    color: #ffffff;
    padding: 10px 0;
    text-align: center;
    border-bottom: 2px solid #ccc;
}

.header-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    text-align: center;
    margin-bottom: 10px;
}

.site-logo {
    max-width: 100px;
    height: 100px;
    width: 100px;
}

.custom-logo {
    max-width: 100px;
    height: 100px;
    width: 100px;
}

.ministry-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 5px 0;
    color: #ffffff;
}

.site-title {
    font-size: 1.8em;
    font-weight: bold;
    margin: 5px 0;
    color: #ffffff;
}

.result-title {
    font-size: 1.4em;
    font-weight: bold;
    margin: 10px 0;
    color: #ffffff;
}

/* Main content styles */
.site-content {
    padding: 20px;
    background-color: #f5f5f5;
    min-height: 70vh;
}

/* Search form styles */
.er-search-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 0;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.er-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 15px -10px;
}

.er-form-group {
    flex: 1 0 300px;
    padding: 0 10px;
    margin-bottom: 15px;
}

.er-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #000;
    font-size: 1.1em;
}

.er-form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #000;
    border-radius: 0;
    font-size: 14px;
    background-color: #fff;
}

.er-search-button {
    background-color: #009b00;
    color: white;
    padding: 10px 20px;
    border: 1px solid #000;
    border-radius: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 10px;
}

.er-search-button:hover {
    background-color: #007a00;
}

.er-search-certificate-image {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.er-search-certificate-image img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* Search results styles */
.er-search-results-container {
    margin-top: 30px;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 20px;
}

.er-result-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
}

.er-result-item table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.er-result-item table td {
    padding: 5px;
    border: none;
}

.er-result-item table td:first-child {
    width: 30%;
    font-weight: bold;
}

.er-result-item a {
    text-decoration: none;
    color: #000;
}

.er-result-item a:hover {
    text-decoration: underline;
}

/* Single result page styles */
.er-single-result-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
}

.er-result-header {
    background-color: #f5f5f5;
    color: #000;
    padding: 20px;
    border: 1px solid #ccc;
    margin-bottom: 30px;
}

.er-result-header h1 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.8em;
    color: #000;
    text-align: center;
}

.er-result-meta {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.er-result-meta td {
    padding: 8px;
    border: none;
}

.er-result-meta td:first-child {
    width: 30%;
    font-weight: bold;
}

.er-subjects-table {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
}

.er-subjects-table h2 {
    color: #000;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4em;
    text-align: center;
}

.er-subjects-list {
    width: 100%;
    border-collapse: collapse;
}

.er-subjects-list th,
.er-subjects-list td {
    padding: 12px;
    text-align: left;
    border: 1px solid #000;
}

.er-subjects-list th {
    background-color: #f5f5f5;
    color: #000;
    font-weight: bold;
}

.er-subjects-list tr:nth-child(even) {
    background-color: #f9f9f9;
}

.er-certificate-section {
    margin: 30px 0;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
}

.er-certificate-section h2 {
    color: #000;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4em;
    text-align: center;
}

.er-certificate-image {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.er-certificate-image img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    border-radius: 3px;
}

.er-certificate-preview {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.er-certificate-preview p {
    margin: 0 0 10px 0;
    font-weight: bold;
    color: #000;
}

.er-download-link {
    text-align: center;
    margin-top: 15px;
}

.er-download-link a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #009b00;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
}

.er-download-link a:hover {
    background-color: #007a00;
    text-decoration: none;
}

/* Footer styles */
.site-footer {
    background-color: #009B00;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    border-top: 2px solid #ccc;
    margin-top: 30px;
}

.site-footer a {
    color: #ffffff;
    text-decoration: underline;
}

.site-footer a:hover {
    color: #e0e0e0;
    text-decoration: none;
}

/* Table styles for search form */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-weight: bold;
}

table td {
    padding: 8px;
    border: 1px solid #000;
}

/* Responsive styles */
@media (max-width: 768px) {
    .er-form-row {
        flex-direction: column;
    }
    
    .er-form-group {
        flex: 1 0 100%;
    }
    
    .site-header,
    .site-content,
    .site-footer {
        padding: 10px;
    }
    
    .er-single-result-container,
    .er-search-container {
        padding: 15px;
    }
    
    .header-main {
        padding: 0 10px;
    }
    
    .er-result-item table td:first-child,
    .er-result-meta td:first-child {
        width: 40%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 992px) {
    .header-main {
        max-width: 750px;
        padding: 0 15px;
    }
    
    .er-search-container,
    .er-single-result-container {
        max-width: 750px;
        padding: 15px;
    }
    
    .site-title {
        font-size: 1.5em;
    }
    
    .result-title {
        font-size: 1.2em;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .header-main {
        max-width: 970px;
    }
    
    .er-search-container,
    .er-single-result-container {
        max-width: 970px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .header-main {
        max-width: 1170px;
    }
    
    .er-search-container,
    .er-single-result-container {
        max-width: 1170px;
    }
}

/* Small devices (phones, 576px and down) */
@media (max-width: 576px) {
    .site-header,
    .site-content,
    .site-footer {
        padding: 8px;
    }
    
    .er-search-container,
    .er-single-result-container {
        padding: 10px;
    }
    
    .er-search-button {
        width: 100%;
        padding: 12px;
        font-size: 18px;
    }
    
    table td {
        padding: 6px;
        font-size: 14px;
    }
    
    .site-title {
        font-size: 1.4em;
    }
    
    .result-title {
        font-size: 1.1em;
    }
}
