body {
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin:  0;
}


.limiter {
    margin: auto;
    max-width: 1200px;
}


.top-strip {
    background-color: #e7dada;
    padding: 0.2em;
}

.top-strip-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
}

.strip-icon {
    max-width: min(calc(20px + 1.5vw / 1), 2em);
}
.strip-text {
    color: #ac1e23;
    font-size: min(calc(0.8em + (1vw) / 10), 2.5em);
    text-align: justify;
}


.name-strip {
    font-size: min(calc(1.5em + 3vw), 3em);
    color: #333;
    padding: 1rem;
    margin: 0;
    text-align: left;
    font-weight:  normal;
}


.ctrl-nav {
    display: grid;
    grid-template-columns: auto max-content;
}

.mobile-menu-button{
   padding: 1em;
}

.nav-links-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.nav-links-wrapper.open {
    grid-template-rows: 1fr;
}

.nav-links-wrapper>div {
overflow: hidden;
}



.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 1.4em;
    padding: 0.5em 1.5em;
    cursor: pointer;
}

main {
    margin: 0;
}
.research, .intro, .projects {
    margin: 1em 0;
}

.title-band{
    background-color: #ccc;
    padding: 1em 0;
    margin: 1em 0;
}

.section-title {
    padding: 1em 0.5em;
}
.section-subtitle {
    padding:0.5em;
}

.showcase {
    background: #ccc;
    padding:1em 0;
    margin: 1em 0;
    width: 100%;
    overflow-x: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and old Edge */
    white-space: nowrap;
    text-align: center;
}

.showcase::-webkit-scrollbar {
    display: none;
}

.showcase-drawer {
    display: inline-flex;
    gap: 1em;
    align-items: center;
    justify-content: center;

}

.drawer-item {
    /* max-width: 280px; */
    max-height: 280px;
}
.intro-wrapper {
    display: grid;
    grid-template-columns: auto;
}

.intro-text, .intro-image {
    padding: 1em;
    font-size: 1.2em;
    text-align: justify;
}

.profile-image {
    width: 100%;
    max-width: 240px;
}


.profile-image-thumb {
    width: 100%;
    max-width: 160px;
}

.misc-1 {
    margin: 1em 0;
    display: flex;
    flex-wrap: wrap;
}

.btn-1 {
    margin: 0.25em;
    display: inline-block;
    border: 1px solid #ccc;
    padding: 0.5em;
    border-radius: 0.25em;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    color: #222;
    background-color: #d6eaff;
    transition: background-color 0.3s ease-in;
}
.btn-1:hover {
    background-color: cornsilk;
}


.gallery {
    margin: 2em 0;
    background: #ccc;
    padding:1em 0;
    margin-bottom: 1em;
    width: 100%;
    overflow-x: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and old Edge */
    white-space: nowrap;
    text-align: center;
}

.gallery::-webkit-scrollbar {
    display: none;
}

.gallery-drawer {
    display: inline-flex;
    gap: 1em;
    align-items: center;
    justify-content: center;

}


.research-cards {
    /* display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 2em;
    justify-content: center; */

    display: grid;
    grid-template-columns: auto;
    gap: 1em;

}




.card-wrapper {
    margin-left: auto;
    margin-right: auto;
  }
  
  .card-full {
    font-size: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1764705882);
    border-radius: 0.375rem;
    border: 1px solid rgba(0, 0, 0, 0.1764705882);
    width: 100%;
    max-width: 360px;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .card-img, .card-img-top {
    display: block;
    width: 100%;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    height: 220px;
    object-fit: cover;
  }
  
  .card-title {
    color: #333;
  }
  
  .card-text {
    color: #232323;
  }





footer {
    grid-template-columns: auto;
    background-color: #eeeeee;
    color: #ac1e23;
}



.footer-top-strip
{
    height: 16px;
    background-color: #cccccc;
    width: 100%;
}

.footer-content {
    flex-direction: column;
    padding: 1em;
}

.footer-icon {
    max-width: min(calc(64px + 1.1vw / 1), 3.5em);
    padding: 2vw;
}

.footer-text {
    text-align: center;
    font-size: 0.8em;
}
.footer-text > :is(h1, h2, h3) {
    margin-top: 0;
    margin-bottom: 0;
}





