/* Result Page CSS (Without Header & Footer) */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Hind Siliguri', 'SolaimanLipi', sans-serif;
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Year Tabs */
.year-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.year-tab {
    padding: 15px 30px;
    background: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 3px solid #0a5c36;
    color: #0a5c36;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.year-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.year-tab.active {
    background: #0a5c36;
    color: white;
    border-color: #0a5c36;
}

/* Introduction Section */
.intro-section {
    background: white;
    padding: 35px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
}

.intro-section h2 {
    color: #0a5c36;
    margin-bottom: 25px;
    font-size: 2rem;
    border-bottom: 4px solid #0a5c36;
    padding-bottom: 15px;
    display: inline-block;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .intro-content {
        grid-template-columns: 1fr 1fr;
    }
}

.intro-card {
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 6px solid #0a5c36;
    transition: transform 0.3s ease;
}

.intro-card:hover {
    transform: translateX(10px);
}

.intro-card h3 {
    color: #0a5c36;
    margin-bottom: 18px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.intro-card h3 i {
    color: #d4af37;
}

.intro-card p {
    color: #4a5568;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Admission Banner */
.admission-banner {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #000;
    padding: 35px;
    border-radius: 15px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.25);
}

.admission-banner::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.admission-banner h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #000;
    position: relative;
    font-weight: 700;
}

.admission-banner p {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #2d3748;
    font-weight: 500;
    position: relative;
}

.admission-btn {
    display: inline-block;
    background: #0a5c36;
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 3px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.admission-btn:hover {
    background: white;
    color: #0a5c36;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* Result Announcement */
.result-announcement {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
    padding: 35px;
    border-radius: 15px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(56, 161, 105, 0.25);
    position: relative;
    overflow: hidden;
}

.result-announcement::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.result-announcement h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    font-weight: 700;
}

.result-announcement p {
    font-size: 1.3rem;
    opacity: 0.95;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Result Content */
.result-content {
    display: none;
}

.result-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Madrasa Information */
.madrasa-info {
    background: white;
    padding: 35px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
}

.madrasa-info h3 {
    color: #0a5c36;
    margin-bottom: 25px;
    font-size: 1.8rem;
    border-bottom: 3px solid #0a5c36;
    padding-bottom: 12px;
    display: inline-block;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-item {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 5px solid #0a5c36;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
}

.info-item h4 {
    color: #0a5c36;
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.info-item p {
    color: #4a5568;
    font-size: 1.1rem;
}

/* Result Summary */
.result-summary {
    background: white;
    border-radius: 15px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.summary-header {
    background: linear-gradient(135deg, #0a5c36 0%, #064e3b 100%);
    color: white;
    padding: 25px;
    text-align: center;
}

.summary-header h3 {
    font-size: 1.9rem;
    margin-bottom: 10px;
}

.summary-details {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    background: #f8f9fa;
}

.summary-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-top: 6px solid #0a5c36;
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-8px);
}

.summary-card h4 {
    color: #0a5c36;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.summary-card .value {
    font-size: 3rem;
    font-weight: 800;
    color: #2d3748;
    margin: 15px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.summary-card .label {
    color: #718096;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Result Table */
.result-table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.table-header {
    background: linear-gradient(135deg, #0a5c36 0%, #064e3b 100%);
    color: white;
    padding: 25px;
    text-align: center;
}

.table-header h3 {
    font-size: 1.9rem;
}

.result-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.result-table thead {
    background: #2d3748;
    color: white;
}

.result-table th {
    padding: 18px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 3px solid #0a5c36;
}

.result-table tbody tr {
    border-bottom: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.result-table tbody tr:hover {
    background: #f0f9f0;
    transform: scale(1.005);
}

.result-table td {
    padding: 16px 12px;
    text-align: center;
    font-size: 1.05rem;
    border-bottom: 1px solid #e2e8f0;
}

/* Grade Styles */
.grade-a-plus {
    color: #38a169;
    font-weight: 800;
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    padding: 8px 16px;
    border-radius: 25px;
    display: inline-block;
    border: 2px solid #38a169;
}

.grade-a-minus {
    color: #d69e2e;
    font-weight: 800;
    background: linear-gradient(135deg, #fefcbf 0%, #faf089 100%);
    padding: 8px 16px;
    border-radius: 25px;
    display: inline-block;
    border: 2px solid #d69e2e;
}

.grade-b-minus {
    color: #ed8936;
    font-weight: 800;
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    padding: 8px 16px;
    border-radius: 25px;
    display: inline-block;
    border: 2px solid #ed8936;
}

/* Position Badges */
.position-badge {
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 25px;
    display: inline-block;
}

.position-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    border: 2px solid #d4af37;
}

.position-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #e0a970 100%);
    color: white;
    border: 2px solid #a0522d;
}

/* Footer Removed */
.footer {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .year-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .year-tab {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .intro-section,
    .madrasa-info,
    .result-summary,
    .result-table-container {
        padding: 20px;
    }
    
    .intro-card {
        padding: 20px;
    }
    
    .admission-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .summary-details {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .result-table {
        display: block;
        overflow-x: auto;
    }
    
    .result-table th,
    .result-table td {
        padding: 12px 8px;
        font-size: 0.95rem;
    }
    
    .summary-card .value {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .intro-card {
        padding: 15px;
    }
    
    .admission-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .summary-card {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
        padding: 10px;
    }
    
    .admission-banner,
    .year-tabs,
    .admission-btn {
        display: none;
    }
    
    .intro-section,
    .madrasa-info,
    .result-summary,
    .result-table-container {
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 20px;
        page-break-inside: avoid;
    }
    
    .result-table {
        font-size: 12px;
    }
}