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

}

:root{
    --snd-bg-color: #fdf0d5; /* Soft beige secondary background */
    --text-color: #3e3e3e; /* Deep brown for primary text */
    --main-color: #5a3e2b; /* Rich brown for headings or strong accents */
    --bg-color: #fdf6ec; /* Light creamy beige main background */
    --white-4345: #f9f6f0; /* Near-white with warm tone */
    --bg-shade: #faebdd; /* Subtle background contrast */
    --img-bg-shade: rgba(250, 235, 221, 0.6); /* Beige translucent background for images */
    --primary-text-color: #4e342e; /* Slightly darker warm brown */
    --secondary-text-color: #926f57; /* Light brown for secondary elements */
    --nav-bgcolor: #f2d087; /* Warm yellow beige for navbar */
    --accent-color: #cda274; /* Tan - for buttons, links, highlights */
    --accent-color-dark: #856113; /* Deep goldish-brown for hover or emphasis */
    --padding-inline-section: 10px;
    --footer-bgColor: #e7c6b6; /* Warm dusty rose-beige for footer */
    --placeholder-color: #8a7e74; /* Muted warm gray for placeholder text */
    --input-bg-color: #f0e3d3; 
    --card-bg-color: #fff;  
}


.dark-mode {
  --nav-bgcolor: #a58b52; /* Tan brown navbar */
  --bg-color: #1c1a17; /* Warm charcoal background */
  --bg-shade: #2a2723; /* Slightly lighter for cards or sections */
  --primary-text-color: #fdf0d5; /* Warm light beige text */
  --secondary-text-color: #b5a08a; /* Light beige for secondary text */
  --tertiary-color: #d4b996; /* Soft accent like glowing buttons */
  --footer-bgColor: #a58672; /* Warm clay brown */
  
}

.dark-mode {
    --nav-bgcolor: rgb(165, 139, 82);
    --bg-shade: rgb(59, 59, 59);
    --primary-text-color: rgb(238, 234, 234);
    --tertiary-color: rgb(174, 174, 241);
    --footer-bgColor: #dbb0b0;


}

.main {
    border: var(--primary-text-color) 5px solid;
    margin-top: 15vh;
}

#mode {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.para {
    color: var(--primary-text-color);
    font-weight: bold;
    align-items: center;
    text-align: justify;
    padding: 10px;
    margin: 30px;
}

.para span {
    color: #cf8133;
}

body {
    font-family: "poppins", sans-serif;
    /* color: var(--primary-text-color) */

    background: lightyellow !important;

}

h1 {
    font-size: 3rem;
    margin-top: 12%;
}

h2 {
    font-size: 1.4rem;
    color: var(--text-color);
}

h3 {
    font-size: 1.1rem;
    color: var(--text-color);

}

p {
    font-family: 'roboto', sans-serif;
    font-size: 1.25rem;
    color: var(--secondary-text-color);
    line-height: 1.8rem;

}

a {
    text-decoration: none;
    display: inline-block;
}

.container {
    margin-inline: auto;
    padding-inline: var(--padding-inline-section);
}

.primary-button {
    background-color: var(--accent-color);
    border-radius: 6px;
    font-weight: 700;
    color: var(--primary-text-color);
    padding: 12px 24px;
    box-shadow: 0 0 2px var(--secondary-text-color);
    transition: all 0.3s ease;
}

.primary-button {
    background-color: var(--accent-color-dark);
}

.flex {
    display: flex;
    align-items: center;
}

nav {
    padding: 10px;
    background-color: var(--nav-bgcolor);
    height: 15vh;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border: var(--primary-text-color) 5px solid;
    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}



nav ul {

    margin-top: 20px;
    display: flex;
    border-radius: 10px;

    color: var(--primary-text-color);

    justify-content: center;
    list-style: none;
    overflow-x: hidden;

}

nav ul li a {
    text-decoration: none;

    color: var(--primary-text-color);
    margin: 10px;
    font-size: 18;
    letter-spacing: 0.5px;
    font-weight: bold;
    padding: 8px 8px;
    transition: all 0.3s ease;
    overflow-x: hidden;
}

