:root {
    /* Brand Primary - Keep your red */
    --brand-primary: #ef5356;
    --brand-primary-dark: #d84346;
    --brand-primary-light: #ff6b6e;

    /* Charcoal & Gray - Professional & Modern */
    --brand-secondary: #37474f; /* Dark Gray - Professional */
    --brand-secondary-light: #546e7a; /* Medium Gray - Subtle */

    /* Neutral Background */
    --brand-accent: #f5f5f5; /* Light Gray Background */

    /* Status Colors */
    --brand-success: #388e3c; /* Deep Green - Success */
    --brand-warning: #f57c00; /* Deep Orange - Warning */

    /* Text Colors */
    --brand-text-dark: #263238; /* Dark Gray - Primary Text */
    --brand-text-light: #607d8b; /* Medium Gray - Secondary Text */

    /* Shadows */
    --brand-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --brand-shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.12);

    /* Gradients */
    --brand-gradient: linear-gradient(135deg, #ef5356 0%, #ff6b6e 100%);
    --brand-gradient-dark: linear-gradient(135deg, #d84346 0%, #ef5356 100%);

    /* Official Gradient - Dark Gray Gradient */
    --official-gradient: linear-gradient(135deg, #37474f 0%, #263238 100%);

    /* University Gradient - Red to Gray */
    --university-gradient: linear-gradient(135deg, #ef5356 0%, #37474f 100%);
}

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

body {
    font-family: "Vazirmatn", sans-serif;
    color: var(--brand-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #fefefe;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%23f8f9fa" width="100" height="100"/><path d="M0,0 L100,100 M100,0 L0,100" stroke="%23e9ecef" stroke-width="0.5"/></svg>');
    text-align: right;
}

h1,
h2,
h3,
h4,
h5,
.official-font {
    font-family: "Vazirmatn", sans-serif;
    font-weight: 700;
}

/* RTL specific styles */
.ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

.me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

.ms-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

.ms-3 {
    margin-right: 1rem !important;
    margin-left: 0 !important;
}

.text-end {
    text-align: left !important;
}

.text-start {
    text-align: right !important;
}

/* Official Banner */
.official-banner {
    background: var(--official-gradient);
    color: white;
    padding: 0.8rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.official-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Navigation */
.navbar {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.7rem 0;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.navbar-brand {
    font-family: "Vazirmatn", sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--brand-primary) !important;
    display: flex;
    align-items: center;
}

.navbar-brand span {
    color: var(--brand-secondary);
}

.nav-link {
    font-weight: 500;
    color: var(--brand-secondary) !important;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-primary) !important;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: all 0.3s ease;
    transform: translateX(50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.btn-official {
    background: var(--brand-gradient);
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 83, 86, 0.3);
}

.btn-official:hover {
    background: var(--brand-gradient-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 83, 86, 0.4);
}

.btn-university {
    background: var(--university-gradient);
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
}

.btn-university:hover {
    background: linear-gradient(135deg, #2d4a7c 0%, #3498db 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 54, 93, 0.4);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(
        135deg,
        rgba(239, 83, 86, 0.05) 0%,
        rgba(255, 255, 255, 1) 100%
    );
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(239, 83, 86, 0.08) 0%,
        transparent 70%
    );
    border-radius: 50%;
    z-index: 0;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--brand-secondary);
}

.hero-title span {
    color: var(--brand-primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--brand-text-light);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-badge {
    background: rgba(239, 83, 86, 0.1);
    color: var(--brand-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(239, 83, 86, 0.2);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--brand-text-light);
    margin-top: 0.5rem;
}

/* Important Notice Section */
.notice-section {
    background: white;
    padding: 3rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.notice-card {
    background: linear-gradient(
        135deg,
        rgba(26, 54, 93, 0.05) 0%,
        rgba(255, 255, 255, 1) 100%
    );
    border-radius: 12px;
    padding: 2rem;
    border-right: 5px solid var(--brand-primary);
}

.notice-icon {
    width: 60px;
    height: 60px;
    background: rgba(239, 83, 86, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.notice-icon i {
    font-size: 1.5rem;
    color: var(--brand-primary);
}

/* Search Section */
.search-section {
    padding: 5rem 0;
    background: white;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--brand-shadow-heavy);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(239, 83, 86, 0.1);
}

.search-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 6px;
    background: var(--brand-gradient);
}

.search-title {
    color: var(--brand-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.search-title i {
    margin-left: 10px;
    color: var(--brand-primary);
}

.search-subtitle {
    color: var(--brand-text-light);
    margin-bottom: 2rem;
}

/* UPDATED: Input Group with RTL border radius */
.input-group-official {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group-official .input-group-text {
    background-color: rgba(239, 83, 86, 0.1);
    border: 1px solid rgba(239, 83, 86, 0.2);
    border-left: 1px solid rgba(239, 83, 86, 0.2);
    border-top-right-radius: 0.375rem !important;
    border-bottom-right-radius: 0.375rem !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    color: var(--brand-primary);
    font-weight: 500;
}

.form-control-official {
    border: 1px solid rgba(239, 83, 86, 0.2);
    border-right: 1px solid rgba(239, 83, 86, 0.2);
    border-top-left-radius: 0.375rem !important;
    border-bottom-left-radius: 0.375rem !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s;
    text-align: right;
}

.form-control-official:focus {
    box-shadow: 0 0 0 0.25rem rgba(239, 83, 86, 0.15);
    border-color: var(--brand-primary);
    border-right-color: var(--brand-primary);
}

.input-group-official:focus-within .input-group-text {
    border-color: var(--brand-primary);
    border-left-color: var(--brand-primary);
}

/* UPDATED: Search Tabs - removed border-bottom from active */
.search-tabs {
    border-bottom: 2px solid rgba(239, 83, 86, 0.1);
    margin-bottom: 2rem;
}

.search-tabs .nav-link {
    border: none;
    color: var(--brand-text-light);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px 8px 0 0;
    margin: 0;
    position: relative;
}

.search-tabs .nav-link.active {
    color: var(--brand-primary);
    background-color: rgba(239, 83, 86, 0.05);
    /* Border bottom removed as requested */
}

.search-tabs .nav-link:hover {
    color: var(--brand-primary);
    background-color: rgba(239, 83, 86, 0.03);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Result Container */
.result-container {
    display: none;
    animation: fadeInUp 0.8s ease;
    max-width: 1000px;
    margin: 3rem auto;
}

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

.result-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--brand-shadow-heavy);
    overflow: hidden;
    border: 1px solid rgba(239, 83, 86, 0.1);
}

.result-header {
    background: var(--official-gradient);
    color: white;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.result-header::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    border-radius: 50%;
}

.result-badge {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.student-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.student-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.info-item {
    margin-bottom: 0.5rem;
}

.info-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
}

.status-passed {
    background-color: rgba(39, 174, 96, 0.2);
    color: var(--brand-success);
    border: 2px solid var(--brand-success);
}

.status-failed {
    background-color: rgba(239, 83, 86, 0.2);
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
}

.status-waiting {
    background-color: rgba(243, 156, 18, 0.2);
    color: var(--brand-warning);
    border: 2px solid var(--brand-warning);
}

.marks-container {
    padding: 2.5rem;
}

.marks-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    text-align: center;
}

.marks-table thead {
    background: var(--brand-secondary);
    color: white;
}

.marks-table th {
    padding: 1.2rem 1rem;
    text-align: center;
    font-weight: 600;
    border: none;
}

.marks-table th:first-child {
    text-align: right;
    padding-right: 1.5rem;
}

.marks-table td {
    padding: 1.2rem 1rem;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
}

.marks-table td:first-child {
    text-align: right;
    padding-right: 1.5rem;
    font-weight: 600;
}

.total-row {
    background-color: rgba(239, 83, 86, 0.05);
    font-weight: 700;
}

.total-row td {
    color: var(--brand-primary);
    font-size: 1.1rem;
}

/* Performance Summary */
.performance-summary {
    background-color: rgba(26, 54, 93, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
    border-right: 4px solid var(--brand-secondary);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.summary-item {
    text-align: center;
    padding: 1rem;
}

.summary-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-secondary);
    line-height: 1;
}

.summary-label {
    font-size: 0.9rem;
    color: var(--brand-text-light);
    margin-top: 0.5rem;
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 4rem 0;
    border-top: 1px solid #e9ecef;
}

.faq-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(239, 83, 86, 0.1);
    box-shadow: var(--brand-shadow);
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--brand-shadow-heavy);
}

.faq-icon {
    width: 60px;
    height: 60px;
    background: rgba(239, 83, 86, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.faq-icon i {
    font-size: 1.5rem;
    color: var(--brand-primary);
}

.accordion-button {
    text-align: right;
    padding: 1.2rem 1.25rem;
    font-weight: 600;
    color: var(--brand-secondary);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(239, 83, 86, 0.05);
    color: var(--brand-primary);
    box-shadow: none;
}

.accordion-button::after {
    margin-left: 0;
    margin-right: auto;
    transform: rotate(180deg);
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(90deg);
}

.accordion-body {
    text-align: right;
    padding: 1.2rem 1.25rem;
    color: var(--brand-text-light);
}

/* University Registration Section - PROFESSIONAL DESIGN */
.university-section {
    background: linear-gradient(
        135deg,
        rgba(239, 83, 86, 0.02) 0%,
        rgba(255, 255, 255, 1) 100%
    );
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.university-section::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(26, 54, 93, 0.05) 0%,
        transparent 70%
    );
    border-radius: 50%;
    z-index: 0;
}

.university-section::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(
        circle,
        rgba(239, 83, 86, 0.05) 0%,
        transparent 70%
    );
    border-radius: 50%;
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.section-title {
    color: var(--brand-secondary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.section-subtitle {
    color: var(--brand-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.university-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--brand-shadow);
    border-top: 6px solid var(--brand-secondary);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    border: 1px solid rgba(239, 83, 86, 0.1);
}

.university-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--brand-shadow-heavy);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(239, 83, 86, 0.1);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: rgba(239, 83, 86, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
}

.card-icon i {
    font-size: 1.8rem;
    color: var(--brand-primary);
}

.card-title {
    color: var(--brand-secondary);
    margin-bottom: 0;
    font-weight: 700;
    font-size: 1.5rem;
}

.welcome-box {
    background: linear-gradient(
        135deg,
        rgba(26, 54, 93, 0.05) 0%,
        rgba(255, 255, 255, 1) 100%
    );
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border-right: 5px solid var(--brand-primary);
    position: relative;
    overflow: hidden;
}

.welcome-box::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to left, rgba(239, 83, 86, 0.05), transparent);
}

.welcome-title {
    color: var(--brand-secondary);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.welcome-title i {
    margin-left: 10px;
    color: var(--brand-primary);
}

.info-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.info-list li {
    padding: 1rem;
    margin-bottom: 0.8rem;
    background-color: rgba(239, 83, 86, 0.05);
    border-radius: 10px;
    border-right: 4px solid var(--brand-primary);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.info-list li:hover {
    background-color: rgba(239, 83, 86, 0.08);
    transform: translateX(-5px);
}

.info-list i {
    margin-left: 12px;
    color: var(--brand-primary);
    font-size: 1.1rem;
}

.fee-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    margin-top: 1.5rem;
}

.fee-table thead {
    background: var(--brand-secondary);
    color: white;
}

.fee-table th {
    padding: 1.2rem 1rem;
    text-align: right;
    font-weight: 600;
    border: none;
}

.fee-table td {
    padding: 1.2rem 1rem;
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
}

.fee-table tfoot {
    background-color: rgba(239, 83, 86, 0.05);
    font-weight: 700;
}

.fee-table tfoot td {
    color: var(--brand-primary);
    font-size: 1.1rem;
}

.contact-card {
    background: var(--official-gradient);
    color: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 2rem;
    box-shadow: var(--brand-shadow-heavy);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-card::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    border-radius: 50%;
}

.contact-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-numbers {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.contact-number {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-number:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.contact-number i {
    margin-left: 10px;
    font-size: 1.2rem;
}

/* Important Dates */
.dates-section {
    background: white;
    padding: 4rem 0;
    border-top: 1px solid #e9ecef;
}

.dates-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(239, 83, 86, 0.1);
    box-shadow: var(--brand-shadow);
}

.dates-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--brand-shadow-heavy);
}

.date-icon {
    width: 60px;
    height: 60px;
    background: rgba(239, 83, 86, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.date-icon i {
    font-size: 1.5rem;
    color: var(--brand-primary);
}

/* Footer */
.footer-section {
    background: var(--official-gradient);
    color: white;
    padding: 4rem 0 2rem;
}

/* Fluid container for footer */
.footer-container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 1200px) {
    .footer-container-fluid {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .footer-container-fluid {
        max-width: 1320px;
    }
}

.footer-logo {
    font-family: "Vazirmatn", sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-logo span {
    color: var(--brand-primary);
}

.footer-links h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--brand-primary);
}

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

/* Loader */
.official-loader {
    display: none;
    width: 80px;
    height: 80px;
    margin: 2rem auto;
    position: relative;
}

.official-loader:before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 8px solid rgba(239, 83, 86, 0.1);
    border-top-color: var(--brand-primary);
    animation: official-spin 1.2s linear infinite;
}

@keyframes official-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Toast Notification */
.toast-container {
    z-index: 1050;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .official-banner .container {
        justify-content: center;
        text-align: center;
    }

    .official-banner .d-flex {
        justify-content: center;
        margin-top: 0.5rem;
    }

    .contact-numbers {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .search-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .search-card {
        padding: 2rem;
    }

    .student-name {
        font-size: 1.8rem;
    }

    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }

    .university-card {
        padding: 1.5rem;
    }

    .welcome-box {
        padding: 1.5rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-icon {
        margin-bottom: 1rem;
        margin-left: 0;
    }

    .search-tabs {
        flex-direction: column;
    }

    .search-tabs .nav-link {
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
}

@media print {
    .no-print {
        display: none !important;
    }

    .result-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .result-header {
        background: white !important;
        color: black !important;
        border-bottom: 2px solid var(--brand-primary);
    }

    .info-label {
        color: #666 !important;
    }

    .info-value {
        color: black !important;
    }

    .result-badge {
        background: white !important;
        color: black !important;
        border: 1px solid #ddd !important;
    }
}
