.view-worksheets .views-view-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.view-worksheets .views-row {
  display: contents;
}

.view-worksheets .views-col {
  width: 100% !important;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.view-worksheets .views-col:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.view-worksheets .views-field-field-image {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.view-worksheets .views-field-field-image .field-content {
  height: 100%;
}

.view-worksheets .views-field-field-image a {
  display: block;
  height: 100%;
}

.view-worksheets .views-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.view-worksheets .views-col:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

.view-worksheets .views-field-title {
  background: linear-gradient(to bottom, #f8f9fa, #ffffff);
  transition: background 0.3s ease;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.view-worksheets .views-col:hover .views-field-title {
  background: linear-gradient(to bottom, #e9ecef, #f8f9fa);
}
.view-worksheets .views-field-title span {
    flex:1;
}
.view-worksheets .views-field-title a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.3s ease;
  display: block;
      padding: 15px;
      text-align: center;
}

.view-worksheets .views-field-title a:hover {
  color: #3498db;
}

/* Responsive */
@media (max-width: 1024px) {
  .view-worksheets .views-view-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .view-worksheets .views-field-field-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .view-worksheets .views-view-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .view-worksheets .views-field-field-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .view-worksheets .views-view-grid {
    grid-template-columns: 1fr;
  }
  
  .view-worksheets .views-field-field-image {
    height: 220px;
  }
}

body.page-node-type-worksheet .region.region-content {
    display: flex;
    gap:0px;
}

    div#comm-icon {
    /* position: absolute; */
    /* top: 140px;
    right: 50px; */
    /* z-index: 111;

        float: right;
    position: relative;
    top: -32px; */

    
}


    div#comm-icon {
    /* top: 140px;
    right: 50px; */
    z-index: 111;
    float: right;
    position: relative;
    top: 0px;
    height: 0px !important;
}

.region-sticky {
  height:0px !important;
}
div#toolbar-administration-secondary {
    margin-right: 40px;
}

@media screen and (max-width: 920px) {

      div#comm-icon {
    position: static;
    /* top: 140px;
    right: 50px;
    z-index: 111; */
}

body.page-node-type-worksheet .region.region-content {
    display: flex;
    gap:50px;
}

body.page-node-type-worksheet .region.region-content {
    flex-direction: column;
    width: 100%;
    gap: 0px;
}

.region.region-breadcrumb.gin-region-breadcrumb {
display:none;
}

}
div#block-gin-worksheetview {
    flex: 2;
}

body.page-node-type-worksheet div#block-gin-content {
    /* flex: 1;
        width: 30vw; */
}
#worksheetview {
        width: 100%;
    min-height: 100vh !important;
    border: 0px;
    border-radius: 20px;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    background: none !important;
}

.comm-form div.form-wrapper.filter-wrapper {
    display: none;
}

.comm-form div#edit-actions {
    margin:0px;
}
.node--view-mode-full .node__links {
    display: none;
}
.node--view-mode-full .comment-add {
    display: none;
}

.comm-form {
    margin-bottom: 60px;
}

.comment footer p {
    font-size: 11px;
}

h1.page-title {
    font-size: 22px;
}
/* .ck-content {
        min-height: 150px !important;
} */

.comment-container {
    display: flex;
    flex-direction: column-reverse;
}

.view-worksheets .views-col:hover .views-field-field-digital-element-name {
    background:linear-gradient(to bottom, #e9ecef, #f8f9fa);
}

.view-worksheets .field_digital_element_name {
    text-align: center;
    padding-bottom: 20px;
    font-size: 14px;
}

.comm-container {
    position: fixed;
    right: -400px;
    top: 0px;
    z-index: 11111111;
    background: #fff;
    height: 100%;
    width: 400px;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0px 0px 10px #00000047;
    transition: ease 0.4s all;
}

#close-bt1 {
  cursor: pointer;
}

  .layout-container {
      margin: 0px 5px !important; 
  }
@media screen and (max-width:920px) {
  .comm-container {
        right: -70%;
        width:70%;
  }
  h1.page-title {
    font-size:12px;
  }
  .region-sticky {
    display:none;
  }

  #worksheetview {
    margin:0px;
    padding:0px !important;
  }
  .gin-secondary-toolbar.layout-container {
    display: none;
  }
  #worksheetview-container {
    margin-top:10px;
  }


  .help {
      display: none;
  }

  .region.region-highlighted {
      display: none;
  }

  .region.region-content {
            margin-top: 0px !important;
  }

  .layout-container {
      margin: 0px !important;
  }

  div#worksheetview-container {
      margin-top: 0px;
  }
}

.comm-container.showsidebar {
  right: 0px;
}
div#comm-overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    background: #0000002e;
    right: 0px;
    top: 0px;
    z-index: 111111;
    opacity: 0px;
    visibility: hidden;
}

.view-worksheets .clearfix::after {
    display: none !important;
}
.blue-bt {
    background: #6F42C2;
        color: #fff;
        border-radius: 5px;
        padding: 10px 20px;
        font-size: 12px;
        font-weight: bold;
        cursor: pointer;
    }





h1.page-title {
    font-size: 12px !important;
}

body {
    padding-top: 0px !important;
    margin-top: 0px !important; 
}

div#toolbar-administration {
    display: none;
}

.content-header.clearfix {
    height: 0px;
}
.sticky-shadow {
  display: none !important;
}

header.region.region-sticky {
    position: relative;
    top: 0px;
} 

.path-admin #toolbar-administration {
  display: block !important;
}

.content-header.clearfix {
    float: right;
}

header.region.region-sticky {
  float: left;
    width: auto;
}