@media  screen and (min-width:720px) {

    .ctrl-nav {
        grid-template-columns: auto;
    }

    .mobile-menu-button{
        display: none;
    }

    .name-strip {
        padding: 1rem;
        margin: 1rem;
        text-align: center;
    }

    .nav-links-wrapper {
        grid-template-rows: 1fr;
    }
    .nav-links {
        flex-direction: initial;
    }

    .active-link {
        /* background: black;
        color: white;
        border-radius: 0.15em; */
        background: #ffd9dc;
        border-radius: 0.15em;
        /* text-decoration: underline;
        text-decoration-thickness: 2px;
        text-decoration-color: #ac1e23;
        text-underline-offset: 0.2em; */

    }


    .intro-wrapper {
        display: grid;
        grid-template-columns: 1fr 30%;
        grid-template-areas: "text image";
    }
    .intro-text {
        grid-area: text;
    }
    .intro-image {
        grid-area: image;
    }



    .research-cards {
        grid-template-columns: auto auto;
    
    }



    .footer-content {
        flex-direction: row;
    }
    .footer-text {
        text-align: left;
    }




}


@media  screen and (min-width:1020px) {


    .research-cards { grid-template-columns: auto auto auto; }
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.h10{height:100%;}

.m-half {margin: 0.5em;}







/*  FOR   S V G */
.svg-menu {
    transition: transform .45s cubic-bezier(.4,0,.2,1), -webkit-transform .45s cubic-bezier(.4,0,.2,1);
    width: 30px;
    height: 30px;
}

.menu-cross {
    transform: rotate(90deg);
}
.top-line, .middle-line, .bottom-line {
    transition: transform, opacity .45s cubic-bezier(.4,0,.2,1), -webkit-transform .45s cubic-bezier(.4,0,.2,1);
}
.menu-cross .top-line {
    transform: rotate(45deg) translate(0, 5px);
}
.menu-cross .middle-line {
    transform: rotate(135deg);
    opacity: 0;
}
.menu-cross .bottom-line {
    transform: rotate(135deg) translate(0, -5px);
}


/*  FOR   RESEARCH PAGE*/

.research-topic {
    margin: 2em 0;
}

.publication-ul {
    line-height: 2;
}



.notice {
    padding: 2em;
    margin: auto;
}













/*  Contacts  */

:root {
    --bg:            #f0ede6;
    --surface:       #ffffff;
    --border:        #dedad2;
    --text-main:     #1a1916;
    --text-sub:      #6b6860;
    --text-hint:     #a8a49e;
    --accent:        #1a4a8a;
    --accent-bg:     #eaf0f9;
    --accent-border: #c4d4ec;
    --radius-md:     10px;
    --radius-lg:     14px;
  }


  .contact-wrap {
    padding: 2em 0;
  }

.contact-content {
    margin: auto;
    max-width: 700px;
    padding: 0.5em;
  }
  /* ── Hero ── */
  .hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .avatar {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--accent-bg);
    border: 1.5px solid var(--accent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
    letter-spacing: 0.04em;
    overflow: hidden;
  }

  .hero-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
    letter-spacing: -0.01em;
  }

  .hero-sub {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.55;
  }

  /* ── Divider ── */
  .divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0 0 1.75rem;
  }

  /* ── Section label ── */
  .section-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-hint);
    margin-bottom: 1rem;
  }

  /* ── Info cards grid ── */
  .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 2rem;
  }

  @media (max-width: 500px) {
    .info-grid { grid-template-columns: 1fr; }
  }

  .info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    transition: border-color 0.18s;
  }

  .info-card:hover {
    border-color: var(--accent-border);
  }

  .icon-box {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .icon-box svg {
    width: 15px;
    height: 15px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .info-label {
    font-size: 14px;
    color: var(--text-hint);
    margin-bottom: 2px;
  }

  .info-value {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.45;
  }

  .info-value a {
    color: var(--accent);
    text-decoration: none;
  }

  .info-value a:hover {
    text-decoration: underline;
  }

  /* ── Office hours ── */
  .hours-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  @media (max-width: 500px) {
    .hours-card { grid-template-columns: 1fr; gap: 1rem; }
  }

  .hours-label {
    font-size: 11px;
    color: var(--text-hint);
    margin-bottom: 3px;
  }

  .hours-value {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
  }

  .hours-note {
    font-size: 12.5px;
    color: var(--text-sub);
    line-height: 1.5;
  }
