/*
 * Homepage/Frontpage Styles - frontpage.css
 * Fixed to match current HTML structure
 */

/* ===============================
   Hide Page Title on Homepage
   =============================== */
   body.home .entry-header,
   body.home .page-header,
   body.home .entry-title,
   body.home .page-title,
   body.home h1.entry-title,
   body.home header.entry-header,
   body.home .page-title-section,
   body.home .wp-block-post-title {
     display: none !important;
     visibility: hidden !important;
     height: 0 !important;
     width: 0 !important;
     overflow: hidden !important;
     margin: 0 !important;
     padding: 0 !important;
     position: absolute !important;
     left: -9999px !important;
   }
   
   /* ===============================
      Network Background Animation & Hero Section
      =============================== */
   .wp-block-cover.network-bg-cover {
     position: relative !important;
     overflow: hidden !important;
     z-index: 1 !important;
     min-height: 70vh !important;
     padding-top: 10px !important;
     padding-bottom: 20px !important;
     isolation: isolate !important;
   }
   
   /* Canvas positioning for network animation */
   canvas#network-background,
   #network-background,
   .wp-block-cover.network-bg-cover canvas,
   .wp-block-cover.network-bg-cover #network-background {
     position: absolute !important;
     top: 0 !important;
     left: 0 !important;
     width: 100% !important;
     height: 100% !important;
     z-index: 1 !important;
     pointer-events: auto !important;
     display: block !important;
     opacity: 1 !important;
     visibility: visible !important;
   }
   
   /* Background element styling */
   .wp-block-cover__background,
   .wp-block-cover.network-bg-cover .wp-block-cover__background {
     pointer-events: none !important;
     z-index: 0 !important;
   }
   
   /* Content positioning */
   .wp-block-cover.network-bg-cover .wp-block-cover__inner-container {
     position: relative !important;
     z-index: 10 !important;
     padding: 10px 20px !important;
   }
   
   /* Hero title styling */
   .wp-block-cover.network-bg-cover h1 {
     font-size: 3.25rem !important;
     font-weight: 700 !important;
     margin-bottom: 0.5rem !important;
     color: white !important;
     text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
     line-height: 1.2 !important;
   }
   
   /* Subtitle styling - role */
   .wp-block-cover.network-bg-cover p:nth-of-type(1) {
     font-size: 1.8rem !important;
     font-weight: 600 !important;
     margin-bottom: 0.75rem !important;
     color: white !important;
     text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
     line-height: 1.4 !important;
   }
   
   /* Tagline styling */
   .wp-block-cover.network-bg-cover p:nth-of-type(2) {
     font-size: 1.25rem !important;
     font-style: italic !important;
     margin-bottom: 1.5rem !important;
     color: white !important;
     text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
     max-width: 800px !important;
     margin-left: auto !important;
     margin-right: auto !important;
   }
   
   /* Hero profile image styling */
   .wp-block-cover.network-bg-cover .profile-image img,
   .wp-block-cover.network-bg-cover .hero-profile-image img,
   .wp-block-image.hero-profile-image img,
   figure.hero-profile-image img,
   .hero-profile-image img,
   .profile-image img {
     border-radius: 50% !important;
     border: 4px solid rgba(255, 255, 255, 0.8) !important;
     box-shadow: 0 0 25px rgba(255, 255, 255, 0.2), 0 0 15px rgba(52, 152, 219, 0.3) !important;
     transition: all 0.3s ease !important;
     filter: grayscale(70%) !important;
     max-width: 350px !important;
     width: 350px !important;
     height: 350px !important;
     object-fit: cover !important;
     object-position: center !important;
     display: block !important;
     margin: 0 auto !important;
     user-select: none !important;
     -webkit-user-drag: none !important;
     pointer-events: none !important;
   }
   
   .wp-block-cover.network-bg-cover .profile-image img:hover,
   .wp-block-cover.network-bg-cover .hero-profile-image img:hover,
   .wp-block-image.hero-profile-image img:hover,
   figure.hero-profile-image img:hover {
     transform: scale(1.02) !important;
     border-color: white !important;
     box-shadow: 0 0 30px rgba(255, 255, 255, 0.3), 0 0 20px rgba(52, 152, 219, 0.4) !important;
     filter: grayscale(30%) !important;
   }
   
   /* Fix column layout in hero section */
   .wp-block-cover.network-bg-cover .wp-block-columns {
     display: flex !important;
     justify-content: center !important;
     align-items: center !important;
     width: 100% !important;
     max-width: 1200px !important;
     margin: 0 auto !important;
   }
   
   /* Hero buttons styling */
   .wp-block-cover.network-bg-cover .wp-block-buttons {
     display: flex !important;
     justify-content: center !important;
     align-items: center !important;
     flex-wrap: wrap !important;
     gap: 15px !important;
     width: 100% !important;
     margin: 0 auto !important;
   }
   
   .wp-block-cover.network-bg-cover .wp-block-button {
     margin: 0 !important;
   }
   
   .wp-block-cover.network-bg-cover .wp-block-button__link {
     position: relative !important;
     z-index: 15 !important;
     transition: all 0.3s ease !important;
     padding: 10px 20px !important;
     font-weight: 600 !important;
     font-size: 16px !important;
   }
   
   .wp-block-cover.network-bg-cover .wp-block-button:first-child .wp-block-button__link,
   .view-resume-button .wp-block-button__link {
     background-color: #3498db !important;
     color: white !important;
   }
   
   .wp-block-cover.network-bg-cover .wp-block-button:first-child .wp-block-button__link:hover,
   .view-resume-button .wp-block-button__link:hover {
     background-color: #2980b9 !important;
     transform: translateY(-3px) !important;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
   }
   
