/* Root Variables for Domain Theme */
:root {
    --primary: #082144;
    --primary-light: #284875;
    --secondary: #e0f2ff;
    --accent: #d09e2f;
    --text-dark: #333;
    --text-light: #666;
    --white: #fff;
    /* --primary: #f27b2a;
    --primary-light: #f2861f;
    --secondary: #fff;
    --accent: #3d5469;
    --text-dark: #2a2b33;
    --text-light: #73848e;
    --white: #fff; */
}

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

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(
        135deg,
        var(--primary-light) 0%,
        var(--primary) 100%
    );
    min-height: 100vh;
}

a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.iti {
    width: 100%;
}
.iti__search-input {
    height: 3rem;
    padding: 8px;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
}
.navbar-brand {
    padding: 0;
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-light) !important;
}
.navbar-brand img {
    width: auto;
    height: 56px;
}
.navbar .navbar-brand img {
    background-color: #2a2b33;
    padding: 4px;
    border-radius: 4px;
}
.nav-contact {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    color: var(--text-dark);
    font-size: 0.9rem;
    align-items: center;
}
.footer .contact-item {
    color: var(--white);
}
.hero-section {
    text-align: center;
    padding: 4rem 0 2rem;
    color: var(--white);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: var(--primary-light);
    border: none;
    border-radius: 50px;
    padding: 0 2rem;
    color: var(--white);
    font-weight: 600;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-light);
}

.university-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.university-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--white);
}

.university-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    padding: 2rem;
    position: relative;
}

.university-logo {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2),
        0 0 10px rgba(255, 255, 255, 0.25), 0 0 20px rgba(255, 255, 255, 0.3);
}
.university-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.university-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}
.university-location {
    opacity: 0.9;
    font-size: 0.9rem;
}

.ranking-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-body {
    padding: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    text-align: center;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.info-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.fee-value {
    color: #28a745;
}

.score-value {
    color: var(--primary-light);
}

.rating-stars {
    color: #ffc107;
    margin-bottom: 0.5rem;
    align-items: center;
    display: flex;
    gap: 0.1rem;
    margin-bottom: 2px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.rating-stars svg {
    vertical-align: middle;
    fill: #fdc500;
    height: 1rem;
    width: 1.2rem;
}
.star-filled {
    color: #ffc200;
}

.star-empty {
    color: #e5e5e5;
}

.star-partial {
    color: #ffc200;
}
.approvals {
    background: var(--secondary);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.approvals-title {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.approval-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.approval-tag {
    background: var(--primary-light);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.card-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    flex: 1;
    transition: all 0.3s ease;
    color: var(--white);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    color: var(--white);
}
.btn:focus-visible {
    background-color: var(--white);
    color: #fff;
}
.btn-outline-custom {
    border: 2px solid var(--primary-light);
    color: var(--primary-light);
    background: transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    flex: 1;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--primary-light);
    color: var(--white);
}

.stats-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem 0;
    margin: 0 0 3rem 0;
}
.form-floating > .form-select {
    padding-top: 0px;
    padding-bottom: 4px;
}
.form-floating-v > .form-control-plaintext:focus,
.form-floating-v > .form-control-plaintext:not(:placeholder-shown),
.form-floating-v > .form-control:focus,
.form-floating-v > .form-control:not(:placeholder-shown) {
    padding-top: 0px;
    padding-bottom: 4px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    color: var(--white);
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.footer {
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h5 {
    margin-bottom: 1rem;
    color: var(--white);
}

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

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    border: none;
    padding: 2rem;
}

.modal-title {
    font-weight: 700;
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 2rem;
}

.form-floating {
    margin-bottom: 1rem;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 1rem;
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}
.rating-display {
    display: flex;
    font-size: 13px;
}
.rating-display .info-value {
    color: var(--white);
    font-size: 13px;
}
/* .r-mobile {
    display: none;
} */
.stats-section-mobile {
    display: none;
}
.r-big {
    display: none;
}
.btn.disabled,
.btn:disabled,
fieldset:disabled .btn {
    color: var(--white);
}
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .navbar-brand img {
        height: 40px;
    }
    .university-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nav-contact {
        flex-direction: column;
        gap: 3px;
    }

    .filters {
        gap: 0.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .card-actions {
        flex-direction: column;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .r-big {
        display: none;
    }
    .hero-section {
        padding-bottom: 0;
    }
    .r-mobile {
        display: flex;
        gap: 4px;
        font-size: 13px;
        margin-top: 4px;
    }
    .r-mobile .info-value {
        color: var(--white);
        font-size: 13px;
    }
    .card-header {
        padding: 1.5rem 1rem;
        display: flex;
        flex-direction: column;
    }
    .university-logo {
        width: 50px;
        height: 50px;
    }
    .university-name {
        font-size: 1rem;
        flex: 1 1 100%;
        margin-left: 70px;
        margin-top: -79px;
    }
    .university-location {
        margin-top: 2px;
    }
    .stats-section-bg {
        display: none;
    }
    .stats-section-mobile {
        display: block;
    }
    .approval-tags {
        justify-content: center;
    }
    .approvals-title {
        text-align: center;
    }
    .btn-primary-custom {
        padding: 0.5rem 1.5rem;
        font-size: 14px;
    }
    .university-grid {
        padding: 1rem 0;
    }
    .footer-section {
        text-align: center;
    }
    .footer-section .navbar-brand img {
        margin: auto;
    }
    .footer {
        margin-top: 2rem;
        padding: 1rem 0.5rem;
    }
    .footer-content {
        justify-content: center;
    }
}
