* {
  font-family: 'Helvetica Neue', sans-serif !important;
}

/* NAVBAR CODE START HERE */
.topnav {
  width: 100%;
  object-fit: cover;
  position: -webkit-sticky;
  /* Safari */
  position: sticky;
}

/* BELOW SOURCE CODE IS FOR BODY  */
.body {
  background-image: url("../../assets/images/apps-background.png");
  font-family: 'Poppins ', sans-serif;
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  width: auto;
}

* {
  box-sizing: border-box;
}

/************************** CODE FOR BOX 1 ******************************************/

/* Style the tab */
.tab {
  overflow: hidden;
  width: 60%;
  height: 100%;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border: none;
  background-color: #c8c4c4;
}

/* Style the buttons inside the tab */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 12px 14px;
  transition: 0.3s;
  font-size: medium;
  font-weight: bold;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-image: linear-gradient(0deg, #2cbcf4 50%, white 95%);
}

/* Create an active/current tablink class */
.tab button.active {
  background-image: linear-gradient(0deg, #2cbcf4 50%, white 95%);
}

/* Style the tab content */
.tabcontent {
  width: 60%;
  display: none;
  padding: 10px 15px;
  border-top: none;
  background-color: white;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  font-weight: bold;
}

/* css to style grid under tabs */

.tabcontent#faq {
  font-size: 1.2rem;
  font-family: inherit;
  line-height: 1.5;
  color: #2cbcf4;
  text-decoration: none;
  list-style: none;
  padding: auto;
}

.tabcontent#faq a {
  text-decoration: none;
  color: #003267;
  padding-left: 10px;
}

/* for .tabcontent#faq:hover */
.tabcontent#faq li:hover {
  border-left: 5px solid yellow;
  cursor: pointer;
}

.tabcontent#eisin {
  font-size: 1.2rem;
  font-family: inherit;
  line-height: 1.5;
  color: #2cbcf4;
  text-decoration: none;
  list-style: none;
  padding: auto;
}

.tabcontent#eisin a {
  text-decoration: none;
  color: #003267;
  padding-left: 10px;
}

/* for .tabcontent#eisin:hover */
.tabcontent#eisin li:hover {
  border-left: 5px solid yellow;
  cursor: pointer;
}

/* css for downloads tab */
.grid-item ul {
  padding: 0;
}

#mcc.grid-item {
  padding: 0;
}

#mcc.grid-item h3 {
  margin-top: 0;
  color: #0097f0;
}

#mcc.grid-item li {
  list-style: none;
  margin-bottom: 10px;
}

#mcc.grid-item a {
  text-decoration: none;
  color: #003267;
  font-size: medium;
}

#mcc.grid-item a:hover {
  color: #23527c;
  border-left: 4px solid yellow;
  font-size: medium;
}

#trepo.grid-item {
  padding: 0;
}

#trepo.grid-item h3 {
  margin-top: 0;
  color: #0097f0;
}

#trepo.grid-item li {
  list-style: none;
  margin-bottom: 10px;
}

#trepo.grid-item a {
  text-decoration: none;
  color: #003267;
  font-size: medium;
}

#trepo.grid-item a:hover {
  color: #23527c;
  border-left: 4px solid yellow;
  font-size: medium;
}

#dfund.grid-item {
  padding: 0;
}

#dfund.grid-item h3 {
  margin-top: 0;
  color: #0097f0;
}

#dfund.grid-item .inner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

#dfund.grid-item .grid-item {
  padding: 0s;
}

#dfund.grid-item h4 {
  margin-top: 0;
  color: #1499cd;
  font-weight: bold;
}

#dfund.grid-item li {
  list-style: none;
  margin-bottom: 10px;
}

#dfund.grid-item a {
  text-decoration: none;
  color: #003267;
}

#dfund.grid-item a:hover {
  color: #23527c;
  border-left: 4px solid yellow;
}

#fseg.grid-item {
  padding: 0;
}

#fseg.grid-item h3 {
  margin-top: 0;
  color: #0097f0;
}

#fseg.grid-item .inner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

#fseg.grid-item .grid-item {
  padding: 0s;
}

#fseg.grid-item h4 {
  margin-top: 0;
  color: #1499cd;
  font-weight: bold;
}

#fseg.grid-item li {
  list-style: none;
  margin-bottom: 10px;
}

#fseg.grid-item a {
  text-decoration: none;
  color: #003267;
}

#fseg.grid-item a:hover {
  color: #23527c;
  border-left: 4px solid yellow;
}

.inner-grid>.bottomgrid {
  padding: 0px;
  font-size: medium;
}

.inner-grid>.bottomgrid {
  margin-top: 15%;
  font-size: medium;
  bottom: 0;
}

