:root {
    --color1: #145DA0;
    --color2: #0C2D48;
    --color3: #2E8BC0;
    --color4: #B1D4E0;
}

@font-face {
    font-family: Estedad;
    src: url(../fonts/Estedad[KSHD,wght].ttf);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: Estedad, 'Segoe UI', Tahoma, sans-serif;
    background: #ecedee;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
    color: #1a202de3;
}

    h1 {
        color: white;
        font-size: 1.4rem;
        border-radius: 10px 10px 10px 10px;
        background-color: #264b7c;
        margin-block-end: 10px;
        font-weight: 700;
        text-align: center;
        padding: 10px;
    }

h2 {
    font-size: 1.3rem;
}

h3 {
    font-size: 1.1rem;
}

h4 {
    font-size: 0.8rem;
}

h5 {
    font-size: 0.6rem;
}

h6 {
    font-size: 0.3rem;
}

a {
    color: #0d3c86;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: #145DA0;
}

#up {
    display: none;
    position: fixed;
    bottom: 30px;
    /* فاصله از پایین: بالای فوتر قرار می‌گیرد */
    right: 30px;
    z-index: 1000;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background:var(--color2);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

#up:hover {
    background: rgba(12, 45, 72, 0.9);
    transform: translateY(-3px) scale(1.1);
}


aside,
article {
    background-color: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

p {
    line-height: 1.7;
}

/* website structure */

main {
    width: 950px;
    min-height: 1000px;
    margin: 0 auto;
    padding: 10px;
    background-clip: padding-box;
}
    

header {
    min-height: 150px;
    margin-block-end: 10px;
}

aside {
    width: 200px;
    min-height: 720px;
    float: right;
    padding: 10px;
    font-size: 0.9rem;
    text-align: justify;
}

article {
    min-height: 720px;
    width: 718px;
    float: right;
    margin-inline-start: 10px;
    padding: 15px;
}

footer {
    margin-block-start: 10px;
    min-height: 100px;
    text-align: center;
    direction: ltr;
    padding: 10px;
}

#main-menu {
    display: none;
}
/*
#main-menu ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
}

#main-menu ul li a {
    border-inline-start: 5px solid #2E8BC0;
    background-color: #145DA0;
    padding: 3px 10px;
    margin: 3px 0px;
    color: #2E8BC0;
    width: 100%;
    height: 100%;
    display: block;
    transition: 0.3s;
}

#main-menu ul li a:hover {
    background-color: #B1D4E0;
    border-inline-start: 10px solid #145DA0;
    box-shadow: -5px -5px 0px #0C2D48;
}

#nav ul {
    list-style-type: none;
    padding: 0px;
    margin: 0px;
    text-align: center;
}

#nav ul li {
    display: inline-block;
    font-weight: 100;
}

#nav ul li a {
    display: block;
    border: 1px solid black;
    width: 100%;
    height: 100%;
    padding: 4px 8px;
    border-radius: 7px 7px 0px 0px;
    background-color: #145DA0;
    border-block-end: 1px solid black;
    color: white;
}

#nav ul li a:hover {
    color: white;
    box-shadow: 0px -3px 0px #0C2D48;
    transition: 0.3s;
}
    */

#gallery {
    text-align: center;
}

#gallery img {
    transition: 0.3s;
    margin: 10px;
}

#gallery img:hover {
    transform: scale(1.1);
}

@keyframes logoplay {
    from {
        transform: translate(-300px);
        opacity: 0;
    }

    to {
        transform: translate(0px);
        opacity: 1;
    }
}

#logo {
    animation: logoplay 2s;
}


@media screen and (max-width: 1024px) {
    #nav {
        display: none;
    }

    #main-menu {
        display: inherit;
    }

    main {
        width: 100%;
    }

    article {
        width: calc(100% - 210px);
    }
}



@media screen and (max-width: 450px) {
    aside {
        width: 100%;
    }

    article {
        width: 100%;
        margin-inline-start: 0px;
        margin-block-start: 10px;
    }
}
.aside-info {
    margin-top: 25px;
    direction: rtl;
  }
  
  .aside-info .accordion-button {
    background-color: #f3f3f3;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
  }
  
  .aside-info .accordion-button:not(.collapsed) {
    background-color: #0066cc;
    color: #fff;
  }
  
  .aside-info .accordion-body {
    line-height: 1.9;
    font-size: 0.9rem;
    text-align: justify;
  }
  
  .aside-info a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
  }
  
  .aside-info a:hover {
    text-decoration: underline;
  }
  
  .card-img-top {
    height: 200px;      
    object-fit: cover;    
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
  }
  .carousel-item img {
    height: 400px;
    object-fit: cover;
  }
  .mt-6 {
    margin-top: 4rem !important;
}
.bg-body-tertiary {
    background-color: #264b7c !important;
}
.navbar .nav-link,
.navbar .navbar-brand {
  color: #fff !important;
}

.navbar .nav-link:hover,
.navbar .navbar-brand:hover {
  color: #ddd !important; /* برای افکت هنگام هاور */
}
.modal {
    z-index: 1050 !important;
  }
  .modal-backdrop {
    z-index: 1040 !important;
  }
  .navbar {
    position: fixed;
    top: 0;
    z-index: 9999;
  }

 .btn-primary {

    --bs-btn-bg: var(--color3) !important; 
    --bs-btn-border-color: var(--color1) !important;  
}
.signup-button {
    border: none;
    background-color: var(--color-2);
    margin-bottom: 8px;
    padding: 17px 43px 12px 45px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
}   
.aside-info{
--bs-btn-bg: var(--color3) !important; 
--bs-btn-border-color: var(--color1) !important;
padding-top: 0 !important;
margin-top: 0 !important;
}
.contact-box {
    border-radius: 15px;
    padding: 10px 17px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
    background-color: var(--color3); /* رنگ پس‌زمینه روشن */
    float: left; /* سمت چپ کنار لوگو */
    margin-top: 10px;
    margin-left: 2px;
  }
  
  .contact-box a {
    color: white;
    text-decoration: none;
  }
  
  .contact-box a:hover {
    font-size: 1.4rem;
    
  }
  .accordion-button {
    border-radius: 100 !important;
  }
  .navbar {
  --bs-navbar-brand-font-size: 1.00rem !important;;
  }
