/* Page-specific CSS for IT Security Blog */

.ac-container {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--layout-gutter);
}

/* Hero Section */
.ac-hero-section {
  background-image: linear-gradient(rgba(3, 33, 61, 0.8), rgba(3, 33, 61, 0.8)), url('blog-hero.jpg');
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  color: #FFFFFF;
  text-align: center;
}

.ac-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.2;
}

/* Keep oversized hero words readable without changing normal wrapping or type sizes. */
main .ac-hero-title {
  overflow-wrap: anywhere;
}

main .ac-hero-title .ac-hero-word {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  vertical-align: top;
  hyphens: manual;
}

/* Intro Section */
.ac-intro-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.ac-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ac-text-block p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #03213D;
  margin-bottom: 20px;
}

.ac-responsive-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Checklist Banner */
.ac-checklist-banner {
  padding: 60px 0;
  background-color: #E2EEF4;
}

.ac-banner-card {
  background-color: #4BAFFA; /* Based on markdown hint rgb(75, 175, 250) */
  border-radius: 15px;
  display: grid;
  grid-template-columns: 1fr 400px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.ac-banner-content {
  padding: 60px;
  color: #FFFFFF;
}

.ac-banner-content .ac-eyebrow {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: #03213D;
}

.ac-banner-content p {
  color: #03213D;
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.5;
}

.ac-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content Section */
.ac-content-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.ac-text-width-limit {
  max-width: 800px;
  margin: 0 auto;
}

.ac-content-section h2 {
  color: #03213D;
  font-size: 2rem;
  margin: 60px 0 25px;
}

.ac-content-section h3 {
  color: #03213D;
  font-size: 1.25rem;
  margin: 1.33em 0 10px;
}

.ac-content-section p {
  color: #03213D;
  line-height: 1.7;
  margin-bottom: 20px;
}

.ac-threat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 40px 0;
}

.ac-threat-item {
  background: #E2EEF4;
  padding: 25px;
  border-radius: 10px;
}

.ac-protection-list {
  margin: 40px 0;
}

.ac-protection-step {
  border-left: 4px solid #54ABDF;
  padding-left: 25px;
  margin-bottom: 30px;
}

/* CTA Section */
.ac-cta-section {
  padding: 80px 0;
  background-color: #03213D;
  color: #FFFFFF;
  text-align: center;
}

.ac-cta-box {
  max-width: 800px;
  margin: 0 auto;
}

.ac-cta-box .ac-eyebrow {
  color: #54ABDF;
  font-weight: 700;
  display: block;
  margin-bottom: 15px;
}

.ac-cta-box h3 {
  font-size: 2rem;
  margin-bottom: 25px;
}

.ac-cta-actions {
  margin-top: 40px;
}

/* Buttons */
.ac-primary-cta {
  display: inline-block;
  background-color: #FF8A3D;
  color: #03213D;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.ac-primary-cta:hover {
  transform: translateY(-2px);
}

/* Blog Grid */
.ac-blog-grid-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.ac-grid-header {
  margin-bottom: 40px;
  text-align: center;
}

.ac-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.ac-blog-card {
  border: 1px solid #E2EEF4;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ac-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.ac-card-body {
  padding: 20px;
  flex-grow: 1;
}

.ac-card-category {
  font-size: 0.8rem;
  color: var(--link-on-light);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.ac-card-body h4 {
  font-size: 1.1rem;
  line-height: 1.4;
  color: #03213D;
}

.ac-grid-footer {
  margin-top: 50px;
  text-align: center;
}

.ac-text-link {
  color: #03213D;
  font-weight: 700;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .ac-split-layout,
  .ac-banner-card,
  .ac-threat-grid,
  .ac-blog-grid {
    grid-template-columns: 1fr;
  }

  .ac-hero-title {
    font-size: 2rem;
  }

  .ac-banner-image {
    height: 300px;
  }

  .ac-banner-content {
    padding: 40px 20px;
  }
}

@media (max-width: 640px) {
  .ac-hero-section {
    padding: 60px 0;
  }

  .ac-intro-section, .ac-content-section, .ac-cta-section, .ac-blog-grid-section {
    padding: 50px 0;
  }

  .ac-banner-card {
    border-radius: 0;
  }
}

/* IT security requests: preserve the article layout, allow long personal requests. */
main .ac-cta-box {
  min-width: 0;
  overflow-wrap: anywhere;
}

main .ac-security-request {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
  text-align: center;
}

main .ac-security-request:hover {
  background-color: var(--action-orange-hover);
  color: var(--deep-blue);
}

main .ac-security-request:focus-visible {
  outline: 3px solid var(--focus-ring-dark);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--focus-ring-light);
}

@media (prefers-reduced-motion: reduce) {
  main .ac-security-request { transition: none; }
  main .ac-security-request:hover { transform: none; }
}
