/* ==========================================
   Consolidated Custom CSS for Growmore Laminate
   All inline styles from blade views are moved here
   ========================================== */

/* ------------------------------------------
   Home Page Styles
   ------------------------------------------ */
#text {
    display: none;
}
.grid-img {
    position: relative;
}
.new-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #e53824;
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 10;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(229, 56, 36, 0.3);
}

/* ------------------------------------------
   Catalogue Page Styles
   ------------------------------------------ */
/* VIEWER MODAL CSS */
.viewer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
}

.viewer-container {
  width: 90%;
  height: 90%;
  margin: 2% auto;
}

.cmd-close {
  color: white;
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  cursor: pointer;
}

/* DOWNLOAD MODAL CSS */
.download-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.download-modal-content {
  width: 600px;
  max-width: 95%;
  background: #fff;
  padding: 30px;
  position: relative;
  border-radius: 8px;
}

.close-download-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 24px;
  cursor: pointer;
}

.download-form .form-group {
  margin-bottom: 15px;
}

.download-form .form-control {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
  outline: none;
}

.download-form .form-control:focus {
  border-color: #e53824;
}

.download-form .form-control.is-invalid {
  border-color: red;
}

.download-form .error {
  color: red;
  font-size: 13px;
  display: block;
  margin-top: 5px;
}

.download-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

.download-form .form-row .form-group {
  flex: 1;
  min-width: 250px;
  margin-bottom: 0;
}

.download-form .submit-btn {
  width: 100%;
  padding: 12px;
  background: #e53824;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.download-form .submit-btn:hover {
  background: #e53824;
}

.download-form .submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ------------------------------------------
   Blog Styles
   ------------------------------------------ */
.blog-new-recent-image {
  width: 275px;
  height: auto;
}
.blog-new-recent-section {
  padding: 100px;
}

/* ------------------------------------------
   Specification / Quality Page Styles
   ------------------------------------------ */
.table-wrapper {
    margin: auto;
    background: #ffffff;
    overflow-x: auto;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table thead th {
    color: #ffffff;
    font-size: 15px;
    padding: 14px 12px;
    text-align: left;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.spec-table thead th:last-child {
    text-align: center;
    border-right: none;
}

.spec-table tbody td {
    padding: 12px;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid #d9d9d9;
    vertical-align: top;
}

.spec-table tbody td:last-child {
    text-align: center;
    font-size: 18px;
    color: #2e7d32;
    font-weight: bold;
}

.spec-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

/* Responsive Table */
@media (max-width: 768px) {
    .spec-table thead {
        font-size: 13px;
    }

    .spec-table tbody td {
        font-size: 13px;
    }
}

.laminate-layer-scroll {
    padding: 100px 0 80px;
}

.layer-flex {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

/* Sticky Image */
.layer-visual {
    flex: 1;
    position: sticky;
    top: 120px;
}

.layer-visual img {
    width: 100%;
}

/* Content Layer Steps */
.layer-content {
    flex: 1;
}

.layer-step {
    padding: 40px;
    margin-bottom: 80px;
    border-left: 4px solid #ddd;
    transition: 0.4s ease;
    opacity: 0.4;
}

.layer-step.active {
    border-color: #c44232;
    opacity: 1;
}

.layer-step span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #999;
}

.layer-step.active span {
    color: #000;
}

.layer-step h3 {
    font-size: 1.7rem;
    margin: 10px 0;
}

.layer-step p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

.layer-visual img {
    width: 100%;
    transition: opacity 0.35s ease-in-out;
    opacity: 1;
}

.layer-visual img.fade {
    opacity: 0;
}

.main-videos video{
    width: 100%;
}

/* Layer Flex Mobile */
@media (max-width: 768px) {
    .layer-flex {
        flex-direction: column;
    }

    .layer-visual {
        position: relative;
        top: auto;
    }
}
