/* CSS Variables */
:root {
    --gm-Red-50: #FFEBEE;
    --gm-Red-100: #FFCDD2;
    --gm-Red-200: #EF9A9A;
    --gm-Red-300: #E57373;
    --gm-Red-400: #EF5350;
    --gm-Red-500: #F44336;
    --gm-Red-600: #E53935;
    --gm-Red-700: #D32F2F;
    --gm-Red-800: #C62828;
    --gm-Red-900: #B71C1C;
    --gm-Red-A100: #FF8A80;
    --gm-Red-A200: #FF5252;
    --gm-Red-A400: #FF1744;
    --gm-Red-A700: #D50000;
    /* Add all other color variables here... */
  }
  
  /* Font Awesome Spin Animation */
  .fa-spin-fast {
    -webkit-animation: fa-spin-fast 0.2s infinite linear;
    animation: fa-spin-fast 0.2s infinite linear;
  }
  
  @-webkit-keyframes fa-spin-fast {
    0% {
      -webkit-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(359deg);
      transform: rotate(359deg);
    }
  }
  
  @keyframes fa-spin-fast {
    0% {
      -webkit-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(359deg);
      transform: rotate(359deg);
    }
  }
  
  /* Material Card Styles */
  .material-card {
    position: relative;
    height: 0;
    padding-bottom: calc(100% - 16px);
    margin-bottom: 6.6em;
  }
  
  .material-card h2 {
    position: absolute;
    top: calc(100% - 16px);
    left: 0;
    width: 100%;
    padding: 10px 16px;
    color: #000000;
    font-size: 1.4em;
    line-height: 1.6em;
    margin: 0;
    z-index: 10;
    transition: all 0.3s;
  }
  
  .material-card h2 span {
    display: block;
  }
  
  .material-card h2 strong {
    font-weight: 400;
    display: block;
    font-size: 0.8em;
  }
  
  .material-card h2:before,
  .material-card h2:after {
    content: ' ';
    position: absolute;
    left: 0;
    top: -16px;
    width: 0;
    border: 8px solid;
    transition: all 0.3s;
  }
  
  .material-card h2:after {
    top: auto;
    bottom: 0;
  }
  
  .material-card.mc-active h2 {
    top: 0;
  }
  
  .material-card.mc-active h2:before {
    top: 0;
  }
  
  .material-card.mc-active h2:after {
    bottom: -16px;
  }
  
  .material-card .mc-content {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 16px;
    left: 16px;
    transition: all 0.3s;
  }
  
  .material-card .mc-btn-action {
    position: absolute;
    right: 16px;
    top: 15px;
    border-radius: 50%;
    border: 5px solid;
    width: 54px;
    height: 54px;
    line-height: 44px;
    text-align: center;
    color: #000000;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s;
  }
  
  .material-card.mc-active .mc-btn-action {
    top: 62px;
  }
  
  .material-card .mc-description {
    position: absolute;
    top: 100%;
    right: 30px;
    left: 30px;
    bottom: 54px;
    overflow: overlay;
    opacity: 0;
    transition: all 1.2s;
    scrollbar-width: thin; /* Custom thin scrollbar */
    scroll-behavior: smooth; /* Enables smooth scrolling */
  }
  
  .material-card .mc-footer {
    height: 0;
    overflow: hidden;
    transition: all 0.3s;
  }
  
  .material-card .mc-footer h4 {
    position: absolute;
    top: 200px;
    left: 30px;
    padding: 0;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    transition: all 1.4s;
  }
  
  .material-card .mc-footer a {
    display: block;
    float: left;
    position: relative;
    width: 52px;
    height: 52px;
    margin-left: 5px;
    margin-bottom: 15px;
    font-size: 28px;
    color: #fff;
    line-height: 52px;
    text-decoration: none;
    top: 200px;
  }
  
  .material-card .mc-footer a:nth-child(1) {
    transition: all 0.5s;
  }
  
  .material-card .mc-footer a:nth-child(2) {
    transition: all 0.6s;
  }
  
  .material-card .mc-footer a:nth-child(3) {
    transition: all 0.7s;
  }
  
  .material-card .mc-footer a:nth-child(4) {
    transition: all 0.8s;
  }
  
  .material-card .mc-footer a:nth-child(5) {
    transition: all 0.9s;
  }
  
  .material-card .img-container {
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    transition: all 0.3s;
  }
  
  .material-card.mc-active .img-container {
    border-radius: 20%;
    left: 0;
    top: 12px;
    width: 0px;
    height: 0px;
    z-index: 20;
  }
  
  .material-card.mc-active .mc-content {
    padding-top: 5.6em;
  }

  .material-card.mc-active .mc-description {
    top: 50px;
    padding-top: 4em;
    opacity: 1;
  }
  
  .material-card.mc-active .mc-footer {
    overflow: visible;
    position: absolute;
    top: calc(100% - 16px);
    left: 16px;
    right: 0;
    height: 82px;
    padding-top: 15px;
    padding-left: 25px;
  }
  
  .material-card.mc-active .mc-footer a {
    top: 0;
  }
  
  .material-card.mc-active .mc-footer h4 {
    top: -32px;
  }
  
  /* Color-specific styles */
  .material-card.Red h2 {
    background-color: #e7fa50;
  }
  
  .material-card.Red h2:after {
    border-top-color: #e7fa50;
    border-right-color: #e7fa50;
    border-bottom-color: transparent;
    border-left-color: transparent;
  }
  
  .material-card.Red h2:before {
    border-top-color: transparent;
    border-right-color: #677023;
    border-bottom-color: #677023;
    border-left-color: transparent;
  }
  
  .material-card.Red.mc-active h2:before {
    border-top-color: transparent;
    border-right-color: #e7fa50;
    border-bottom-color: #e7fa50;
    border-left-color: transparent;
  }
  
  .material-card.Red.mc-active h2:after {
    border-top-color: #677023;
    border-right-color: #677023;
    border-bottom-color: transparent;
    border-left-color: transparent;
  }
  
  .material-card.Red .mc-btn-action {
    background-color: #e7fa50;
  }
  
  .material-card.Red .mc-btn-action:hover {
    background-color: #e7fa50;
  }
  
  .material-card.Red .mc-footer h4 {
    color: #e7fa50;
  }
  
  .material-card.Red .mc-footer a {
    background-color: #e7fa50;
  }
  
  .material-card.Red.mc-active .mc-content {
    background-color: var(--gm-Red-50);
  }
  
  .material-card.Red.mc-active .mc-footer {
    background-color: var(--gm-Red-100);
  }
  
  .material-card.Red.mc-active .mc-btn-action {
    border-color: var(--gm-Red-50);
  }
  

  .img-responsive {
    vertical-align: middle;
    height: 550px;
}