/* ===============================
   Core Competencies Section - FIXED WITH WIDER CARDS & RESTORED BACKGROUND
   =============================== */
   .core-competencies-section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 60px 0 !important;
    background-color: #2c2c2c !important;
    background-image: linear-gradient(135deg, #2c2c2c 0%, #1e1e1e 100%) !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Add subtle texture overlay - RESTORED */
  .core-competencies-section::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%233498db' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E") !important;
    opacity: 0.5 !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }
  
  /* Add subtle top border - RESTORED */
  .core-competencies-section::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: linear-gradient(to right, transparent, rgba(52, 152, 219, 0.3), transparent) !important;
  }
  
  /* Make content appear above the texture */
  .core-competencies-section .wp-block-group {
    width: 100% !important;
    max-width: 1400px !important; /* INCREASED for wider cards */
    margin: 0 auto !important;
    padding: 0 30px !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 2 !important;
  }
  
  .core-competencies-section h2 {
    color: #fff !important;
    text-align: center !important;
    margin-bottom: 40px !important;
    font-size: 2.5rem !important;
    position: relative !important;
  }
  
  /* CRITICAL FIX: Use CSS Grid with equal row heights and WIDER cards */
  .core-competencies-section .wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: 1fr !important; /* This makes all cards the same height */
    gap: 40px !important; /* INCREASED gap for better spacing */
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    align-items: stretch !important; /* Stretch all items to fill the row */
  }
  
  /* Remove any stray paragraphs */
  .core-competencies-section .wp-block-columns > p {
    display: none !important;
  }
  
  /* Equal height card styling - WIDER cards */
  .wp-block-column.has-border-color {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: 0 !important; /* Let grid control the height */
    height: 100% !important; /* Fill the grid cell completely */
    padding: 30px !important; /* INCREASED padding for wider cards */
    margin: 0 !important;
    box-sizing: border-box !important;
    background-color: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    overflow: visible !important; /* Allow content to be visible */
  }
  
  .wp-block-column.has-border-color:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
  }
  
  /* Core competencies headings with black titles */
  .wp-block-column.has-border-color h3 {
    position: relative !important;
    padding-bottom: 12px !important;
    margin-bottom: 20px !important;
    color: #151515 !important; /* Black title */
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    flex-shrink: 0 !important; /* Don't shrink the heading */
  }
  
  /* Squiggly flourish line with SVG - RESTORED & ENHANCED */
  .wp-block-column.has-border-color h3:after {
    content: '' !important;
    display: block !important;
    width: 60px !important;
    height: 6px !important;
    background: none !important;
    border: none !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    
    /* Create fancy squiggly pattern with a curved SVG background */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='6' viewBox='0 0 60 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,3 C5,0 10,6 15,3 C20,0 25,6 30,3 C35,0 40,6 45,3 C50,0 55,6 60,3' stroke='%233498db' stroke-width='2' fill='none'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left bottom !important;
    
    transition: all 0.3s ease !important;
  }
  
  /* Animation effect on hover */
  .wp-block-column.has-border-color:hover h3:after {
    transform: scaleX(1.1) !important;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='6' viewBox='0 0 60 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,3 C5,0 10,6 15,3 C20,0 25,6 30,3 C35,0 40,6 45,3 C50,0 55,6 60,3' stroke='%232980b9' stroke-width='2.5' fill='none'/%3E%3C/svg%3E") !important;
  }
  
  /* Content area - this will expand to fill remaining space */
  .wp-block-column.has-border-color .content-area {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }
  
  /* Bullet point paragraphs - better spacing and positioning */
  .wp-block-column.has-border-color p {
    position: relative !important;
    padding-left: 1.3em !important;
    margin-bottom: 10px !important;
    line-height: 1.5 !important;
    color: #333 !important;
    font-size: 0.95rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    flex-shrink: 0 !important; /* Don't compress the text */
  }
  
  /* Bullet points - better positioning */
  .wp-block-column.has-border-color p:before {
    content: "•" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    color: #3498db !important;
    font-size: 1.1em !important;
    line-height: 1.5 !important;
    font-weight: bold !important;
  }
  
  /* Hide empty paragraphs */
  .wp-block-column.has-border-color p:empty {
    display: none !important;
  }
  
  .wp-block-column.has-border-color p:empty:before {
    display: none !important;
  }
     
   /* ===============================
      Publications Section - FIXED TO MATCH CURRENT HTML
      =============================== */
   .publications-section {
     width: 100vw !important;
     max-width: 100vw !important;
     margin-left: calc(-50vw + 50%) !important;
     margin-right: calc(-50vw + 50%) !important;
     padding: 60px 0 !important;
     background-color: #1a1a1a !important;
     background-image: linear-gradient(160deg, #1a1a1a 0%, #242f3d 100%) !important;
     position: relative !important;
     left: 0 !important;
     right: 0 !important;
     box-sizing: border-box !important;
   }
   
   /* Add subtle dots pattern */
   .publications-section::before {
     content: "" !important;
     position: absolute !important;
     top: 0 !important;
     left: 0 !important;
     width: 100% !important;
     height: 100% !important;
     background-image: radial-gradient(#3498db 1px, transparent 1px) !important;
     background-size: 20px 20px !important;
     opacity: 0.03 !important;
     z-index: 1 !important;
     pointer-events: none !important;
   }
   
   /* Make content appear above the pattern */
   .publications-section .wp-block-group {
     width: 100% !important;
     max-width: 1200px !important;
     margin: 0 auto !important;
     padding: 0 20px !important;
     box-sizing: border-box !important;
     position: relative !important;
     z-index: 2 !important;
   }
   
   .publications-section h2 {
     margin-bottom: 40px !important;
     font-size: 2.5rem !important;
     color: #fff !important;
     text-align: center !important;
     text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
   }
   
   /* Fix the actual HTML structure - homepage-publication-showcase */
   .homepage-publication-showcase {
     display: grid !important;
     grid-template-columns: repeat(2, 1fr) !important;
     gap: 30px !important;
     width: 100% !important;
     margin: 0 !important;
     padding: 0 !important;
   }
   
   /* Publication category headers with icons */
   .publication-category {
     display: flex !important;
     align-items: center !important;
     margin-bottom: 30px !important;
   }
   
   .publication-category img {
     width: 60px !important;
     height: 60px !important;
     margin-right: 20px !important;
     border-radius: 50% !important;
     padding: 5px !important;
     background-color: #fff !important;
     box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
   }
   
   .publication-category h3 {
     color: #fff !important;
     font-size: 1.8rem !important;
     margin: 0 !important;
   }
   
   /* Homepage publication items - match your actual HTML structure */
   .homepage-publication-item {
     display: flex !important;
     flex-direction: column !important;
     background-color: rgba(255, 255, 255, 0.05) !important;
     border-radius: 8px !important;
     overflow: hidden !important;
     margin-bottom: 30px !important;
     transition: transform 0.3s ease, box-shadow 0.3s ease !important;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
     padding: 20px !important;
   }
   
   .homepage-publication-item:hover {
     transform: translateY(-5px) !important;
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
   }
   
   .homepage-publication-item h4 {
     margin: 0 0 10px 0 !important;
     color: #fff !important;
     font-size: 1.3rem !important;
   }
   
   .homepage-publication-item .publication-description {
     margin: 0 0 15px 0 !important;
     color: rgba(255, 255, 255, 0.8) !important;
     font-size: 1rem !important;
     font-style: italic !important;
     line-height: 1.5 !important;
   }
   
   .homepage-publication-item .publication-link {
     margin: 0 !important;
   }
   
   .homepage-publication-item .publication-link a {
     display: inline-block !important;
     padding: 8px 16px !important;
     background-color: #3498db !important;
     color: #fff !important;
     text-decoration: none !important;
     border-radius: 4px !important;
     font-weight: 600 !important;
     transition: background-color 0.3s ease !important;
   }
   
   .homepage-publication-item .publication-link a:hover {
     background-color: #2980b9 !important;
   }
   
   /* ===============================
      Contact Section
      =============================== */
   .contact-section {
     width: 100vw !important;
     max-width: 100vw !important;
     margin-left: calc(-50vw + 50%) !important;
     margin-right: calc(-50vw + 50%) !important;
     padding: 60px 0 !important;
     background-color: #1c2833 !important;
     background-image: linear-gradient(180deg, #1c2833 0%, #161616 100%) !important;
     position: relative !important;
     left: 0 !important;
     right: 0 !important;
     box-sizing: border-box !important;
     overflow: hidden !important;
   }
   
   /* Add subtle wave pattern at top */
   .contact-section::before {
     content: "" !important;
     position: absolute !important;
     top: 0 !important;
     left: 0 !important;
     width: 100% !important;
     height: 120px !important;
     background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100px' viewBox='0 0 1200 120' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.05' fill='%233498db'/%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.05' fill='%233498db'/%3E%3C/svg%3E") !important;
     background-size: cover !important;
     background-position: center top !important;
     z-index: 1 !important;
     pointer-events: none !important;
   }
   
   /* Make content appear above the wave */
   .contact-section .wp-block-group {
     width: 100% !important;
     max-width: 1200px !important;
     margin: 0 auto !important;
     padding: 0 20px !important;
     box-sizing: border-box !important;
     position: relative !important;
     z-index: 2 !important;
   }
   
   .contact-section h2 {
     color: #fff !important;
     text-align: center !important;
     margin-bottom: 40px !important;
     font-size: 2.5rem !important;
   }
   
   /* Form container styling - more interesting look */
   .contact-form-container {
     max-width: 800px !important;
     margin: 0 auto !important;
     padding: 30px !important;
     background: linear-gradient(135deg, #333 0%, #222 100%) !important;
     border: 1px solid rgba(52, 152, 219, 0.1) !important;
     border-radius: 10px !important;
     box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3) !important;
     overflow: hidden !important;
     position: relative !important;
   }
   
   /* Add subtle accent to form container */
   .contact-form-container::before {
     content: "" !important;
     position: absolute !important;
     top: 0 !important;
     left: 0 !important;
     width: 100% !important;
     height: 5px !important;
     background: linear-gradient(to right, #3498db, #2ecc71) !important;
   }
   
   .contact-form {
     display: flex !important;
     flex-direction: column !important;
     gap: 20px !important;
   }
   
   .form-row {
     display: flex !important;
     gap: 20px !important;
   }
   
   .form-group {
     flex: 1 !important;
     display: flex !important;
     flex-direction: column !important;
     gap: 8px !important;
   }
   
   .form-group label {
     font-weight: 600 !important;
     color: #fff !important;
   }
   
   /* Improve form inputs */
   .form-group input,
   .form-group textarea {
     padding: 12px !important;
     border: 1px solid rgba(255, 255, 255, 0.1) !important;
     border-radius: 4px !important;
     font-size: 16px !important;
     background-color: rgba(0, 0, 0, 0.2) !important;
     color: #fff !important;
     box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
     transition: all 0.3s ease !important;
   }
   
   .form-group input:focus,
   .form-group textarea:focus {
     background-color: rgba(0, 0, 0, 0.3) !important;
     border-color: #3498db !important;
     outline: none !important;
     box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(52, 152, 219, 0.15) !important;
   }
   
   /* Improved submit button */
   .submit-button {
     background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
     color: white !important;
     border: none !important;
     border-radius: 6px !important;
     padding: 12px 28px !important;
     text-transform: uppercase !important;
     letter-spacing: 1px !important;
     font-size: 14px !important;
     font-weight: 700 !important;
     cursor: pointer !important;
     transition: all 0.3s ease !important;
     align-self: flex-start !important;
     box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
   }
   
   .submit-button:hover {
     background: linear-gradient(135deg, #2980b9 0%, #2573a7 100%) !important;
     transform: translateY(-2px) !important;
     box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15) !important;
   }
   
   /* ===============================
      Mobile Responsive Styles
      =============================== */
   @media (max-width: 781px) {
     /* Hero section mobile adjustments */
     .wp-block-cover.network-bg-cover h1 {
       font-size: 2.5rem !important;
     }
     
     .wp-block-cover.network-bg-cover p:nth-of-type(1) {
       font-size: 1.5rem !important;
     }
     
     .wp-block-cover.network-bg-cover p:nth-of-type(2) {
       font-size: 1.1rem !important;
     }
     
     /* Profile image mobile sizing */
     .wp-block-cover.network-bg-cover .profile-image img,
     .wp-block-cover.network-bg-cover .hero-profile-image img,
     .hero-profile-image img {
       max-width: 250px !important;
       width: 250px !important;
       height: 250px !important;
     }
     
     /* Core competencies section mobile */
     .core-competencies-section .wp-block-columns {
       grid-template-columns: 1fr !important;
     }
     
     .wp-block-column.has-border-color {
       height: auto !important;
       margin-bottom: 20px !important;
     }
     
     /* Publications section mobile */
     .homepage-publication-showcase {
       grid-template-columns: 1fr !important;
     }
     
     /* Contact form mobile */
     .form-row {
       flex-direction: column !important;
     }
     
     .contact-form-container {
       padding: 30px 20px !important;
     }
   }
   
   @media (max-width: 600px) {
     .hero-profile-image img,
     .profile-image img {
       width: 220px !important;
       height: 220px !important;
     }
   }
   
   /* ===============================
      Additional Network Animation Fixes
      =============================== */
   /* Force pointer events to work properly */
   .wp-block-cover.network-bg-cover {
     isolation: isolate !important; /* Create stacking context */
   }
   
   /* Make background not block mouse events */
   .wp-block-cover__background,
   .wp-block-cover.network-bg-cover .wp-block-cover__background {
     pointer-events: none !important;
   }
   
   /* Ensure canvas gets events */
   #network-background {
     position: absolute !important;
     top: 0 !important;
     left: 0 !important;
     width: 100% !important;
     height: 100% !important;
     z-index: 1 !important;
     pointer-events: auto !important;
   }
   
   /* Make content appear above canvas */
   .wp-block-cover.network-bg-cover .wp-block-cover__inner-container {
     position: relative !important;
     z-index: 2 !important;
   }
   
   /* Fix for WordPress inserting paragraphs */
   .wp-block-cover p:empty {
     display: none !important;
     margin: 0 !important;
     padding: 0 !important;
   }

   @media (max-width: 900px) {
     .core-competencies-section .wp-block-columns {
       flex-direction: column !important;
       gap: 24px !important;
     }
     .core-competencies-section {
       padding: 40px 10px !important;
     }
     .wp-block-column.has-border-color {
       height: auto !important;
       min-height: 400px !important;
     }
   }

   .contact-form label {
     color: #fff !important;
     font-weight: 600 !important;
     margin-bottom: 4px !important;
   }
   .contact-form input,
   .contact-form textarea {
     color: #fff !important;
     background: rgba(0,0,0,0.2) !important;
     border: 1px solid #444 !important;
     border-radius: 4px !important;
     font-size: 16px !important;
     padding: 12px !important;
     margin-bottom: 8px !important;
   }
   .contact-form input::placeholder,
   .contact-form textarea::placeholder {
     color: #bbb !important;
     opacity: 1 !important;
   }
   .contact-form button[type="submit"] {
     background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
     color: #fff !important;
     border: none !important;
     border-radius: 6px !important;
     padding: 12px 28px !important;
     font-size: 16px !important;
     font-weight: 700 !important;
     cursor: pointer !important;
     margin-top: 10px !important;
     transition: background 0.2s;
   }
   .contact-form button[type="submit"]:hover {
     background: #2573a7 !important;
   }