body{
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  color:#323232; 
  font-size: 16px;
  line-height: 1.5;

}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root{ 
  --navy:#0f1f3d;
  --navy2:#162848;
  --blue:#1a5fa8;
  --blue-l:#2d7dd2;
  --gold:#c09a3c;
  --gold-l:#e8c56a;
  --cream:#faf8f4;
  --paper:#f4f1eb;
  --ink:#1a1612;
  --ink2:#2e2820;
  --muted:#6b6258;
  --border:#ddd8ce;
  --sidebar:315px;
  --header:86px;
  --font-size:14px;
}

header .logoArea img{ height:70px; margin-right:15px; }

.main-chapter-page{height:100%;overflow:hidden;font-family:'DM Sans',sans-serif;background:#e3e9f7;color:var(--ink); font-size:var(--font-size)}

/* ══ HEADER ══ */
.main-chapter-page .header{
  position:fixed;top:0;left:0;right:0;height:var(--header);
  background:#d0dafe;
  display:flex;align-items:center;
  padding:0 20px;
  z-index:200;
justify-content: space-between !important;
  gap:16px;
}
.main-chapter-page .header-emblem{
  width:34px;height:34px;
  border:1.5px solid rgba(200,180,100,0.4);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:var(--gold);
  flex-shrink:0;
}
.main-chapter-page .header-titles{flex:1;}
.main-chapter-page .header-title{
  font-size: 16px;
  font-weight:500;
  color:#e8e0d0;
  
  line-height:1.5;
}
.main-chapter-page .header-sub{
  color:rgba(200,180,100,0.9);margin-top:1px;
}
.main-chapter-page .header-badges{display:flex;gap:8px;align-items:center;}
.main-chapter-page .badge{
  text-transform:uppercase;
  background:rgba(255,255,255,0.07);
  border:1px solid rgba(255,255,255,0.12);
  color:rgba(255,255,255,0.5);
  padding:3px 10px;border-radius:20px;
}
.main-chapter-page .badge.updated{background:rgba(192,154,60,0.15);border-color:rgba(192,154,60,0.3);color:var(--gold);}

/* Search in header */
.main-chapter-page .header-search{
  position:relative;
}



.main-chapter-page .header-search input {
    background: #d0dafe;
    border: 1px solid #8390be;
    color: #000;
    border-radius: 6px;
    padding: 6px 12px 6px 34px;
    font-family: 'DM Sans',sans-serif;
    width: 200px;
    outline: none;
    transition: all 0.2s;
}
.main-chapter-page .header-search input::placeholder{color:rgba(0,0,0,0.80);}
.main-chapter-page .header-search input:focus{
  border-color:rgba(0,0,0,0.8);
  background:rgba(255,255,255,0.1);
  width:240px;
}
.main-chapter-page .header-search svg{
  position:absolute;left:10px;top:50%;transform:translateY(-50%);
  width:14px;height:14px;color:rgba(0,0,0,0.8);
}

/* Mobile menu toggle */
.main-chapter-page .menu-toggle{
  display:none;background:none;border:none;
  color:rgba(255,255,255,0.6);cursor:pointer;
  padding:6px;
}

/* ══ LAYOUT ══ */
.main-chapter-page .layout{
  display:flex;
  height:100vh;
  padding-top:var(--header);
}

/* ══ SIDEBAR ══ */
.main-chapter-page .sidebar{
  width:var(--sidebar);
  flex-shrink:0;
  background:#fff;
  border-right:1px solid var(--border);
  overflow-y:auto;
  height:100%;
  position:relative;
}
.main-chapter-page .sidebar::-webkit-scrollbar{width:3px;}
.main-chapter-page .sidebar::-webkit-scrollbar-track{background:transparent;}
.main-chapter-page .sidebar::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px;}

.main-chapter-page .sidebar-header{
  padding:16px 16px 12px;
  border-bottom:1px solid var(--border);
  position:sticky;top:0;
  background:#fff;
  z-index:10;
}
.main-chapter-page .sidebar-heading{
 text-transform:uppercase;
  color:var(--muted);font-weight:500;
}