nav ul li a:hover {
    background-color: #75b1e9;
    border-radius: 10px;
    border: 1px solid var(--primary-text-color);



}

.nav-link:hover,
.nav-link.active {
    background-color: #555;
}

nav .logo {
    font-size: 33px;
    color: var(--primary-text-color);
    font-weight: 600;
    font-family: "Playwrite SK", cursive;
}

nav #mitra {
    margin: 0;
    padding: 0%;
    color: var(--primary-text-color);
}

nav .menu-btn i {
    color: var(--text-color);
    font-size: 22px;
    cursor: pointer;
    display: none;
}

section {
    padding: 50px var(--padding-inline-section);
    background: var(--bg-shade);
}

.main-page {
    margin-top: 15vh;
    justify-content: center;
    gap: 50px;
    padding-bottom: 5%;


}

.header-left {
    max-width: 40vw;
}

.header-left h1 {
    margin-top: 20px;
}

.header-right img {
    width: 100%;
    margin-left: 10%;
}

.get-started-btn {
    margin-top: 20px;
    transition: all 0.3s ease;

}

.get-started-btn:hover {
    transform: translate(1.3);
    background-color: #577592;
}

#click {
    display: none;
}


.container1 {
    display: flex;
    gap: 40px;
    margin: 60px;
    justify-content: space-around;
    align-items: center;
    background-color: var(--text-color);
    background: var(--bg-shade);
    flex-wrap: wrap;
    padding: 20px;
    box-sizing: border-box;

}

.card {
    box-shadow: 0 0 10px 0px;
    transition: transform 1.2s;
    height: auto;
    overflow: hidden;
    box-sizing: border-box;
}