/* CSS for grid layout */
.grid-container {
  display: grid;
  margin: top 0;
  width: fit-content;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0px;
  list-style-type: none;
  padding: 0em;
}

.inner-grid {
  display: grid;
  margin-top: 0%;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0px;
  font-size: medium;
}

.grid-item {
  margin-top: 0%;
  background-color: none;
  padding: 0px;
  margin-right: 15px;
  text-align: left;
  list-style-type: none;
  font-weight: bold;
}

.grid-item,
#mcc {
  list-style-type: none;
}

.bottomgrid {
  font-weight: bold;
  margin-right: 10%;
}

/************************** END CODE FOR BOX 1 END ******************************************/


/********************* CODE FOR BOX 2 ******************************************/
.boxsplit {
  position: absolute;
  margin-left: 60%;
  width: 35%;
  /* Remove fixed height, add min-height */
  min-height: 405px;
  padding-left: 15px;
  padding-right: 15px;
  background-color: white;
  border-radius: 15px;
  overflow-y: auto;
  /* enable vertical scroll if content overflows */
  box-sizing: border-box;
}

/* Add spacing below forms/buttons inside boxsplit */
.boxsplit form,
.boxsplit select,
.boxsplit #login {
  margin-bottom: 15px;
}

/********************* used clearfix to align the boxes ***************/
.clearfix {
  display: grid;
  margin-top: 2%;
  margin-right: 2%;
  margin-left: 2%;
}

.clearfix::after {
  content: "";
  clear: both;
  margin-right: 10%;
  margin-left: 10%;
}

/*****************************  clear fix ends here *********************/

/* CODE FOR BOX 2 FORM */

.title-boxsplit {
  color: #0097f0;
  height: 40px;
  width: 240px;
  margin-top: 0;
  padding-bottom: 10%;
  border-bottom: 3px solid yellow;
}

#login:disabled {
  background-color: #e0e0e0;
  color: #a0a0a0;
  cursor: not-allowed;
  box-shadow: none;
  border: 1px solid #ccc;
}

#login:disabled:hover {
  background-color: #e0e0e0;
  color: #a0a0a0;
  box-shadow: none;
}

form {
  margin-top: 0%;
}

select {
  width: 70%;
  height: 2%;
  padding: 6px 8px;
  margin: 10px 0;
  font-size: 1em;
  font-weight: 500;
  border: none;
  box-sizing: border-box;
  box-shadow: inset 5px 5px 5px lightgray;
  border-radius: 25px;
}

select:after {
  content: '\25BC';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

#login {
  width: 25%;
  height: 2%;
  border: none;
  background-color: #f5eb35;
  align-self: center;
  padding: 6px 8px;
  text-align: center;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  color: #003267;
  box-shadow: inset 0 0 5px grey;
  border-radius: 25px;
}

/* FOR HOVER EFFECT */
#login:hover {
  background-color: #003267;
  color: white;
  box-shadow: inset 0 0 5px grey;
}

.container {
  margin: 0;
  width: fit-content;
  height: fit-content;
  overflow: hidden;
  position: relative;
}

.container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* make the button full-width on small screens */
@media (max-width: 768px) {
  button {
    width: 100%;
  }
}

/* CODE FOR BOX 2 FORM END */


/******************* CODE FOR FOOTER STARTS ****************/
.footer {
  color: white;
  text-align: center;
  width: 100%;
  height: 48px;
  bottom: 0;
  position: absolute;
  display: block;
}

/********************* CODE FOR FOOTER ENDS *****************/


/* ================= RESPONSIVE IMPROVEMENTS ================= */
@media screen and (max-width: 768px) {

  .tab,
  .tabcontent {
    width: 100% !important;
  }

  .grid-container,
  .inner-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto;
  }

  .grid-item {
    margin-right: 0 !important;
  }

  .clearfix {
    display: flex !important;
    flex-direction: column !important;
    margin: 2% !important;
  }

  .boxsplit {
    position: static !important;
    width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    margin-left: 0 !important;
    margin-top: 20px;
    overflow: visible !important;
  }

  .title-boxsplit {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
  }

  select,
  #login {
    width: 100% !important;
    font-size: 1rem;
  }

  .footer {
    position: relative;
    height: auto;
    padding: 20px 0;
  }
}

/* =========================================
   DOWNLOADS
   ========================================= */

#downloads {
  padding: 22px 28px 26px;
  box-sizing: border-box;
}

/* Header */

.downloads-header {
  margin-bottom: 18px;
  border-bottom: 1px solid #e4e9ee;
  padding-bottom: 12px;
}

