h1, h2, h3, h4, h5, h6, p, a, li, textarea, label, span, button {
    font-family: "Inter", sans-serif;
}

button {
    font-size: 16px;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);     /* 32px → 48px */
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem); /* 28px → 40px */
  font-weight: 600;
  line-height: 1.25;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);   /* 24px → 32px */
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem); /* 20px → 24px */
  font-weight: 500;
}

h5 {
  font-size: clamp(1.125rem, 2vw, 1.25rem); /* 18px → 20px */
  font-weight: 500;
}

h6 {
  font-size: clamp(1rem, 1.8vw, 1.125rem);  /* 16px → 18px */
  font-weight: 500;
}

hr {
    border: none;
    border-top: 2px dotted var(--color-light);
    margin: 1rem 0;
}

a {
    color: #FF9B51;
    text-decoration: none;
}

header {
    position: absolute;
    display: flex;
    height: 90px;
    top: 0;
    right: 0;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.dropdown {
    position: relative;
}

.drop-trigger {
    position: relative;
}

.drop-trigger i {
    display: inline-block;
    font-size: 12px;
    margin-left: 6px;
    transform: rotate(0deg);
    transition: transform 0.2s ease-in-out;
}

.dropdown.open .drop-trigger .bi {
    display: inline-block;
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 130%;
    left: 0;
    background: #35373E;
    border-radius: 10px;
    padding: 10px 0;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.15s ease-in-out;
}

.dropdown-menu a:hover {
    color: var(--color-links);
}

nav {
    margin-right: 40px;
}

nav ul {
    display: flex;
    gap: 30px;
    list-style-type: none;
}

nav a {
    color: var(--color-primary);
    text-decoration: none;
}

header img {
    margin-left: 40px;
    width: 160px;
}

footer {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrap {
    display: flex;
    width: 80%;
    margin: 50px 0;
    justify-content: space-between;
}

.col {
    display: flex;
    flex-direction: column;
    width: 20%;
    gap: 15px;
}

.col h4 {
    color: var(--color-primary);
    margin: 0;
    font-size: 20px;
}

.col ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.col p {
    color: var(--color-primary);
    width: 90%;
    margin: 0;
}

.col li {
    margin-bottom: 10px;
}

.col li a, .col p {
    text-decoration: none;
    color: var(--color-primary);
}

.col .contact {
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact a, .contact i {
    color: var(--color-primary);
    text-decoration: none;
}

.contact:hover a,
.contact:hover i {
    color: var(--color-links);
}

.socialIcons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.col img {
    display: flex;
    width: 90%;
}

.col-e {
    display: flex;
    width: 25%;
    gap: 10px;
}

.col-e img {
    width: 35px;
}

:root {
  --color-primary: #e8eff8;
  --color-secondary: #E8E7F2;
  --color-links: #f5cb5c;
  --color-dark: #242423;
  --color-light: #333335;
  --color-bglight: #BFD3E1;
}

body {
    padding-top: 90px;
    margin: 0;
    background-color: #161C25;
}

* {
    scrollbar-color: var(--color-light) transparent; /* thumb color, track color */
}

.secP {
    color: white;
    width: 70%;
    text-align: center;
    margin: 0 auto;
}

.center {
 text-align: center;   
}

/* quick utility helpers */
.bg-primary     { background: var(--color-primary); }
.bg-secondary   { background: var(--color-secondary); }
.bg-dark        { background: var(--color-dark); }
.bg-light       { background: var(--color-light); }
.bg-link        { background: var(--color-links); }
.text-secondary { color: var(--color-secondary); }
.text-links     { color: var(--color-links); }
.text-dark      { color: var(--color-dark); }
.text-light     { color: var(--color-light); }

.border-dark    { border-color: var(--color-dark); }
.border-light   { border-color: var(--color-light); }

.color-bglight {background-color: var(--color-bglight);}

.margin0 {
    margin-bottom: 0;
}

.text-primary {
    color: #F5F5F5;
    margin-top: 0;
}

ul a {
    transition: color 0.2s ease-in-out;
}

ul a:hover {
    color: var(--color-links);
}

.main-tools {
    display: flex;
    max-width: 90%;
    margin: 0 auto;
    padding: 100px 0;
    flex-direction: column;
    gap: 15px;
}

.main-tools h1 {
    margin: 0;
}

.marginTop {
    margin-top: 20px;
}

.secWrap {
    width: 70%;
    padding: 100px 0;
    margin: 0 auto;
}

.btnDark {
    background-color: var(--color-dark);
    color: var(--color-primary);
    transition: all 0.2s ease-in-out;
}
.btnDark:hover {
    color: var(--color-bglight);
}

.btn-card {
    display: flex;
    text-decoration: none;
    width: 100%;
    color: var(--color-links);
    height: 40px;
    border: 2px solid var(--color-links);
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}

.btnDarkOutline {
    display: flex;
    color: #161c25;
    border-radius: 10px;
    padding: 14px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    justify-content: center;
    background-color: #ff9b51;
}

.btnDarkOutline:hover {
    background-color: #35373e;
    color: #f5f5f5;
}

.btn-filled {
    display: flex;
    background: #FF9B51;
    color: #161C25;
    border: none;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
}

.btn-filled:hover {
    box-shadow: 0 6px 12px rgb(255 155 81 / 60%);
    transform: translateY(-2px);
}

/*Category Card*/

.catGrid {
    display: flex;
    gap: 20px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.cardWrap {
    width: calc(33.3% - 75px);
    background-color: #F5F5F5;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgb(53 55 62);
}

.cardBody {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.cardBody h3 {
    font-size: 20px;
    margin: 0;
}

.cardBody p {
    margin: 0;
}

.notDone {
    position: relative;
}

.notDone::before {
    content: "Coming Soon";
    font-family: "Inter", sans-serif;
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-size: 24px;
    z-index: 10;
}

.catGridV2 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
    justify-content: center;
}

.half-checkbox {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.ta {
    display: flex;
    height: 18rem;
    padding: 20px;
    background: #F5F5F5;
    color: #161C25;
    font-size: 16px;
    border-radius: 10px;
    width: 100%;
    resize: vertical;
    transition: all 0.1s ease-in-out;
}

.ta:focus, input:focus {
    outline: none;
    border: none;
    background-color: var(--color-primary);
}

.ta-full {
  width: 100%;
}

/* half width on desktop, full width on mobile */
.ta-half {
  box-sizing: border-box;
  width: calc(50% - 5px);
}

.textarea-wrapper {
    position: relative;
    width: calc(50% - 5px);
}

.textarea-wrapper textarea {
  width: 100%;
  resize: vertical;
  padding-bottom: 40px; /* space for footer */
  box-sizing: border-box;
}

.textarea-footer {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}

.textarea-footer button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.copy-wrap, .download-wrap, .upload-wrap:hover {
  position: relative;
  display: inline-block;
}

.tooltip {
    position: absolute;
    bottom: 120%;
    right: 0;
    background: #35373E;
    color: #F5F5F5;
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.copy-wrap:hover .tooltip, .download-wrap:hover .tooltip, .upload-wrap:hover .tooltip {
  opacity: 1;
}

.textarea-wrapper {
    position: relative;
}

.drop-zone {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    pointer-events: none;
}

.textarea-wrapper.dragover .drop-zone {
    display: flex;
}


.checkboxes input[type="checkbox"] {
  accent-color: #FF9B51;
  width: 16px;
  height: 16px;
}

.checkboxes input[type="text"] {
    padding-left: 5px;
    height: 20px;
    border: none;
    border-radius: 5px;
}

.checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: fit-content;
  color: var(--color-primary);
}

.checkboxes label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.reading {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

/* === TOOL ARTICLE SECTION === */

.leftArticle {
    width: 60%;
}

.tool-article {
  border-radius: 1rem;
  line-height: 1.75;
  color: var(--color-primary);
  font-family: 'Inter', sans-serif;
}

.tool-article h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: var(--color-secondary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.tool-article h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--color-secondary);
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.tool-article p {
  margin-bottom: 1rem;
  color: #d1d5db;
}

.tool-article ul,
.tool-article ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
}

.tool-article li {
  margin-bottom: 0.5rem;
  list-style: disc;
}

.tool-article ol li {
  list-style: decimal;
}

.tool-article code {
  background: rgba(255, 255, 255, 0.08);
  color: #908FE2;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-family: "Fira Code", monospace;
  font-size: 0.95em;
}

.tool-article .card a {
  color: var(--color-links);
  text-decoration: none;
  transition: color 0.2s ease;
}
.tool-article .card a:hover {
  color: var(--color-dark);
}

.tool-article dt {
  font-weight: 600;
  color: #f9fafb;
  margin-top: 1rem;
}

.tool-article dd {
  margin-left: 1rem;
  margin-bottom: 0.75rem;
  color: #d1d5db;
}

.sidebar {
    width: 40%;
}

.table-of-contents {
    display: flex;
    flex-direction: column;
    background-color: #35373E;
    padding: 20px;
    border-radius: 10px;
    color: var(--color-primary);
    position: sticky;
    top: 20px;
}

.table-of-contents ul {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    padding: 0;
}

.table-of-contents li {
    padding-top: 5px;
}

.table-of-contents h3 {
    margin: 0;
    font-size: 24px;
    color: var(--color-primary);
}

.toc-item.level0 { 
    height: auto;
    overflow: visible;
}

.toc-item.level1,
.toc-item.level2,
.toc-item.level3 {
    overflow: hidden;
    height: 0;
    transition: height 0.1s ease-in-out;
    padding: 0;
}

.toc-item.show {
    padding-top: 5px;
    height: 20px; /* adjust if needed */
}

.toc-item.active {
    color: #FF9B51;
    font-weight: bold;
}

.subscribe {
    color: var(--color-primary);
}

.subscribe h2 {
    margin: 1rem 0;
}

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

.subscribe input {
    width: 70%;
    height: 14px;
    border-radius: 10px 0 0 10px;
    border: none;
    padding: 15px;
    font-size: 14px;
    color: var(--color-dark);
    transition: all 0.2s ease-in-out;
}

.subscribe button {
    width: 30%;
    height: 44px;
    border: none;
    border-radius: 0 10px 10px 0;
    background-color: #35373E;
    color: #FF9B51;
    cursor: pointer;
}

.catGridSec h2 {
    color: var(--color-primary);
}

.cardWrapper {
    display: flex;
}

.card {
    display: flex;
    position: relative;
    flex-direction: column;
    width: calc(33.3% - 55px);
    min-width: 280px;
    border-radius: 10px;
    padding: 40px 20px 35px 20px;
    background-color: #35373E;
}

.card p {
    color: var(--color-primary);   
}

.card a {
    color: var(--color-primary);
}

.cardDark {
    background-color: var(--color-light);
    color: var(--color-primary);
}

.cardLight {
    background-color: #F5F5F5;
    color: #35373E;
}

.cardDark a {
    color: var(--color-primary);
}

.cardLight a, .cardLight p {
    color: var(--color-dark);
}

.card a {
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.card h3 {
    font-size: 24px;
    margin: 0;
}

.cardArrow {
  position: absolute;
  background: #FF9B51;
  border-top-left-radius: 10px;
  border-bottom-right-radius: 10px;
  bottom: 0;
  right: 0;
  width: 55px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease-in-out;
}

.card a:hover {
    color: #FF9B51;
}

.card:hover {
    
}

.cardArrow i {
  color: #35373E;
  font-size: 24px;
}

.cardArrow:hover {
  /* remove background change if you want static */
  background-color: #35373E;
}

.cardArrow:hover .bi-arrow-right-short {
    color: #FF9B51;
}

.catGridSec p {
    margin-bottom: 40px;
}

/* mobile */
@media (max-width: 1200px) {
    .secWrap {
        width: 80%;
    }
    
    .card {
        width: calc(33.3% - 75px);
    }
    
    .main-tools {
        width: 80%;   
    }
}

@media (max-width: 1080px) {
    .card {
        width: calc(50% - 55px);
        min-width: 200px;
    }
    
    .cardWrap {
        width: calc(50% - 75px);
    }
}

@media (max-width: 810px) {
    .card {
        width: calc(50% - 50px);
    }
    
    .half-checkbox {
        flex-direction: column;
    }
    
    .ta-half {
        width: 100%;
    }
    
    .reading {
        flex-direction: column-reverse;
    }
    
    .sidebar {
        width: 80%;
    }
    
    .leftArticle {
        width: 80%;
    }
    
    .secP {
        width: 80%;
    }
}

@media (max-width: 720px) {
    .sidebar {
        width: 100%;
    }
    
    .leftArticle {
        width: 100%;
    } 

    .cardWrap {
        width: 100%;
    }
    
    .secWrap {
        width: 80%;
    }

    .card {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 530px) {
    .card {
        width: calc(100% - 48px);
    }
    
    .secWrap {
        width: 90%;
    }
    
    .main-tools {
        width: 90%;
    }
    
    .secP {
        width: 100%;
    }
}