.btn-outline-primary:hover {
    background: var(--main-color);
    color: var(--snd-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.card:hover {
    transform: translateY(10px);
    box-shadow: 0 0 5px #40413c, 0 0 5px #1e1f1c, 0 0 18px rgb(70, 70, 52), 0 0 15px rgb(238, 235, 240), 0 0 15px rgb(201, 6, 208);
}


.service {
    padding-top : 100px;
}

.service-heading {
  background: var(--bg-shade);
  text-align: center;
  margin-top: 30px;
  margin-bottom: 20px;
  font-size: 2.2rem;
  font-weight: bold;
  color: #222222;
}

.about-heading {
    text-align: center;
    margin-bottom: 5%;
    text-decoration: dashed;
    list-style: lower-latin;
    font-family: "Cedarville Cursive", cursive;
    padding-bottom: 3%;


}

.icon {
    height: 90px;
    width: 90px;
    background-color: var(--accent-color);
    margin: 40px auto 30px;
    text-align: center;
    font-size: 28px;
    color: var(--white);
    border-radius: 20px;
    border-bottom-right-radius: 0;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    border: .2rem solid var(--text-color);


}

.icon img {
    height: 78px;
    width: 78px;

    mix-blend-mode: multiply;

}

.name {
    text-align: center;
    color: rgb(15, 15, 12);
    font-family: "Playwrite SK", cursive;
}

.icon i {
    margin-top: 35%;


}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 20px;
    margin-bottom: 80px;
    margin: 0;

}

.about-flex {
    display: grid;
    row-gap: 30px;
    column-gap: 50px;
    grid-template-columns: repeat(3, 0fr);
    grid-template-rows: repeat(2, 0fr);
    justify-content: center;
    align-items: center;
    width: 100%;


}

.About-card {
    width: 15rem;
    height: auto;
    margin: 1rem;
    background-color: #cab5af;
    border-radius: 40px;
    border-bottom-right-radius: 0;
    border: 2px solid var(--primary-text-color);
    box-shadow: 0 0 1rem var(--main-color);
    text-align: center;
    transition: transform 0.3s ease;
}

.About-card:hover {
    transform: translateY(-10px);
}

.About-card:hover {
    transform: translateY(16px);
}

.About-card a {
    margin-top: 12%;
}

.About-card a:hover {
    background: var(--main-color);
    color: var(--snd-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

#btn {
    margin-bottom: 20px;
    border-radius: 2em;
    border: 2px solid var(--primary-text-color);
}

.Contact-heading {
    margin-bottom: 5%;
    text-align: center;
    color: var(--text-color);
    bottom: 30px;
    font-family: "Playwrite SK", cursive;
    font-size: 1.5rem;

}

.Contact-heading h1 {
    margin: 0;
    padding: 0;
}

.contact-section {
    min-height: 50vh;
    background-color: var(--footer-bgColor);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border: 5px solid var(--primary-text-color);
}

.contact-section .contact-item {
    flex: 0 0 33.33%;
    max-width: 33.33%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-section .contact-item:hover {
    background: var(--bg-color);
    color: var(--snd-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.contact-section .contact-item-inner {
    padding: 30px 15px;
    text-align: center;
    box-shadow: var(--shadow-black-100);
    border-radius: 5px;
    width: 100%;
    align-items: center;
}

.contact-section .contact-item-inner i {
    font-size: 25px;
    color: var(--main-color);
}

.contact-section .contact-item-inner a span,
.contact-section .contact-item-inner span {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-color-dark);
    margin: 15px 0 10px;
    text-transform: capitalize;
    word-wrap: break-word;
}

.contact-section .contact-item-inner a p,
.contact-section .contact-item-inner p {
    font-size: 16px;
    color: var(--accent-color-dark);
    line-height: 26px;
    margin: 0;
    word-wrap: break-word;
}

.social-media {
    text-align: center;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 0 0;
    transition: .5s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--snd-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.contact-section h3 {
    position: relative;
    top: 10%;
    padding: 0;
    text-align: center;
    color: #1d69a3;

}

.contribution {
    display: flex;
    justify-content: space-between;
    /* text-align: center; */
    margin-top: 5%;
}

.primary-button:hover {
    background-color: var(--bg-color);
}


.contri-left {
    text-align: start;
}



@media (max-width: 1085px) {

    nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        background: var(--primary-text-color);
        height: 50vh;
        width: 100%;
        display: block;
        text-align: center;
        transition: all 0.3s ease;
        z-index: 1;

    }

    .about-flex {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
        column-gap: 20px;
        padding-left: 20%;
    }

    .About-card {
        width: 15rem;
    }


    #btn {
        width: 80%;
    }

    #click:checked~.menu-btn i:before {
        content: "\f00d";
    }

    #click:checked~ul {
        left: 0%;
    }

    nav .menu-btn i {
        color: var(--primary-text-color);
        font-size: 40px;
        cursor: pointer;
        display: block;

    }

    nav ul li {
        margin: 40px 0px;

    }

    nav ul li a {
        font-size: 20px;
        color: var(--text-color);


    }

    nav ul li a:hover,
    nav ul li a #active {
        background-color: none;

    }

    .container1 {
        flex-wrap: wrap;
    }

    .card {
        margin-bottom: 20px;
        min-width: 100%;

    }

    .contact-section {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .contact-section .contact-item {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 20px;
    }

    .social-media {
        justify-content: center;
        gap: 10px;
    }

    .footer-links {
        text-align: center;
        font-size: 14px;
        margin-top: 20px;
    }

    #copyright {
        padding-top: 30px;
    }

}


@media only screen and (max-width: 772px) {
    .main-page {
        flex-direction: column-reverse;
        gap: 20px;
        margin: 0%;
    }

    .header-right img {
        width: 100%;

    }

    .icon {
        z-index: auto;
    }

    nav ul {
        height: 100vh;
    }

    p {
        font-size: 1.0rem;

    }


    .about {
        padding: 10px;
    }

    .about-flex {
        flex-direction: column;
        display: inline-flex;
        padding-left: 2%;
    }

    .About-card {
        margin-bottom: 20px;
        width: 80%;
    }

    .contact-section .contact-item {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .social-media a {
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
        margin: 1.5rem 0.5rem 0 0;
    }

    .footer-links {
        padding: 15px;
        font-size: 13px;
    }
    

    #sanjay-nagar {
        text-align: center;
        justify-content: center;
    }

    #copyright {
        padding-top: 30px;
    }

}