/* Chapter groups */
.chapter-group{margin-bottom:2px;     <!-- border-bottom: 1px solid var(--border); -->}
.chapter-btn{
  width:100%;text-align:left;
  background:none;border:none;
  padding:10px 16px;
  display:flex;align-items:center;justify-content:space-between;
  cursor:pointer;
  font-family:'DM Sans',sans-serif;
  transition:background 0.15s;
  gap:8px;
}
.chapter-btn:hover{background:rgba(15,31,61,0.04);}
.chapter-btn.open{background:rgba(26,95,168,0.06);}
.chapter-num{
  text-transform:uppercase;
  color:var(--blue);font-weight:600;
  background:rgba(26,95,168,0.08);
  padding:2px 7px;border-radius:10px;
  flex-shrink:0;
  font-size: 11px;
}
.chapter-name{
 font-weight:500;color:var(--ink2);
  flex:1;line-height:1.3;
  font-size:14px;
  text-transform: uppercase;
}
.chapter-arrow{
  width:14px;height:14px;color:var(--muted);
  transition:transform 0.2s;flex-shrink:0;
}
.chapter-btn.open .chapter-arrow{transform:rotate(90deg);}

/* Section list */
.section-list{
  display:none;
  background:rgba(15,31,61,0.015);
  border-left:2px solid transparent;
}
.section-list.open{display:block;}
.section-item{
  display:block;width:100%;text-align:left;
  background:none;border:none;
  padding:8px 16px 8px 24px;
  cursor:pointer;
  font-family:'DM Sans',sans-serif;
  color:var(--muted);
  transition:all 0.15s;
  line-height:1.5;
  border-left:2px solid transparent;
  margin-left:-2px;
  font-size:14px;
}
.section-item:hover{background:rgba(26,95,168,0.05);color:var(--ink);}
.section-item.active{
  background:rgba(26,95,168,0.08);
  color:var(--blue);
  border-left-color:var(--blue);
  font-weight:500;
}
.section-item .sec-num{
 
  color:var(--gold);
  margin-right:6px;
  font-weight:500;
}

/* ══ MAIN CONTENT ══ */
.main{
  flex:1;
  display:flex;
  flex-direction:column;
  height:100%;
  overflow:hidden;
  background:#e3e9f7;
  position:relative;
}

/* Scrollable area inside main */
.main-scroll{
  flex:1;
  overflow-y:auto;
  height:100%;
  padding-bottom:4px;
}
.main-scroll::-webkit-scrollbar{width:5px;}
.main-scroll::-webkit-scrollbar-track{background:transparent;}
.main-scroll::-webkit-scrollbar-thumb{background:var(--border);border-radius:5px;}

/* Welcome / Index page */
.index-page{
  margin:0 auto;
  padding:25px 24px 25px;
}
.index-hero{
  <!-- background:linear-gradient(135deg,var(--navy) 0%,var(--navy2) 60%,#1a3a6e 100%); -->
  border-radius:12px;
  padding:0px;
  margin-bottom:7px;
  position:relative;
  overflow:hidden;
  text-align:center;

}

.index-hero-tag{
  text-transform:uppercase;
  color:rgba(192,154,60,0.7);margin-bottom:14px;
  display:none;
}
.index-hero h1 {
    font-weight: 600;
    font-size: 37px;
    color: var(--blue);
    line-height: 1.2;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}


.index-hero h4 {
    font-weight: 600;
    font-size: 20px;
    color:#000;
    line-height: 1.2;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.index-hero-line{
  width:60px;height:2px;
  background:linear-gradient(90deg,var(--gold),transparent);
  margin:14px 0;
}
.index-hero p{
  color:rgba(255,255,255,0.45);
  line-height:1.5;max-width:480px;
  position:relative;z-index:1;
}
.index-hero-meta{
  margin-top:24px;
  display:flex;gap:24px;flex-wrap:wrap;
  position:relative;z-index:1;
}
.meta-item{
  color:rgba(255,255,255,0.3);
  display:flex;flex-direction:column;gap:3px;
}
.meta-item strong{
  
  font-family:'EB Garamond',serif;
  color:var(--gold-l);font-weight:500;
}

/* Chapter cards grid */
.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(240px,1fr));
    gap: 54px 19px;
    margin: 50px 0 20px 0;
}
.chapter-card{
  background:#fff;
    border: 2px solid #0051a0;
  border-radius:8px;
  padding:18px 20px;
  cursor:pointer;
  transition:all 0.2s;
  position:relative;
/*  overflow:hidden;*/
}

.chapter-card::before{
  content:'';
  position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,var(--blue),var(--blue-l));
  transform:scaleX(0);transform-origin:left;
  transition:transform 0.2s;
}
.chapter-card:hover{border-color:var(--blue-l);box-shadow:0 4px 20px rgba(26,95,168,0.1);transform:translateY(-2px);}
.chapter-card:hover::before{transform:scaleX(1);}

