/* ==========================================================================
   Shallow Ceramic - Group of Companies + Certificates
   --------------------------------------------------------------------------
   Standalone stylesheet for the two home-page sections in
   resources/views/welcome.blade.php.

   Every selector is namespaced `sc-gc-`. There are NO global/element
   selectors in this file, so it cannot alter any existing theme element.

   IMPORTANT - no scroll animations here on purpose.
   include/script.blade.php runs AOS.init({ startEvent:'load', once:true }),
   which parks every [data-aos] element at opacity:0 until AOS decides to
   reveal it. That makes AOS-driven blocks prone to staying invisible. These
   sections therefore use no data-aos attributes and are visible immediately.
   Do not add data-aos here.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared section shell
   -------------------------------------------------------------------------- */
.sc-gc-section {
   position: relative;
   width: 100%;
}

.sc-gc-section--group {
   background-color: #f6f8f9;
}

.sc-gc-head {
   /* max-width: 720px; */
   margin: 0 auto 45px;
   text-align: center;
}

.sc-gc-head__eyebrow {
   display: block;
   margin-bottom: 10px;
   font-size: 14px;
   font-weight: 600;
   letter-spacing: 1.5px;
   text-transform: uppercase;
   color: var(--primary-color-one, #0099d4);
}

.sc-gc-head__title {
   margin: 0 0 14px;
   font-size: 38px;
   font-weight: 700;
   line-height: 1.25;
   color: var(--heading-dark, #282f3b);
}

.sc-gc-head__text {
   margin: 0;
   font-size: 16px;
   line-height: 1.7;
   color: #6d7681;
}

/* Grid: plain flex, so it does not depend on Bootstrap row/col behaviour */
.sc-gc-grid {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 30px;
   margin: 0;
   padding: 0;
   list-style: none;
}

.sc-gc-grid > li {
   flex: 0 1 340px;
   max-width: 340px;
   margin: 0;
   padding: 0;
   list-style: none;
}

/* --------------------------------------------------------------------------
   1. Group of Companies - logo cards
   -------------------------------------------------------------------------- */
.sc-gc-brand {
   display: block;
   height: 100%;
   padding: 34px 28px 28px;
   background-color: #fff;
   border: 1px solid #e5eaee;
   border-radius: 6px;
   text-align: center;
   text-decoration: none;
   transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.sc-gc-brand:hover,
.sc-gc-brand:focus {
   border-color: var(--primary-color-one, #0099d4);
   box-shadow: 0 14px 32px rgba(0, 0, 0, 0.09);
   text-decoration: none;
}

/* Fixed well so the wide SVG and the square JPG share a baseline */
.sc-gc-brand__logo {
   display: block;
   width: 100%;
   height: 96px;
   margin-bottom: 20px;
   line-height: 96px;
   text-align: center;
}

.sc-gc-brand__logo img {
   display: inline-block;
   max-width: 88%;
   max-height: 96px;
   width: auto;
   height: auto;
   vertical-align: middle;
}

.sc-gc-brand__name {
   display: block;
   margin-bottom: 5px;
   font-size: 19px;
   font-weight: 700;
   line-height: 1.3;
   color: var(--heading-dark, #282f3b);
   transition: color 0.3s ease;
}

.sc-gc-brand:hover .sc-gc-brand__name {
   color: var(--primary-color-one, #0099d4);
}

.sc-gc-brand__url {
   display: block;
   font-size: 14px;
   font-weight: 500;
   line-height: 1.4;
   color: #7c858f;
   word-break: break-word;
   transition: color 0.3s ease;
}

.sc-gc-brand:hover .sc-gc-brand__url {
   color: var(--primary-color-one, #0099d4);
}

.sc-gc-brand__url .fa {
   margin-left: 5px;
   font-size: 12px;
}

/* --------------------------------------------------------------------------
   2. Certificates
   -------------------------------------------------------------------------- */
.sc-gc-cert {
   height: 100%;
   background-color: #fff;
   border: 1px solid #e5eaee;
   border-radius: 6px;
   overflow: hidden;
   transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.sc-gc-cert:hover {
   border-color: var(--primary-color-one, #0099d4);
   box-shadow: 0 14px 32px rgba(0, 0, 0, 0.09);
}

/* Fixed-height window: the source files are tall 800x1062 portraits, so an
   unconstrained thumbnail would balloon the page. Full size opens in Fancybox. */
.sc-gc-cert__thumb {
   position: relative;
   display: block;
   height: 340px;
   padding: 18px;
   background-color: #f4f6f8;
   text-align: center;
   text-decoration: none;
}

.sc-gc-cert__thumb img {
   display: inline-block;
   max-width: 100%;
   max-height: 304px;
   width: auto;
   height: auto;
   box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);
}

.sc-gc-cert__zoom {
   position: absolute;
   right: 16px;
   bottom: 16px;
   display: block;
   width: 42px;
   height: 42px;
   line-height: 42px;
   font-size: 15px;
   color: #fff;
   text-align: center;
   background-color: var(--primary-color-one, #0099d4);
   border-radius: 50%;
   opacity: 0.9;
   transition: opacity 0.3s ease;
}

.sc-gc-cert__thumb:hover .sc-gc-cert__zoom {
   opacity: 1;
}

.sc-gc-cert__body {
   padding: 20px 22px 22px;
   text-align: center;
}

.sc-gc-cert__title {
   margin: 0 0 4px;
   font-size: 18px;
   font-weight: 700;
   line-height: 1.35;
   color: var(--heading-dark, #282f3b);
}

.sc-gc-cert__meta {
   margin: 0;
   font-size: 14px;
   line-height: 1.5;
   color: #7c858f;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
   .sc-gc-head {
      margin-bottom: 35px;
   }

   .sc-gc-head__title {
      font-size: 30px;
   }

   .sc-gc-grid {
      gap: 24px;
   }

   .sc-gc-grid > li {
      flex: 0 1 300px;
      max-width: 300px;
   }

   .sc-gc-cert__thumb {
      height: 300px;
   }

   .sc-gc-cert__thumb img {
      max-height: 264px;
   }
}

@media (max-width: 575px) {
   .sc-gc-head__title {
      font-size: 25px;
   }

   .sc-gc-grid > li {
      flex: 1 1 100%;
      max-width: 100%;
   }
}