@media only screen and (max-width: 450px) {
    p {
        width: fit-content;
    }

    .container1 {
        margin: 20px;
        gap: 10px;
    }

    .card {
        width: 100%;
        margin-bottom: 10px;
    }

    .header-right img {
        width: 100%;
        margin-left: 0%;
    }

    .header-left {
        margin-right: 5%;
        text-align: center;
    }

    .greeting {
        position: relative;
        right: 2rem;
    }

    .about-flex {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .About-card {
        width: 90%;
        margin-bottom: 20px;
    }

    .contact-section {
        flex-direction: column;
        align-items: center;
    }

    .contact-section .contact-item {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 10px;
    }

    .contact-section .contact-item-inner {
        width: 90%;
        justify-items: center;
    }

    .social-media {
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-media a {
        width: 2.8rem;
        height: 2.8rem;
        font-size: 1.3rem;
        margin: 1rem 0.5rem 0 0;
    }

    .footer-links {
        text-align: center;
        padding: 10px;
        font-size: 12px;
        line-height: 1.4;
    }

    #sanjay-nagar {
        display: inline-flex;
    }

    .contri-left {
        text-align: center;
    }

    #copyright {
        padding-top: 30px;
    }
}

@media only screen and (max-width: 275px) {
    .Contact-heading {
        font-size: 1.2rem;
        margin-bottom: 3%;
    }

    .contact-section .contact-item-inner {
        padding: 20px 10px;
        width: 95%;
    }

    .contact-section .contact-item-inner i {
        font-size: 20px;
    }

    .contact-section .contact-item-inner a span,
    .contact-section .contact-item-inner span {
        font-size: 14px;
        margin: 10px 0 5px;
    }

    .contact-section .contact-item-inner a p,
    .contact-section .contact-item-inner p {
        font-size: 14px;
        line-height: 22px;
    }

    .social-media a {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.2rem;
        margin: 1rem 0.5rem 0 0;
    }

    .footer-links {
        font-size: 11px;
        padding: 8px;
    }
}
/* ====== Tech Notes ====== */

.notes-section h2 {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 1rem;
}

.notes-search {
  max-width: 560px;
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.notes-search:focus {
  outline: none;
  border-color: #4a90e2;
}

/* Category card */
.category-card {
  background: linear-gradient(180deg, #ffffff, #f7f9ff);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  transition: transform .25s ease, box-shadow .25s ease, background 0.3s ease;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.10);
}

.category-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
}

.category-head h3 {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 700;
}

.icon-wrap {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: radial-gradient(100% 100% at 50% 0%, #e8f0ff 0%, #ffffff 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 8px 16px rgba(0,0,0,0.05);
  font-size: 1.25rem;
}

.topics {
  margin-top: 6px;
}

.topic {
  border: 1px dashed rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 0.25rem 0.75rem;
  background: #fff;
  margin-top: 10px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.topic summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  padding: 10px 6px;
}

.topic[open] summary i {
  transform: rotate(180deg);
  transition: transform .2s ease;
}

.notes-list {
  margin: 0 0 8px 0;
  padding: 0;
  list-style: none;
}

.note-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 6px;
  border-radius: 10px;
  transition: background .2s ease;
}

.note-item:hover {
  background: #f5f8ff;
}

.note-item i { margin-right: 8px; }

.note-item .actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-left: auto;
}

.note-item .actions .btn {
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  transition: all 0.2s ease-in-out;
  border-radius: 0.25rem;
}

.note-item .actions .preview-btn {
  background-color: transparent;
  color: #004085; /* Dark Blue */
  border: 1px solid transparent;
}

.note-item .actions .preview-btn:hover {
  background-color: rgba(3, 102, 214, 0.1);
  border-color: transparent;
  box-shadow: 0 0 8px rgba(3, 102, 214, 0.2);
  transform: translateY(-1px);
}



/* Search highlight */
.note-item[data-match="true"],
.topic[data-match="true"] summary {
  background: #fff7d6;
  border-radius: 8px;
}

body.dark {
  background-color: #121418;
  color: #f1f0f0;
}