.chapter-card.copyRightAreaCh .card-num {
    position: absolute;
    left: 9px;
    top: 11px;
    margin: -1px;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    padding: 0;
}
.chapter-card.copyRightAreaCh .card-num:after{ display:none; }

.chapter-card.copyRightAreaCh .card-title {
    text-transform: uppercase;
    padding-left: 38px;
}


/*.card-num{
 text-transform:uppercase;
  color:var(--blue);font-weight:600;margin-bottom:6px;
}*/

.card-num {
    text-transform: uppercase;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 6px;
    background: #034ea2;
    padding: 8px 10px;
    margin-top: -51px;
    display: inline-block;
    position: relative;
}
.card-num::after {
    content: '';
    position: absolute;
    right: -19px;
    top: -1px;
    height: 100%;
    width: 0;
    border-bottom: 33px solid #024fa1;
    border-right: 20px solid transparent;
}
.card-title{
font-weight:500;color:var(--ink);
  line-height:1.4;margin-bottom:8px;
}
.card-sections{
  color:var(--muted);
  display:flex;align-items:center;gap:4px;
}

/* ══ BACK TO CHAPTER BUTTON ══ */
.back-to-chapter{
  display:inline-flex;align-items:center;gap:7px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:8px;
  padding:8px 16px;
  font-family:'DM Sans',sans-serif;
 
  font-weight:500;
  color:var(--ink2);
  cursor:pointer;
  transition:all 0.18s;
  text-decoration:none;
  margin-bottom:20px;
  box-shadow:0 1px 4px rgba(0,0,0,0.06);
}
.back-to-chapter:hover{
  border-color:var(--blue);
  color:var(--blue);
  background:rgba(26,95,168,0.04);
  box-shadow:0 2px 10px rgba(26,95,168,0.1);
}
.back-to-chapter svg{
  width:15px;height:15px;
  flex-shrink:0;
  transition:transform 0.18s;
}
.back-to-chapter:hover svg{transform:translateX(-3px);}
.back-to-chapter .btn-chapter-name{
  color:var(--blue);
  font-weight:600;
}

/* Section view */
.section-page{
  margin:0 auto;
  padding:25px 40px 25px;
  display:none;
}
.section-page.active{display:block;}

.section-breadcrumb{
  display:flex;align-items:center;gap:8px;
  color:var(--muted);
  margin-bottom:10px;
  flex-wrap:wrap;
}
.bc-item{cursor:pointer;transition:color 0.15s;}
.bc-item:hover{color:var(--blue);}
.bc-sep{color:var(--border);}
.bc-current{color:var(--ink);font-weight:500;}

/*.section-header{
  margin-bottom:10px;
  padding-bottom:10px;
  border-bottom:1px solid var(--border);
}
*/
.section-header {
    display: inline-block;
    background-color: #024fa1;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 8px 41px 8px 21px;
    border-radius: 0px 4px 0 0;
    text-transform: uppercase;
    position: relative;
    bottom: -1px;
    margin-top: 20px;
    z-index: 1;
    margin-left: 0px;
}
.section-header::after {
    content: '';
    position: absolute;
    right: -19px;
    top: 0px;
    height: 100%;
    width: 0;
    border-bottom: 39px solid #024fa1;
    border-right: 20px solid transparent;
}

.section-chapter-tag{
  text-transform:uppercase;
  color:var(--blue);font-weight:600;
  background:rgba(26,95,168,0.08);
  display:inline-block;padding:3px 10px;border-radius:10px;
  margin-bottom:12px;
}
.section-number{
  color:#fff;
  font-weight:500;margin-bottom:6px;
  display:none;
}
.section-title {
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    font-size: 18px;
}

.section-body{
    border: 2px solid #0051a0;
    border-radius: 05px 25px 25px 25px;
    background: #fff;
    padding:25px
}

