/* Resources Page CSS - Based on Blog Design */

  
  :root {
    --primary-dark: #171738;
    --primary-purple: #533DA4;
  }

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #513BA3 0%, #7C4DFF 100%);
    padding: 180px 0 60px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}
#blog-posts{
    padding-top: 4rem;;
}

.blog-hero .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.blog-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-breadcrumb a:hover {
    color: #E2E8F0;
}

.blog-breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 25px;
    line-height: 1.2;
}


.hero-section {
    background: linear-gradient(135deg, #171738 0%, #8347E6 100%);
    padding: 180px 0;  /* Increased padding top and bottom */
    position: relative;
    overflow: hidden;
    min-height: 60vh;  /* Minimum height to ensure proper spacing */
    display: flex;     /* Enable flexbox for vertical centering */
    align-items: center; /* Center content vertically */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:linear-gradient(135deg, rgba(63, 43, 150, 0.85), rgba(45, 27, 105, 0.864)), url(../../assets/images/case-studies/bg_r.jpg);
  background-size: cover;
  background-position: center;
  animation: zoomBg 20s infinite alternate;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    color: white;
    text-align: center;  /* Center text content */
    margin: 0 auto;      /* Center the content block */
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;  /* Center the subtitle */
    opacity: 0;
    transform: translateY(30px);
}


.blog-meta-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c2057, #2c2057);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.author-details h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 2px;
}

.author-details p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.blog-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-excerpt {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    max-width: 800px;
}

/* Blog Layout */
.blog-layout {
    background: white;
    padding: 60px 0;
}

.blog-layout .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    align-items: start;
}

/* Main Content */
.blog-main-content {
    color: #1e293b;
}

.content-section {
    margin-bottom: 50px;
}

.content-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.content-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 35px;
    background: linear-gradient(135deg, #513BA3, #7C4DFF);
    border-radius: 2px;
}

.content-section > p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #64748b;
}

/* Case Studies Grid */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.case-study-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.case-study-card .card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.case-study-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-study-card:hover .card-image img {
    transform: scale(1.05);
}

.case-study-card .industry-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #513BA3, #7C4DFF);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.case-study-card .card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-study-card .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
}

.case-study-card .card-description {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.case-study-card .metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.case-study-card .metric-item {
    text-align: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
}

.case-study-card .metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #513BA3;
    display: block;
}

.case-study-card .metric-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 5px;
}

.case-study-card .view-case-study {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #513BA3;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.case-study-card .view-case-study:hover {
    color: #7C4DFF;
    transform: translateX(5px);
}

/* Blog Posts Grid */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #22c55e, #10b981);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.blog-card .blog-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-card .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.9);
}

.blog-card:hover .blog-image img {
    transform: scale(1.08);
    filter: brightness(1);
}

.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(179, 156, 241, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.blog-new-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.blog-card .blog-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #64748b;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-author .author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.blog-author .author-avatar:hover {
    border-color: #513BA3;
    transform: scale(1.05);
}



.blog-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card .blog-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 14px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
    color: #513BA3;
}

.blog-card .blog-excerpt {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 0.95rem;
    flex: 1;
}

.blog-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.read-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #64748b;
}

.blog-engagement {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: #64748b;
}

.engagement-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #533da4, #7055d4);
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.blog-card .read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.blog-card .read-more:hover::before {
    left: 100%;
}

.blog-card .read-more:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(185, 173, 246, 0.3);
}

/* Remove all sidebar styles */

/* Remove grid layout */
.blog-grid {
    display: block;
}

/* Newsletter CTA - CORRECT DESIGN */


.contact-form-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 3rem;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch; /* Changed from center to stretch */
  background: white;
  /* border-radius: 20px; */
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  min-height: 400px; /* Reduced minimum height */
}

.contact-content h3 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.contact-content p {
  color: rgba(23, 23, 56, 0.8);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-benefits {
  display: grid;
  gap: 1rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--primary-dark);
}

.benefit-item svg {
  color: var(--primary-purple);
}

.contact-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  height: 100%;
  align-self: stretch; /* Ensure it takes full height of grid cell */
}

.form-group {
  position: relative;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(131, 71, 230, 0.1);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: transparent;
}

.form-group label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(23, 23, 56, 0.6);
  transition: all 0.3s ease;
  pointer-events: none;
  background: white;
  padding: 0 0.5rem;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary-purple);
  outline: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not(:placeholder-shown) + label {
  top: 0;
  font-size: 0.875rem;
  color: var(--primary-purple);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--primary-purple);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.submit-btn svg {
  transition: transform 0.3s ease;
}

.submit-btn:hover svg {
  transform: translateX(5px);
}

@media (max-width: 968px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
    min-height: auto; /* Remove min-height on mobile */
  }
  
  .contact-content {
    text-align: center;
  }
  
  .benefit-item {
    justify-content: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .contact-content h3 {
    font-size: 1.75rem;
  }
  
  .contact-form {
    height: auto; /* Remove full height on mobile */
  }
}

@media (max-width: 480px) {
  .contact-form-section {
    padding: 60px 0;
  }
  
  .contact-wrapper {
    padding: 1.5rem;
  }
}