/* font */
@font-face {
    font-family: 'Nunito-Bold';
    src: url('../fonts/Nunito-Bold.ttf') format('truetype');
} /* for other text */
@font-face {
    font-family: 'Nunito-ExtraBold';
    src: url('../fonts/Nunito-ExtraBold.ttf') format('truetype');
} /* for sections */

/* for all elements */
*{
    font-family: 'Nunito-Bold';
}

/* variabes for theme colors */
:root{
    --hoverColor: rgb(203 204 205);
    --activeColorDropDown: rgb(221 223 226);
    --infoBorder: #d6dee5;
    --primaryColor: #007bff;
    --secondaryColor: #6c757d;
    --successColor: #28a745;
    --lightColor: #f8f9fa;
    --darkColor: #343a40;
}

/* ============================
    my-theme content
   ============================ */

/* section titles */
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6{
    font-family: "Nunito-ExtraBold";    
}

/* for buttons */
.my-theme .btn{
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.my-theme .btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* for form-controls */
.my-theme .form-control{
    border-radius: 10px;
    transition: all 0.3s ease;
}

.my-theme .form-control:focus{
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Navigation styles */

.navbar {
    background-color: var(--lightColor);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand img {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    /* remove border shadows outline */
}

.navbar-brand:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand img {
    width: 30px;
    height: 30px;
    border-radius: 0; /* remove border-radius */
    transition: transform 0.2s ease;
    text-decoration: none !important;
    outline: none !important;
    border: none !important;
}

.navbar-brand span {
    font-size: 1rem;
    font-weight: bold;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 70%;
}

/* NavbarBrand with logo */
.navbar-brand img {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    /* remove border shadows outline */
}

.navbar-brand:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand img {
    width: 30px;
    height: 30px;
    border-radius: 0; /* remove border-radius */
    transition: transform 0.2s ease;
    text-decoration: none !important;
    outline: none !important;
    border: none !important;
}

.navbar-brand span {
    font-size: 1rem;
    font-weight: bold;
}

/* Navigation responsive styles */

@media (max-width: 576px) {
    .navbar-nav {
        margin-top: 1rem;
    }
    
    .nav-link {
        text-align: center;
        margin: 0.25rem 0;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .navbar-brand img {
        width: 26px;
        height: 26px;
    }
    
    .navbar-brand span {
        font-size: 0.95rem;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .navbar-brand img {
        width: 28px;
        height: 28px;
    }
    
    .navbar-brand span {
        font-size: 0.98rem;
    }
}

/* focus */
.navbar-brand:focus {
    outline: 2px solid var(--primaryColor);
    border-radius: 4px;
}

/* ============================
    end
   ============================ */

/*figure images*/
.school-img{
    max-height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.newss-img{
    max-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* other links */
.link{
    text-decoration: none;
    transition: all 0.3s ease;
}
.link:hover{
    text-decoration: underline;
    color: var(--primaryColor);
    cursor: pointer;
}

/* for hero-section */
.bg-school-image{
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(../media/hero-section_main-page.jpg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 4rem 0;
}

/* for cards */
.card-feature {
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* link to hover animation */
    overflow: hidden;
    border: none;
}

.card-feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
} /* hover animation */

.card-feature__media {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 0.9rem 0.9rem 0 0;
    height: 220px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-feature:hover .card-feature__media {
    transform: scale(1.05);
}

/* for ul */
.ul-marked {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.ul-marked li {
    line-height: 1.8;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.ul-marked li::before {
    content: "–";
    position: absolute;
    left: 0;
}

/* btn with icons */

.btn i {
    font-size: 0.875em;
}

/* footer */
.footer {
    background-color: #343a40;
    color: white;
}

.footer h5 {
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #007bff;
}

/* footer links hover */
.hover-link{
    transition: color 0.3s ease;
}

.hover-link:hover {
    color: var(--primaryColor) !important;
    text-decoration: underline !important;
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #007bff !important;
}

/* MEDIA SCREENS */

/* remove indents from footer */
main {
    min-height: calc(100vh - 160px);
}

/* Ensuring the absence of horizontal scrolling when increasing the font size */
.font-large {
    overflow-x: hidden;
    word-wrap: break-word;
}

.font-large .container, .font-large .container-fluid {
    overflow-x: hidden;
    padding-left: 15px;
    padding-right: 15px;
}

/* Adaptive styles for document buttons */
.document-actions {
    display: flex;
    gap: 0.5rem;
}

.document-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.document-actions .btn i {
    font-size: 0.875em;
    margin-right: 0.25rem;
}

/* for auth forms */
main.form-auth {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* for alerts */
.alert {
    border-radius: 8px;
    font-size: 0.95rem;
    padding: 12px 16px;
    margin: 1rem auto;
    max-width: 600px;
    border: none;
}

/* for chats */

/* Adaptivity */
@media (max-width: 640px) {
    /* for mobiles */
    .empty-information {
        height: 40vh;
    }
    
    .bg-school-image {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    main {
        min-height: calc(100vh - 140px);
        overflow-x: hidden;
    }
    
    .document-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .document-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.5rem;
    }

    .footer {
        text-align: center;
    }
    
    .footer .col-md-4 {
        margin-bottom: 2rem;
    }
    
    .footer .text-md-end {
        text-align: center !important;
    }
    
    .footer .text-md-start {
        text-align: center !important;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    /* for tablets */
    .empty-information {
        height: 65vh;
    }
    
    .management-table {
        margin-bottom: 35px;
    }
    
    .card-feature__media {
        height: 200px;
    }
    
    main {
        min-height: calc(100vh - 150px);
        overflow-x: hidden;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* for small desktop */
    .empty-information {
        height: 65vh;
    }
    
    .management-table {
        margin-bottom: 35px;
    }
    
    .card-feature__media {
        height: 200px;
    }
}

@media (min-width: 1025px) {
    /* for large desktop */
    .navbar-nav {
        gap: 35px;
    }
}

/* for very small screens */
@media (max-width: 480px) {
    .document-title {
        font-size: 0.9rem;
    }
    
    .document-actions .btn {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
}