.section-body p{margin-bottom:14px; font-size:14px;}
.section-body .sub-section{
  padding:2px 0 2px 16px;
  border-left:3px solid var(--border);
  margin:14px 0;
  color:#3a3028;
}
.section-body .sub-section strong{
  color:var(--gold);
  font-weight:500;
  margin-right:8px;
}
.section-body .explanation{
  background:rgba(192,154,60,0.06);
  border:1px solid rgba(192,154,60,0.15);
  border-radius:6px;
  padding:14px 18px;
  margin:18px 0;
  color:#5a4a30;
}
.section-body .explanation::before{
  content:'Explanation';
  display:block;
  font-family:'DM Sans',sans-serif;
  text-transform:uppercase;
  color:var(--gold);font-weight:600;
  margin-bottom:8px;
}
.section-body .note{
  background:rgba(26,95,168,0.05);
  border-left:3px solid var(--blue);
  padding:12px 16px;margin:16px 0;
  border-radius:0 6px 6px 0;
  color:#2a3a5a;
}
.amendment{
  font-family:'DM Sans',sans-serif;
 
  color:var(--muted);
  font-style:italic;
  background:rgba(0,0,0,0.03);
  border:1px solid var(--border);
  border-radius:4px;
  padding:4px 10px;
  display:inline-block;margin:4px 0;
}
.omitted{
  color:var(--muted);
  font-style:italic;
  background:rgba(0,0,0,0.03);
  border-radius:4px;
  padding:10px 14px;
  
  border-left:3px solid var(--border);
  margin:10px 0;
}

/* Section nav — fixed bottom bar */
.section-nav{
  flex-shrink:0;
  display:flex;justify-content:space-between;align-items:center;
  padding:10px 48px;
  background:#fff;
  border-top:1px solid var(--border);
  gap:16px;
  box-shadow:0 -2px 12px rgba(0,0,0,0.06);
  z-index:10;
}
.section-nav.hidden{display:none;}
.sec-nav-btn{
  background:none;border:1px solid var(--border);
  border-radius:8px;padding:10px 16px;
  cursor:pointer;font-family:'DM Sans',sans-serif;
  transition:all 0.2s;
  display:flex;flex-direction:column;gap:2px;
  max-width:42%;
  text-align:left;
}
.sec-nav-btn:hover{border-color:var(--blue);background:rgba(26,95,168,0.04);}
.sec-nav-btn.next{text-align:right;margin-left:auto;}
.sec-nav-dir{color:var(--muted);}
.sec-nav-title{color:var(--ink);font-weight:500;line-height:1.3; font-size:14px; white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

/* Index heading */
.index-section-heading{
  font-family:'DM Sans',sans-serif;
  text-transform:uppercase;
  color:var(--muted);font-weight:600;
  margin-bottom:10px;margin-top:10px;
  display:flex;align-items:center;gap:10px;
}
.index-section-heading::after{
  content:'';flex:1;height:1px;background:var(--border);
}

/* Floating tools */
.float-tools{
  position:fixed;right:20px;bottom:28px;
  display:flex;flex-direction:column;gap:8px;
  z-index:100;
}
.ft-btn{
  width:40px;height:40px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  box-shadow:0 2px 10px rgba(0,0,0,0.1);
  transition:all 0.2s;
  color:var(--muted);
}
.ft-btn:hover{border-color:var(--blue);color:var(--blue);box-shadow:0 4px 16px rgba(26,95,168,0.2);}
.ft-btn svg{width:16px;height:16px;}

/* Highlight on search */
mark{background:rgba(192,154,60,0.25);color:inherit;border-radius:2px;padding:0 1px;}


.act-header h3 {
    color: #323232;
    font-size: 19px;
    margin-top: 15px;
    font-weight: 500;
}
a.fees-rules-index {
    color: #323232;
}
a.form-patents-rulls {
    color: #1568dd;
    font-weight: 500;
    font-size: 16px;
}
table.table.fees-table {
    margin-top: 21px;
}
.aboutSectionArea-the-patents-act1970 h2.second-rules-head {
    color: #323232;
    font-size: 21px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0;
    margin-top: 27px;
}
.chapter-card .card-sections {
    display: none;
}
.chapter-card .card-rules {
    display: none;
}
.chapter-copyright font {
    font-size: 15px;
    line-height: 1.5;
    font-family: "DM Sans", sans-serif;
}
.chapters-grid.mtlefto {
    margin-top: 14px;
}
/* Responsive */
@media(max-width:700px){
  :root{--sidebar:0px;}
  .sidebar{position:fixed;left:-280px;width:280px;z-index:150;top:var(--header);bottom:0;height:auto;transition:left 0.3s;}
  .sidebar.open{left:0;box-shadow:4px 0 20px rgba(0,0,0,0.2);}
  .menu-toggle{display:flex;}
  .index-page,.section-page{padding:24px 20px 60px;}
  .index-hero{padding:0;}
  .header-search{display:none;}
  .header-badges{display:none;}
}

.text-center{ text-align:center; }
.mtb-20{ margin:80px 0 30px 0; }