/* Page-specific styles for grc-frameworks.html */
/* Container classes for layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

.container-fluid {
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}
/* HERO FLEX LAYOUT */


/* HERO GRID LAYOUT */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

/* LEFT IMAGE */

.hero-image {
  /* No flex here, let grid control sizing */
}

.hero-image img{
  width:100%;
  height:420px;
  object-fit:cover;
  border-radius:18px;
  box-shadow:0 14px 34px rgba(0,0,0,0.1);
}

/* RIGHT CONTENT */

.hero-content {
  /* No flex here, let grid control sizing */
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1.5rem;
  height: 100%;
}

/* VISUAL GRID */

.grc-visual-grid{
  display:flex;
  flex-wrap:wrap;
  gap:0.9rem;
}

.grc-visual-tile{
  flex:1 1 calc(50% - 0.9rem);
}

/* MOBILE */

@media (max-width:900px){
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  .hero-image img{
    height:300px;
  }
  .grc-visual-tile{
    flex:1 1 100%;
  }
}
/* Note: backgrounds should be applied to parent elements, not directly to .container or .container-fluid */

/* GRC page hero (home-hero look + 2 columns) */
/* Main container flex layout */
.grc-hero-content .container,
.service-page-content > .container,
.trust-strip .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Remove home-page glass card behind hero copy */
.grc-hero-content .container {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.grc-hero-content .container::before,
.grc-hero-content .container::after {
  display: none;
  content: none;
}

/* Hero overlay: blue left -> transparent right */
.hero-image::after {
  background: linear-gradient(
    90deg,
    rgba(7, 24, 54, 0.96) 0%,
    rgba(0, 73, 145, 0.84) 38%,
    rgba(0, 102, 204, 0.48) 66%,
    rgba(0, 102, 204, 0.16) 82%,
    rgba(0, 102, 204, 0) 100%
  );
}

.grc-hero-grid {
  display: flex;
  flex-direction: row;
  gap: 2.25rem;
  align-items: stretch;
  width: 100%;
}

@media (max-width: 900px) {
  .grc-hero-grid {
    flex-direction: column;
    gap: 1.5rem;
  }
}

.grc-hero-copy h1 {
  margin-top: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.08;
}

.grc-hero-copy {
  max-width: 44rem;
}

/* Improve hero proportions (closer to home) */

.hero {
  min-height: 640px;
  background: url('/public/images/GRC-Framework-hero-bg.webp') center center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 53, 145, 0.82) 0%, rgba(0,73,145,0.68) 38%, rgba(0,102,204,0.32) 66%, rgba(0,102,204,0.08) 82%, rgba(0,102,204,0) 100%);
  
}

.hero > .container, .hero .hero-content, .hero .grc-hero-content {
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .hero {
    min-height: 560px;
    background-position: center top;
  }
}

.grc-hero-content {
  padding: 5.25rem 0;
}

.grc-hero-buttons {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.grc-hero-buttons .btn {
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.grc-hero-visual {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(3, 18, 40, 0.22);
  padding: 1.25rem;
}

.grc-visual-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: stretch;
}

@media (max-width: 520px) {
  .grc-visual-grid {
    flex-direction: column;
    gap: 0.6rem;
  }
}

.grc-visual-tile {
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: var(--white);
  padding: 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
}

.grc-visual-tile img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  opacity: 0.95;
}

.grc-visual-tile .tile-title {
  margin-top: 0.25rem;
  font-weight: 800;
  color: var(--secondary-color);
}

.grc-visual-tile .tile-desc {
  color: var(--text-light);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Reduce glassmorphism for hero buttons */
.grc-hero-content .btn-primary {
  background: var(--primary-color);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.grc-hero-content .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.grc-hero-content .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.grc-hero-content .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
}

/* Trust strip */
.trust-strip .container-fluid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .trust-strip .container-fluid {
    flex-direction: column;
    gap: 0.8rem;
  }

  .trust-item {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .trust-strip .container-fluid {
    flex-direction: column;
    gap: 0.6rem;
  }

  .trust-item {
    width: 100%;
  }
}

.trust-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: rgba(0, 102, 204, 0.03);
  text-align: left;
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 102, 204, 0.12);
  color: var(--primary-color);
  font-weight: 800;
  flex: 0 0 auto;
}

.trust-text {
  line-height: 1.35;
}

.trust-text strong {
  display: block;
  color: var(--secondary-color);
  font-size: 0.98rem;
}

.trust-text span {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Section background patches */
.service-page-content {
  background: var(--bg-light);
}

.grc-section--dark {
  background: #0b1220;
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
}

.grc-section--dark h2,
.grc-section--dark h3 {
  color: #ffffff;
}

.grc-section--dark p,
.grc-section--dark li {
  color: rgba(255, 255, 255, 0.82);
}

.grc-section--dark .badge {
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.grc-section--dark a {
  color: #93c5fd;
}

.grc-section--blue {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.15), rgba(0, 82, 163, 0.06));
  border-color: rgba(0, 102, 204, 0.25);
}

.grc-section {
  margin-bottom: 2rem;
  margin-top: 2rem;
  background: var(--white);
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.grc-section::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  background-repeat: no-repeat;
  background-position: top right;
  background-size: contain;
  opacity: 0.08;
  pointer-events: none;
  transform: rotate(-6deg);
}