body.dark .category-card {
  background: linear-gradient(180deg, #171a23, #11141b);
  border-color: rgba(255,255,255,0.06);
  box-shadow: 0 10px 24px rgba(0,0,0,0.6);
  color: #e0e0e0;
}

body.dark .topic {
  /* background: #151922; */
  background-color: black;
  border-color: rgba(255,255,255,0.10);
}

body.dark .topic summary {
  color: #090909 !important;
}

body.dark .notes-section h2 {
  color: #fff;
}

/* ====== Uniform Notes Section Styles ====== */
.notes-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.category-card {
  background: #ffffff;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.category-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.category-head h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #24292e;
}

.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f6f8fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #0366d6;
}

.topics {
  margin-top: 1rem;
  flex-grow: 1;
}

.topic {
  margin-bottom: 1rem;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  overflow: hidden;
}

.topic summary {
  padding: 0.75rem 1rem;
  background: #f6f8fa;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  transition: all 0.2s ease;
}

.topic[open] summary {
  background: #eaeef2;
  border-bottom: 1px solid #e1e4e8;
}

.topic summary::-webkit-details-marker {
  display: none;
}

.topic summary i {
  transition: transform 0.2s ease;
  font-size: 0.9rem;
  color: #6a737d;
}

.topic[open] summary i {
  transform: rotate(180deg);
}

.subjects-list {
  padding: 0.5rem 1rem;
  margin: 0;
  list-style: none;
}

.subject {
  margin: 0.5rem 0;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  overflow: hidden;
}

.subject summary {
  padding: 0.5rem 1rem;
  background: #f8f9fa;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  transition: all 0.2s ease;
}

.subject[open] summary {
  background: #f1f3f5;
}

.subject summary i {
  transition: transform 0.2s ease;
  font-size: 0.8rem;
  color: #6a737d;
}

.subject[open] summary i {
  transform: rotate(180deg);
}

.notes-list {
  padding: 0.5rem 1rem;
  margin: 0;
  list-style: none;
}

.note-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.note-item:last-child {
  border-bottom: none;
}

.note-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-grow: 1;
}

.note-info i {
  color: #6a737d;
  font-size: 1rem;
}

.actions {
  display: flex;
  gap: 0.5rem;
}

.btn {
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.note-item .actions .btn-primary {
  background-color: #D2B48C;
  color: #5a3e2b;
  border-color: #D2B48C;
}

.note-item .actions .btn-primary:hover {
  background-color: #C1A37E;
  border-color: #C1A37E;
}

/* Dark Mode Styles */
body.dark .category-card {
  background: #1f2937;
  border-color: #374151;
}

body.dark .category-head h3 {
  color: #f3f4f6;
}

body.dark .icon-wrap {
  background: #374151;
  color: #60a5fa;
}

body.dark .topic {
  border-color: #374151;
}

body.dark .topic summary {
  background: #1f2937;
  color: #f3f4f6;
}

body.dark .topic[open] summary {
  background: #374151;
  border-color: #4b5563;
}

body.dark .subject {
  border-color: #374151;
}

body.dark .subject summary {
  background: #1f2937;
  color: #f3f4f6;
}

body.dark .subject[open] summary {
  background: #374151;
}

body.dark .note-item {
  border-color: #374151;
}

body.dark .btn-preview {
  background: #374151;
  color: #f3f4f6;
  border-color: #4b5563;
}

body.dark .btn-preview:hover {
  background: #4b5563;
  border-color: #6b7280;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .notes-container {
    grid-template-columns: 1fr;
  }

  .category-card {
    padding: 1.25rem;
  }

  .note-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions {
    width: 100%;
    justify-content: flex-start;
  }
}

body.dark .note-item {
  color: #e0e0e0;
}

body.dark .note-item:hover {
  background: #1a2030;
}

body.dark .note-item[data-match="true"],
body.dark .topic[data-match="true"] summary {
  background: #3a3f57;
  color: #fff;
}

/* .papers-flex{
  display: grid;
    row-gap: 30px;
    column-gap: 50px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 0fr);
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top:100px;
} */
 .papers-flex {
  display: grid;
  gap: 30px 50px; 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: auto;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  margin-top: 70px;
}

.papers-flex .category-card {
  height: 100%;
  box-sizing: border-box;
}

.pdf-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.7);
}
.pdf-modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 10px;
  border-radius: 10px;
  width: 80%;
  max-width: 900px;
  position: relative;
}
.pdf-modal-close {
  position: absolute;
  top: 8px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;}