/* Scholarship Page Styles */

:root {
    --primary-red: #8B1538;
    --light-gray: #f8f9fa;
    --dark-gray: #2c3e50;
    --medium-gray: #6c757d;
    --border-color: #e9ecef;
    --success-green: #28a745;
    --warning-orange: #fd7e14;
}

/* General Styles */
.scholarship-section {
    background-color: var(--light-gray);
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.section-subtitle {
    font-size: 18px;
    color: var(--medium-gray);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Scholarship Introduction */
.scholarship-intro {
    margin-bottom: 60px;
}

/* Scholarship Cards Container */
.scholarship-cards-container {
    margin-bottom: 40px;
}

.scholarship-cards-container .row {
    --bs-gutter-y: 15px;
    --bs-gutter-x: 0px;
    margin-bottom: -15px;
    gap: 10px;
    display: flex;
    flex-wrap: wrap;
}

.scholarship-cards-container .col-lg-6,
.scholarship-cards-container .col-md-6 {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex: 1;
    max-width: calc(50% - 5px);
    padding: 0;
    margin-bottom: 10px;
}

/* Individual Scholarship Card */
.scholarship-card {
    padding: 25px 20px;
    border-radius: 5px;
    width: 100%;
    min-height: 250px;
    position: relative;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.scholarship-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Light Card Style (Presidential style) */
.light-card {
    background: #f8f9fa;
    color: var(--dark-gray);
    border: 1px solid #e9ecef;
}

.light-card .scholarship-title {
    color: var(--dark-gray);
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: left;
}

.light-card .detail-label {
    color: var(--dark-gray);
    font-weight: 700;
}

.light-card .detail-value {
    color: var(--dark-gray);
}

/* Red Card Style (Innovation style) */
.red-card {
    background: var(--primary-red);
    color: #fff;
    border: 1px solid #721229;
}

.red-card .scholarship-title {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: left;
}

.red-card .detail-label {
    color: #fff;
    font-weight: 700;
}

.red-card .detail-value {
    color: #fff;
}

/* Scholarship Details */
.scholarship-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
    justify-content: space-evenly;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.detail-label {
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 0.5px;
}

.detail-value {
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
}

/* Category-specific colors */
.martyr {
    color: #dc3545 !important;
}

.defence {
    color: #007bff !important;
}

.single-parent {
    color: #6f42c1 !important;
}

.ecosystem {
    color: #20c997 !important;
}

.teachers {
    color: #fd7e14 !important;
}

.specially-abled {
    color: #e83e8c !important;
}

/* Tuition Fee Section */
.tuition-fee-section {
    margin-top: 80px;
}

.section-header h3 {
    font-size: 32px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.section-header p {
    font-size: 16px;
    color: var(--medium-gray);
}

/* Fee Table Container - Match Scholarship Table Style */
.fee-table-container {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

/* Fee Table Headers - Match Scholarship Table Style */
.fee-table thead th {
    background: var(--primary-red);
    color: #fff;
    padding: 20px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 2px solid #fff;
}

.fee-table thead th:last-child {
    border-right: none;
}

.faculty-header {
    text-align: left;
}

.fee-header {
    text-align: center;
}

.semester-header {
    text-align: center;
}

/* Fee Table Body - Match Scholarship Table Style */
.fee-table tbody td {
    padding: 20px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    vertical-align: middle;
    background: #f8f9fa;
}

.fee-table tbody td:last-child {
    border-right: none;
}

.fee-table tbody tr:hover td {
    background-color: rgba(139, 21, 56, 0.02);
}

.faculty-name {
    font-weight: 600;
    color: var(--primary-red);
    text-align: left;
    vertical-align: middle;
    background: #f8f9fa;
}

.fee-description {
    background: #f8f9fa;
    color: var(--dark-gray);
    line-height: 1.6;
    text-align: center;
}

.fee-amount {
    background: #f8f9fa;
    color: var(--dark-gray);
    text-align: right;
    font-weight: 600;
    font-size: 16px;
}

/* Total Row - Enhanced Style */
.total-row {
    background: var(--primary-red) !important;
}

.total-row td {
    background: var(--primary-red) !important;
    color: #fff !important;
    font-weight: 700;
    border-bottom: none !important;
    border-right: 2px solid #fff !important;
}

.total-row td:last-child {
    border-right: none !important;
}

.total-label {
    text-align: left;
    font-size: 16px;
}

.total-amount {
    text-align: right;
    font-size: 20px;
}

/* Additional Fees - Match Style */
.additional-fees {
    background: #2c3e50;
    border: 2px solid var(--border-color);
}

.additional-fee-row td {
    background: #2c3e50 !important;
    color: #fff !important;
    border-bottom: none !important;
    border-right: 2px solid #fff !important;
    padding: 20px;
}

.additional-fee-row td:last-child {
    border-right: none !important;
}

.additional-fee-label {
    font-weight: 600;
    text-align: left;
}

.additional-fee-description {
    text-align: center;
    line-height: 1.4;
}

.additional-fee-amount {
    text-align: right;
    font-weight: 700;
    font-size: 16px;
}

/* Call to Action */
.scholarship-cta {
    background: #fff;
    padding: 60px 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.scholarship-cta h3 {
    font-size: 32px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.scholarship-cta p {
    font-size: 18px;
    color: var(--medium-gray);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-red);
}

.btn-primary {
    background: var(--primary-red);
    color: #fff;
}

.btn-primary:hover {
    background: #a01d4a;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 21, 56, 0.3);
    color: #fff;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-red);
}

.btn-outline-primary:hover {
    background: var(--primary-red);
    color: #fff;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .section-title {
        font-size: 36px;
    }
    
    .scholarship-table thead th,
    .scholarship-table tbody td {
        padding: 15px;
    }
}

@media (max-width: 991px) {
    .section-title {
        font-size: 32px;
    }
    
    .table-header {
        padding: 25px 20px;
    }
    
    .table-header h3 {
        font-size: 24px;
    }
    
    .scholarship-card {
        padding: 22px 18px;
        min-height: 220px;
    }
    
    .scholarship-title {
        font-size: 20px !important;
        margin-bottom: 18px !important;
    }
    
    .detail-label {
        font-size: 13px;
    }
    
    .detail-value {
        font-size: 12px;
    }
    
    .scholarship-details {
        gap: 16px;
    }
}

/* Tablet Screens */
@media (max-width: 991px) and (min-width: 768px) {
    .scholarship-cards-container .row {
        gap: 8px;
    }
    
    .scholarship-cards-container .col-lg-6,
    .scholarship-cards-container .col-md-6 {
        max-width: calc(50% - 4px);
        padding: 0;
        margin-bottom: 8px;
    }
}

@media (max-width: 991px) {
    .fee-table thead th,
    .fee-table tbody td {
        padding: 15px 12px;
        border-right: 2px solid #fff;
    }
    
    .fee-table thead th:last-child,
    .fee-table tbody td:last-child {
        border-right: none;
    }
    
    .scholarship-cta {
        padding: 40px 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        min-width: 200px;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .table-header {
        padding: 20px 15px;
    }
    
    .table-header h3 {
        font-size: 22px;
    }
    
    .scholarship-card {
        padding: 20px 16px;
        min-height: 200px;
    }
    
    .scholarship-title {
        font-size: 18px !important;
        margin-bottom: 16px !important;
    }
    
    .detail-label {
        font-size: 12px;
    }
    
    .detail-value {
        font-size: 11px;
        line-height: 1.4;
    }
    
    .scholarship-details {
        gap: 14px;
    }
    
    .percentage {
        font-size: 16px;
    }
    
    .fee-table thead th {
        padding: 12px 10px;
        font-size: 12px;
        border-right: 2px solid #fff;
    }
    
    .fee-table thead th:last-child {
        border-right: none;
    }
    
    .fee-table tbody td {
        padding: 12px 10px;
        font-size: 13px;
        border-right: 2px solid #fff;
        border-bottom: 2px solid #fff;
    }
    
    .fee-table tbody td:last-child {
        border-right: none;
    }
    
    .scholarship-cta {
        padding: 30px 20px;
    }
    
    .scholarship-cta h3 {
        font-size: 26px;
    }
    
    .scholarship-cta p {
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .scholarship-table {
        font-size: 12px;
    }
    
    .scholarship-card {
        padding: 18px 15px;
        min-height: 180px;
    }
    
    .scholarship-title {
        font-size: 16px !important;
        margin-bottom: 14px !important;
    }
    
    .detail-label {
        font-size: 11px;
    }
    
    .detail-value {
        font-size: 10px;
        line-height: 1.3;
    }
    
    .scholarship-details {
        gap: 12px;
    }
    
    .fee-table {
        font-size: 12px;
    }
    
    .fee-table thead th {
        padding: 10px 8px;
        border-right: 2px solid #fff;
    }
    
    .fee-table thead th:last-child {
        border-right: none;
    }
    
    .fee-table tbody td {
        padding: 10px 8px;
        border-right: 2px solid #fff;
        border-bottom: 2px solid #fff;
    }
    
    .fee-table tbody td:last-child {
        border-right: none;
    }
    
    .total-amount {
        font-size: 16px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* Table Scrolling on Mobile */
@media (max-width: 768px) {
    .table-responsive {
        border-radius: 10px;
    }
    
    .scholarship-table,
    .fee-table {
        min-width: 600px;
    }
    
    /* Stack cards vertically on mobile */
    .scholarship-cards-container .row {
        gap: 8px;
        margin-bottom: -8px;
    }
    
    .scholarship-cards-container .col-lg-6,
    .scholarship-cards-container .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 8px;
        padding: 0;
    }
    
    .scholarship-card {
        min-height: 200px;
        margin-bottom: 0;
    }
}

/* Animation for cards and tables */
.scholarship-cards-container,
.fee-table-container {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.scholarship-card {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.5s ease forwards;
}

/* Staggered animation for cards */
.scholarship-card:nth-child(1) { animation-delay: 0.1s; }
.scholarship-card:nth-child(2) { animation-delay: 0.2s; }
.scholarship-card:nth-child(3) { animation-delay: 0.3s; }
.scholarship-card:nth-child(4) { animation-delay: 0.4s; }
.scholarship-card:nth-child(5) { animation-delay: 0.5s; }
.scholarship-card:nth-child(6) { animation-delay: 0.6s; }

.fee-table-container:nth-child(2) {
    animation-delay: 0.8s;
}

.fee-table-container:nth-child(3) {
    animation-delay: 1.0s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scholarship Rules & Refund Policy Section */
.scholarship-rules-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.scholarship-rules-section .section-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.scholarship-rules-section .section-header p {
    font-size: 16px;
    color: var(--medium-gray);
    margin-bottom: 0;
}

/* Scholarship Rules */
.scholarship-rules {
    margin-bottom: 50px;
}

.rules-list {
    max-width: 1000px;
    margin: 0 auto;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
    transition: all 0.3s ease;
}

.rule-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.rule-number {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-red);
    margin-right: 12px;
    min-width: 25px;
    flex-shrink: 0;
}

.rule-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--dark-gray);
    font-weight: 500;
}

/* Refund Policy */
.refund-policy-section {
    margin-top: 40px;
}

.refund-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 25px;
    text-align: center;
}

.refund-table-container {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.refund-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
}

.refund-table thead th {
    background: var(--primary-red);
    color: #fff;
    padding: 15px 12px;
    font-weight: 600;
    text-align: center;
    border-right: 2px solid #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.refund-table thead th:first-child {
    text-align: left;
    min-width: 200px;
}

.refund-table thead th:last-child {
    border-right: none;
}

.refund-table tbody tr {
    transition: background-color 0.3s ease;
}

.refund-table tbody tr:hover {
    background-color: rgba(139, 21, 56, 0.02);
}

.refund-table tbody td {
    padding: 15px 12px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    vertical-align: middle;
    text-align: center;
}

.refund-table tbody td:first-child {
    text-align: left;
}

.refund-table tbody td:last-child {
    border-right: none;
}

.fee-component {
    font-weight: 600;
    color: var(--dark-gray);
    background: #f8f9fa !important;
    font-size: 14px;
}

.non-refundable {
    background: #ffe6e6 !important;
    color: var(--primary-red);
    font-weight: 600;
    text-align: center !important;
    font-size: 14px;
}

.refund-percentage {
    background: #e8f5e8 !important;
    color: #2d5a2d;
    font-weight: 600;
    font-size: 14px;
}

.non-refundable-final {
    background: #ffe6e6 !important;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 13px;
}

/* Refund Terms & Conditions */
.refund-terms-section {
    margin-top: 40px;
    margin-bottom: 50px;
}

.refund-terms-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 25px;
    text-align: center;
}

.refund-terms-list {
    max-width: 1000px;
    margin: 0 auto;
}

.refund-term-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
    transition: all 0.3s ease;
}

.refund-term-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.term-number {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-red);
    margin-right: 12px;
    min-width: 25px;
    flex-shrink: 0;
}

.term-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--dark-gray);
    font-weight: 500;
}

.term-main {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.term-sub-list {
    margin-left: 20px;
    margin-top: 8px;
}

.term-sub-item {
    font-size: 14px;
    line-height: 1.5;
    color: var(--medium-gray);
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.term-sub-item:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: 600;
}

.term-sub-item:last-child {
    margin-bottom: 0;
}

/* Responsive Design for Refund Policy */
@media (max-width: 991px) {
    .scholarship-rules-section .section-header h3 {
        font-size: 28px;
    }
    
    .refund-title {
        font-size: 24px;
    }
    
    .refund-table {
        font-size: 13px;
    }
    
    .refund-table thead th,
    .refund-table tbody td {
        padding: 12px 8px;
    }
    
    .rule-item {
        padding: 12px 15px;
        margin-bottom: 12px;
    }
    
    .rule-text {
        font-size: 14px;
    }
    
    .refund-term-item {
        padding: 12px 15px;
        margin-bottom: 12px;
    }
    
    .refund-terms-title {
        font-size: 20px;
    }
    
    .term-text {
        font-size: 14px;
    }
    
    .term-sub-item {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .scholarship-rules-section {
        margin-top: 40px;
        margin-bottom: 40px;
    }
    
    .scholarship-rules-section .section-header h3 {
        font-size: 24px;
    }
    
    .refund-title {
        font-size: 22px;
    }
    
    .refund-table {
        font-size: 12px;
        min-width: 700px;
    }
    
    .refund-table thead th,
    .refund-table tbody td {
        padding: 10px 6px;
    }
    
    .rule-item {
        padding: 10px 12px;
        margin-bottom: 10px;
    }
    
    .rule-number {
        font-size: 15px;
    }
    
    .rule-text {
        font-size: 13px;
    }
    
    .refund-terms-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .refund-term-item {
        padding: 10px 12px;
        margin-bottom: 10px;
    }
    
    .term-text {
        font-size: 13px;
    }
    
    .term-sub-item {
        font-size: 12px;
    }
    
    .term-sub-list {
        margin-left: 15px;
    }
}

@media (max-width: 575px) {
    .scholarship-rules-section .section-header h3 {
        font-size: 22px;
    }
    
    .refund-title {
        font-size: 20px;
    }
    
    .refund-table {
        font-size: 11px;
        min-width: 650px;
    }
    
    .refund-table thead th,
    .refund-table tbody td {
        padding: 8px 4px;
    }
    
    .rule-item {
        padding: 8px 10px;
        margin-bottom: 8px;
    }
    
    .rule-number {
        font-size: 14px;
        min-width: 20px;
    }
    
    .rule-text {
        font-size: 12px;
    }
    
    .refund-terms-title {
        font-size: 16px;
        margin-bottom: 18px;
    }
    
    .refund-term-item {
        padding: 8px 10px;
        margin-bottom: 8px;
    }
    
    .term-number {
        font-size: 15px;
    }
    
    .term-text {
        font-size: 12px;
    }
    
    .term-sub-item {
        font-size: 11px;
    }
    
    .term-sub-list {
        margin-left: 12px;
        margin-top: 6px;
    }
}

/* Very Small Screens */
@media (max-width: 400px) {
    .scholarship-cards-container .row {
        gap: 6px;
        margin-bottom: -6px;
    }
    
    .scholarship-cards-container .col-lg-6,
    .scholarship-cards-container .col-md-6 {
        margin-bottom: 6px;
        padding: 0;
    }
    
    .scholarship-card {
        padding: 16px 12px;
        min-height: 160px;
    }
    
    .scholarship-title {
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }
    
    .detail-label {
        font-size: 10px;
    }
    
    .detail-value {
        font-size: 9px;
        line-height: 1.3;
    }
    
    .scholarship-details {
        gap: 10px;
    }
}