.downloads-header h2 {
  margin: 0;
  color: #164c72;
  font-size: 22px;
  font-weight: 600;
}

.downloads-header p {
  margin: 4px 0 0;
  color: #71808c;
  font-size: 13px;
}


/* Main column layout */

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 22px;
  align-items: start;
}


/* Individual section */

.download-section {
  min-width: 0;
  padding: 0 0 12px;
}


/* Section heading */

.download-section>h3 {
  margin: 0 0 9px;
  padding: 8px 11px;

  color: #ffffff;
  background: #165b80;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;

  border-radius: 4px;
}


/* Subsection */

.download-subsection {
  margin: 0 0 13px;
}

.download-subsection:last-child {
  margin-bottom: 0;
}

.download-subsection h4 {
  margin: 0 0 5px;
  padding-left: 2px;

  color: #315d75;
  font-size: 12px;
  font-weight: 600;

  text-transform: uppercase;
  letter-spacing: 0.35px;
}


/* Document list */

.download-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.download-list li {
  margin: 0;
  padding: 0;

  border-bottom: 1px solid #edf0f2;
}

.download-list li:last-child {
  border-bottom: none;
}


/* Document link */

.download-list a {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 7px 4px;

  color: #3d5969;
  text-decoration: none;

  font-size: 12px;
  line-height: 1.35;

  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.download-list a:hover {
  color: #0b648d;
  background: #f5f9fb;
}


/* File type badges */

.pdf-icon,
.doc-icon {
  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 27px;
  height: 18px;

  border-radius: 3px;

  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.pdf-icon {
  color: #c0392b;
  background: #fff0ee;
  border: 1px solid #f3d0cc;
}

.doc-icon {
  color: #2468a5;
  background: #edf5fc;
  border: 1px solid #cfe2f3;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1100px) {

  .downloads-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


@media (max-width: 700px) {

  #downloads {
    padding: 18px 16px 22px;
  }

  .downloads-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .download-section>h3 {
    font-size: 13px;
  }

  .download-list a {
    font-size: 12px;
    padding: 8px 4px;
  }

}





/* =====================================================
   SHARED CONTENT SECTIONS
   Used by:
   - FAQ
   - Eligible ISIN
   ===================================================== */

   .content-header {
    margin-bottom: 18px;
    border-bottom: 1px solid #e4e9ee;
    padding-bottom: 12px;
  }
  
  .content-header h2 {
    margin: 0;
    color: #164c72;
    font-size: 22px;
    font-weight: 600;
  }
  
  .content-header p {
    margin: 4px 0 0;
    color: #71808c;
    font-size: 13px;
  }
  

/* =====================================================
   FLEXIBLE LINK GRID
   ===================================================== */

.link-grid {
  display: grid;

  /*
     * Automatically uses the available width.
     *
     * 3 columns when space allows.
     * 2 columns on smaller screens.
     * 1 column on mobile.
     */
  grid-template-columns:
    repeat(auto-fit, minmax(250px, 1fr));

  gap: 14px;

  align-items: start;
}


/* =====================================================
   LINK SECTION
   ===================================================== */

.link-section {


  border: 1px solid #e5e5e5;
  border-radius: 6px;

  padding: 15px 17px;

  /*
     * Prevent a tall section from stretching neighbouring
     * sections.
     */
  align-self: start;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.link-section:hover {
  border-color: #cfcfcf;

  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.05);
}


/* =====================================================
   SECTION TITLE
   ===================================================== */

.link-section h3 {

  color: #ffffff;
  background: #165b80;

  font-size: 15px;
  font-weight: 600;


  margin: 0 0 9px;
  padding: 8px 11px;

  border-radius: 4px;
}


/* =====================================================
   LINK LIST
   ===================================================== */

.link-list {
  list-style: none;

  padding: 0;
  margin: 0;
}

.link-list li {
  margin: 0;
  padding: 0;
}


/* =====================================================
   LINK
   ===================================================== */

.link-list a {
  display: flex;
  align-items: center;

  gap: 8px;

  padding: 7px 5px;

  color: #555;

  text-decoration: none;

  font-size: 14px;
  line-height: 1.4;

  border-radius: 4px;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.link-list a:hover {
  background-color: #f6f6f6;
  color: #333;
}


/* =====================================================
   ARROW
   ===================================================== */

.link-arrow {
  flex: 0 0 auto;

  color: #b32025;

  font-size: 14px;
  font-weight: 600;

  transition:
    transform 0.2s ease;
}

.link-list a:hover .link-arrow {
  transform: translateX(2px);
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 800px) {

  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 560px) {

  .link-grid {
    grid-template-columns: 1fr;
  }

  .link-section {
    padding: 13px 14px;
  }
}
