/* মূল স্টাইলশীট */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #1abc9c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Hind Siliguri', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* হেডার স্টাইল */
.main-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
    color: var(--accent-color);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--accent-color);
}

.login-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #16a085;
}

/* হিরো সেকশন */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)),
                url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #16a085;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* সেকশন কমন স্টাইল */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* পরিচিতি সেকশন */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--primary-color);
    font-weight: 500;
}

/* পরিচালকের বাণী */
.director-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.director-image {
    text-align: center;
}

.director-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent-color);
}

.director-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.director-text .designation {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.director-text p {
    line-height: 1.8;
    font-size: 1.1rem;
}

/* কোর্স কার্ড */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-10px);
}

.course-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.course-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.course-card > p {
    color: #666;
    margin-bottom: 1.5rem;
}

.course-subjects {
    list-style: none;
    text-align: left;
}

.course-subjects li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.course-subjects li:last-child {
    border-bottom: none;
}

/* পরীক্ষা সিস্টেম স্টেপস */
.system-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.step {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* পরিচালনা পর্ষদ */
.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.member {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.member:hover {
    transform: translateY(-5px);
}

.member-img {
    width: 120px;
    height: 120px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: var(--primary-color);
}

.member h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.member > p {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.member p:last-child {
    color: #666;
    font-size: 0.9rem;
}

/* ফুটার */
.main-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-info i {
    color: var(--accent-color);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* লগইন/রেজিস্ট্রেশন ফর্ম */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-form {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 500px;
}

.auth-form h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.select-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.form-links {
    text-align: center;
    margin-top: 1.5rem;
}

.form-links a {
    color: var(--secondary-color);
    text-decoration: none;
}

.form-links a:hover {
    text-decoration: underline;
}

/* ড্যাশবোর্ড কমন */
.dashboard-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 0;
}

.dashboard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.dashboard-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.dashboard-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.dashboard-nav a:hover {
    color: var(--accent-color);
}

.dashboard-content {
    padding: 2rem 0;
}

.dashboard-title {
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.card-header h3 {
    color: var(--primary-color);
}

.card-icon {
    color: var(--accent-color);
    font-size: 1.5rem;
}

/* টেবিল স্টাইল */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: var(--light-color);
    color: var(--primary-color);
    font-weight: 600;
}

.data-table tr:hover {
    background-color: #f9f9f9;
}

/* অ্যাকশন বাটন */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

/* পরীক্ষা পৃষ্ঠা */
.exam-container {
    max-width: 800px;
    margin: 0 auto;
}

.exam-header {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exam-info h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timer {
    background: var(--danger-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2rem;
}

.question-container {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.question-number {
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.question-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.options {
    display: grid;
    gap: 1rem;
}

.option {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.option:hover {
    background-color: #f9f9f9;
}

.option.selected {
    background-color: var(--light-color);
    border-color: var(--accent-color);
}

.option input {
    margin-right: 10px;
}

/* ফলাফল পৃষ্ঠা */
.result-summary {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    text-align: center;
}

.result-score {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 1rem 0;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-item {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

.result-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.question-review {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.review-item {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.review-item:last-child {
    border-bottom: none;
}

.correct-answer {
    color: var(--success-color);
    font-weight: bold;
}

.wrong-answer {
    color: var(--danger-color);
    font-weight: bold;
}

/* রেসপনসিভ ডিজাইন */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .director-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .director-image img {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .select-group {
        grid-template-columns: 1fr;
    }
    
    .dashboard-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dashboard-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .auth-form {
        padding: 2rem 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .system-steps {
        grid-template-columns: 1fr;
    }
    
    .management-grid {
        grid-template-columns: 1fr;
    }
}