html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

* {
    font-family: 'IRANSans', tahoma;
    font-size: 13px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IRANSans', sans-serif;
    direction: rtl;
}

footer {
    background-color: #343a40;
    color: #fff;
    padding: 30px 0;
}

.footer-column h5 {
    border-bottom: 1px solid #777;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f5f5f5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.menu {
    display: flex;
    gap: 15px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    border-radius: 5px;
}

    .menu a {
        text-decoration: none;
        color: #333;
        font-weight: 500;
    }

        .menu a:hover {
            color: #007bff;
        }

.login-partial {
    direction: ltr !important;
    text-align: left;
}

.banner-caption-bottom-left {
    position: absolute;
    bottom: 15px;
    left: 25px;
    padding: 2px;
    border-radius: 3px;
    max-width: 300px;
    text-align: left;
}

    .banner-caption-bottom-left .btn {
        padding: 10px 25px;
        font-size: 18px;
    }

footer a {
    color: #f8f9fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

    footer a:hover,
    footer a:focus {
        color: #fff;
    }

.partner-logo {
    max-height: 80px;
    margin: 10px auto;
    /* filter: grayscale(100%); */
    transition: filter 0.3s ease, transform 0.3s ease;
    display: block;
}

    .partner-logo:hover {
        filter: grayscale(0%);
        transform: scale(1.05);
    }

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    padding: 10px;
}

.separator-text {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0 30px;
    color: #ff5722;
    font-weight: 600;
}

    .separator-text::before,
    .separator-text::after {
        content: "";
        flex: 1;
        border-bottom: 2px solid #ff5722;
        margin: 0 10px;
    }

.login-partial {
    margin-right: auto;
}

.navbar {
    border-radius: 5px;
    background-color: #fff;
}

.navbar-nav .nav-item {
    padding: 5px;
}

.navbar-toggler {
    border-radius: 50%;
    color: white;
}

    .navbar-toggler:hover {
        background-color: #0056b3;
    }

.nav-item a {
    color: black;
}


.bio-section {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-top: 2rem;
}

.bio-img {
    border-radius: 12px;
    max-height: 400px;
    object-fit: cover;
}

.section-title {
    color: #a30000;
    border-bottom: 2px solid #a30000;
    padding-bottom: .5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.info-list {
    list-style: none;
    padding: 0;
}

    .info-list li::before {
        content: "• ";
        color: #dc3545;
        font-weight: bold;
    }

.justified {
    text-align: justify;
}

.hero {
    background: linear-gradient(180deg, rgba(13,110,253,.08), rgba(13,110,253,.02));
}

.card-illus {
    min-height: 160px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="800" height="200"><rect width="100%" height="100%" fill="%23e9f0ff"/><text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-family="Vazirmatn,Arial" font-size="24" fill="%230b5ed7">جشنواره ملی علمی پژوهشی ایثار</text></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: .5rem
}

.rule-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 2px 6px rgba(16,24,40,.04)
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem
}