.service-details > .grc-section:nth-of-type(1)::after {
  background-image: url("/public/images/Group-93.svg");
}

.service-details > .grc-section:nth-of-type(2)::after {
  background-image: url("/public/images/Group-94.svg");
}

.service-details > .grc-section:nth-of-type(3)::after {
  background-image: url("/public/images/Group-95.svg");
}

.service-details > .grc-section:nth-of-type(4)::after {
  background-image: url("/public/images/Group-96.svg");
}

.grc-section--dark::after {
  opacity: 0.06;
  filter: brightness(1.8);
}

.grc-section h2 {
  font-size: 1.75rem;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
}

.grc-section h3 {
  font-size: 1.25rem;
  color: var(--secondary-color);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.grc-section ul {
  margin-top: 0.75rem;
  margin-left: 1.25rem;
}

.grc-section ul li {
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.badge {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  background: rgba(0, 102, 204, 0.08);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.callout {
  border-left: 4px solid var(--primary-color);
  background: var(--bg-light);
  padding: 1.25rem 1.25rem;
  border-radius: 8px;
  margin: 1.5rem 0 0 0;
}

.grc-section--dark .callout {
  background: rgba(255, 255, 255, 0.06);
  border-left-color: rgba(147, 197, 253, 0.9);
}

.grc-section--dark .callout p {
  color: rgba(255, 255, 255, 0.82);
}

/* Additional responsive styles for better mobile experience */

@media (max-width: 768px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero-content {
    flex-direction: column;
    gap: 2rem;
    justify-content: flex-start;
  }

  .grc-hero-content {
    padding: 3rem 0;
  }

  .grc-hero-copy h1 {
    font-size: 1.8rem;
  }

  .grc-hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .grc-hero-buttons .btn {
    text-align: center;
  }

  .grc-visual-grid {
    gap: 0.6rem;
  }

  .grc-visual-tile {
    padding: 0.8rem;
  }

  .trust-item {
    padding: 0.7rem 0.8rem;
  }

  .trust-icon {
    width: 32px;
    height: 32px;
  }

  .intro-split {
    gap: 1.2rem;
  }

  .intro-media {
    width: 100%;
  }

  .carousel-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .carousel-controls {
    justify-content: center;
  }

  .grc-section {
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
  }

  .grc-section h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 480px;
  }

  .hero-content {
    gap: 1.5rem;
  }

  .grc-hero-content {
    padding: 2rem 0;
  }

  .grc-hero-copy {
    text-align: center;
  }

  .grc-hero-copy h1 {
    font-size: 1.6rem;
  }

  .grc-visual-tile {
    padding: 0.6rem;
  }

  .grc-visual-tile .tile-title {
    font-size: 0.95rem;
  }

  .grc-visual-tile .tile-desc {
    font-size: 0.9rem;
  }

  .trust-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .trust-icon {
    width: 28px;
    height: 28px;
    align-self: center;
  }

  .carousel-slide {
    padding: 1.2rem;
  }

  .slide-title {
    font-size: 1.1rem;
  }

  .badge {
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
  }
}

/* Intro split (image left, text right) */
.intro-split {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  margin: 2.25rem 0 2.75rem;
}

@media (max-width: 900px) {
  .intro-split {
    flex-direction: column;
    gap: 1.5rem;
  }
}

.intro-media {
  border-radius: 18px;
  overflow: hidden;
  width: 80vw;
  border: 1px solid var(--border-color);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
  background: var(--white);
}

.intro-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.intro-copy p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-top: 0;
}

/* Framework carousel */
.carousel {
  margin-top: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.08), rgba(255, 255, 255, 0));
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
}

.carousel-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-btn {
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--secondary-color);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.carousel-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.carousel-body {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 0;
}

@media (max-width: 900px) {
  .carousel-body {
    grid-template-columns: 1fr;
  }
}

.carousel-slide {
  padding: 1.5rem 1.5rem;
}

.carousel-slide .slide-top {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  font-weight: 700;
  color: var(--secondary-color);
  background: rgba(0, 102, 204, 0.04);
}

.slide-title {
  margin: 0;
  font-size: 1.35rem;
  color: var(--secondary-color);
}

.slide-desc {
  color: var(--text-light);
  line-height: 1.7;
}

.slide-list {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.slide-list li {
  margin: 0.45rem 0;
}

.carousel-art {
  position: relative;
  border-left: 1px solid var(--border-color);
  background: radial-gradient(circle at 30% 20%, rgba(0, 102, 204, 0.14), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(0, 102, 204, 0.1), transparent 55%);
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 1rem;
}

@media (max-width: 900px) {
  .carousel-art {
    border-left: none;
    border-top: 1px solid var(--border-color);
    min-height: 200px;
  }
}

.carousel-art img {
  width: min(340px, 85%);
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.1));
  opacity: 0.95;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background: var(--white);
}

.dot {
  border: 1px solid var(--border-color);
  background: var(--bg-light);
  color: var(--secondary-color);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dot[aria-current="true"] {
  background: rgba(0, 102, 204, 0.12);
  border-color: rgba(0, 102, 204, 0.35);
  color: var(--primary-color);
}
