/*
Theme Name: MediKart Child
Theme URI: https://breakroom.dannemiller.com
Description: Child theme for MediKart with custom styling for The Break Room
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Template: medikart
Author: VND
Author URI: alcides@vndx.com
Text Domain: medikart-child
Domain Path: /languages
*/

/* Import parent theme styles */
@import url('../medikart/style.css');



/* ============================================
   Contact Form 7 Styling - Acceptable Design
   ============================================ */

.wpcf7-form {
  max-width: 100%;
  margin: 0;
  padding: 40px 40px 0 40px;
  background: #f5f5f5;
}

/* Form Groups / Rows */
.wpcf7 .contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.wpcf7 .contact-col-full {
  grid-column: 1 / -1;
}

/* Form Labels */
.wpcf7-form label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #333;
  margin-bottom: 0.35rem;
}

/* Reduce spacing in form paragraphs */
.wpcf7-form p {
  margin-bottom: 0;
}

/* Reduce line breaks spacing */
.wpcf7-form label + br {
  display: none;
}

/* Add space between label and input via wrapper */
.wpcf7-form-control-wrap {
  display: block;
  margin-top: 0.25rem;
}

/* Text, Email, Tel Inputs */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #fafafa;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: #003DA5;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 61, 165, 0.1);
}

/* Textarea */
.wpcf7-form textarea {
  resize: vertical;
  min-height: 150px;
}

/* Select Dropdown */
.wpcf7-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Submit Button */
.wpcf7-form .wpcf7-submit {
  background-color: #003DA5;
  color: #fff;
  padding: 0.875rem 2.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.wpcf7-form .wpcf7-submit:hover {
  background-color: #002563;
  box-shadow: 0 4px 12px rgba(0, 61, 165, 0.3);
}

.wpcf7-form .wpcf7-submit:active {
  transform: translateY(1px);
}

/* Success / Error Messages */
.wpcf7-form .wpcf7-response-output {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.wpcf7-form .wpcf7-mail-sent-ok {
  background-color: #e3fff2;
  color: #198754;
  border: 1px solid #198754;
}

.wpcf7-form .wpcf7-aborted {
  background-color: #ffe6e8;
  color: #b80f0a;
  border: 1px solid #b80f0a;
}

.wpcf7-form .wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required.wpcf7-invalid,
.wpcf7-form .wpcf7-form-control.wpcf7-email.wpcf7-validates-as-email.wpcf7-invalid,
.wpcf7-form .wpcf7-form-control.wpcf7-tel.wpcf7-validates-as-tel.wpcf7-invalid,
.wpcf7-form .wpcf7-form-control.wpcf7-textarea.wpcf7-validates-as-required.wpcf7-invalid {
  border-color: #b80f0a;
  background-color: #fff;
}

/* Validation Error Messages */
.wpcf7-form .wpcf7-not-valid-tip {
  color: #b80f0a;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .wpcf7 .contact-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .wpcf7-form label {
    font-size: 0.8125rem;
  }

  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form input[type="tel"],
  .wpcf7-form select,
  .wpcf7-form textarea {
    padding: 0.75rem;
    font-size: 1rem;
  }
}

/* ============================================
   Additional Break Room Branding
   ============================================ */

/* Button styling consistency - Enhanced elegance */
.wp-block-button__link {
  background-color: #003DA5;
  color: #fff;
  padding: 14px 40px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 61, 165, 0.15);
}

.wp-block-button__link:hover {
  background-color: #002563;
  box-shadow: 0 6px 20px rgba(0, 61, 165, 0.3);
  transform: translateY(-2px);
}

.wp-block-button__link:active {
  transform: translateY(0);
}

/* Link colors */
a {
  color: #003DA5;
}

a:hover {
  color: #00B4D8;
}

.wpcf7-form .wpcf7-submit {
  display: block;
  margin: 0 auto;
}

/* Change order in small sizes for the menu to appear on the top left position */
@media only screen and (max-width: 600px){
  header > div > div > div:nth-child(1){
    order: 2;
  }
  header > div > div > div:nth-child(2){
    order: 1;
  }
  header > div > div > div:nth-child(3){
    order: 3;
  }
}

.subheading-max-width {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Hero Title & Subtitle - Text Shadow & Overlay
   ============================================ */

.hero-title {
  color: #FFFFFF;
  font-weight: 700;
  text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.35);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.hero-subtitle {
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  line-height: 1.6;

  /* Semi-transparent navy overlay background for legibility */
  background: rgba(0, 26, 77, 0.35);
  padding: 14px 18px;
  border-radius: 6px;
  /*display: inline-block;*/

  /* Frosted glass effect for modern look */
  backdrop-filter: blur(3px);

  /* Subtle text shadow for elegance */
  text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.25);
}

/* ============================================
   Hero Section Enhancement - hero-section class only
   ============================================ */

/*.hero-section {*/
/*  transition: transform 0.6s ease;*/
/*}*/

/*.hero-section:hover {*/
/*  transform: scale(1.02);*/
/*}*/

/* Hero Button - Enhanced styling for CTA prominence */
.hero-section .wp-block-button__link {
  padding: 16px 48px;
  font-size: 1.0625rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(0, 61, 165, 0.25);
}

.hero-section .wp-block-button__link:hover {
  box-shadow: 0 8px 28px rgba(0, 61, 165, 0.35);
  transform: translateY(-3px);
}

/* Hero Subheading styling for elegance */
.hero-section .wp-block-paragraph {
  letter-spacing: 0.3px;
  line-height: 1.8;
}

/* ============================================
   Hero Section - Directional Text Animations
   Text slides in/out from different directions
   ============================================ */

/* Initially hide text until animation starts */
.hero-section .hero-title,
.hero-section .hero-subtitle {
  opacity: 0;
}

/* Keyframe: Text exits left while fading out */
@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-60px);
  }
}

/* Keyframe: Text exits right while fading out */
@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(60px);
  }
}

/* Keyframe: Text enters from right while fading in */
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Keyframe: Text enters from left while fading in */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero title - slides left on exit, enters from right */
.hero-section .hero-title {
  will-change: transform, opacity;
}

.hero-section .hero-title.fade-out {
  animation: slideOutLeft 0.8s ease-in-out forwards;
}

.hero-section .hero-title.fade-in {
  animation: slideInFromRight 0.8s ease-in-out forwards;
}

/* Hero subtitle - slides right on exit, enters from left */
.hero-section .hero-subtitle {
  will-change: transform, opacity;
}

.hero-section .hero-subtitle.fade-out {
  animation: slideOutRight 0.8s ease-in-out forwards;
}

.hero-section .hero-subtitle.fade-in {
  animation: slideInFromLeft 0.8s ease-in-out forwards;
}

/* Button ALWAYS VISIBLE - never affected */
.hero-section .wp-block-buttons {
  position: relative;
  z-index: 100;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Hide button initially until animation triggers */
.hero-cta {
  opacity: 0;
}
.hero-cta > a:hover{
  color: #21b1cb !important;
}


/* ============================================
   Button Entrance and Border Animation
   ============================================ */

/* Keyframe: Button slides up from bottom */
@keyframes slideUpFromBottom {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Keyframe: Animated border glow - clockwise sweep */
@keyframes borderGlowSweep {
  0% {
    box-shadow:
      4px 0 0 0 rgba(0, 180, 216, 0.85),
      0 4px 0 0 rgba(0, 180, 216, 0),
      -4px 0 0 0 rgba(0, 180, 216, 0),
      0 -4px 0 0 rgba(0, 180, 216, 0),
      inset 0 0 8px rgba(0, 61, 165, 0.1);
  }
  25% {
    box-shadow:
      0 4px 0 0 rgba(0, 180, 216, 0.85),
      -4px 0 0 0 rgba(0, 180, 216, 0),
      0 -4px 0 0 rgba(0, 180, 216, 0),
      4px 0 0 0 rgba(0, 180, 216, 0),
      inset 0 0 8px rgba(0, 61, 165, 0.1);
  }
  50% {
    box-shadow:
      -4px 0 0 0 rgba(0, 180, 216, 0.85),
      0 -4px 0 0 rgba(0, 180, 216, 0),
      4px 0 0 0 rgba(0, 180, 216, 0),
      0 4px 0 0 rgba(0, 180, 216, 0),
      inset 0 0 8px rgba(0, 61, 165, 0.1);
  }
  75% {
    box-shadow:
      0 -4px 0 0 rgba(0, 180, 216, 0.85),
      4px 0 0 0 rgba(0, 180, 216, 0),
      0 4px 0 0 rgba(0, 180, 216, 0),
      -4px 0 0 0 rgba(0, 180, 216, 0),
      inset 0 0 8px rgba(0, 61, 165, 0.1);
  }
  100% {
    box-shadow:
      4px 0 0 0 rgba(0, 180, 216, 0.85),
      0 4px 0 0 rgba(0, 180, 216, 0),
      -4px 0 0 0 rgba(0, 180, 216, 0),
      0 -4px 0 0 rgba(0, 180, 216, 0),
      inset 0 0 8px rgba(0, 61, 165, 0.1);
  }
}

/* Button entrance - slide up animation */
.hero-cta.slide-up-button {
  opacity: 1;
}

.hero-cta.slide-up-button .wp-block-button__link {
  animation: slideUpFromBottom 0.8s ease-out forwards;
  will-change: transform, opacity;
}

/* Button border glow animation - subtle persistent effect */
.hero-cta.animate-border-glow .wp-block-button__link {
  position: relative;
  animation: borderGlowSweep 4s ease-in-out infinite;
  will-change: box-shadow;
}



.home-resource-icon img{
  height: 50px;
  width: auto;
  margin-bottom: 20px;
}


.featured-collections-textbooks .wp-block-column:last-child,
.featured-collections-merchandise .wp-block-column:first-child
{
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* hide medikart default sections */
.hidden-medikart-section{
  display:none !important;
}

/* ============================================
   Blog Page - Hero Section Enhancement
   ============================================ */

/* Blog page hero section styling */
/*.page-template-default.single.blog .wp-block-group:first-of-type {*/
/*  background: linear-gradient(135deg, #003DA5 0%, #00B4D8 100%) !important;*/
/*  padding: 80px 40px !important;*/
/*  color: white;*/
/*}*/

.page-template-default.single.blog .wp-block-group:first-of-type h1 {
  font-size: 48px;
  color: #FFFFFF;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.page-template-default.single.blog .wp-block-group:first-of-type p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  letter-spacing: 0.3px;
}

/* Alternative: Direct blog page hero styling (if structure differs) */
.blog main .wp-block-group.has-background {
  background: linear-gradient(135deg, #003DA5 0%, #00B4D8 100%) !important;
}

.blog-page-hero {
  background: linear-gradient(135deg, #003DA5 0%, #00B4D8 100%);
  padding: 80px 40px;
  text-align: center;
}

.blog-page-hero h1 {
  font-size: 48px;
  color: #FFFFFF;
  margin-bottom: 20px;
  font-weight: 700;
}

.blog-page-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   Blog Page - Content Area Enhancement
   ============================================ */

/* Blog content area - light background instead of white */
.blog .wp-block-post-content,
.blog main,
.blog-content {
  background-color: #F8F9FA;
}

/* Empty state / No results message styling */
.blog .wp-block-post-content:has(p:contains("We could not find any results")),
.blog-empty-state,
.post-content {
  background-color: #F8F9FA;
  padding: 60px 40px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Improve default "no results" message */
.blog .wp-block-post-content p {
  margin: 0 auto;
  text-align: center;
  max-width: 600px;
}

/* Typography enhancements for blog page */
.blog h1 {
  color: #003DA5;
  font-weight: 700;
}

.blog p {
  color: #333;
  line-height: 1.6;
}

/* Mainpage featured images hover */
.hero-featured-products .wp-block-cover img{
  transition: all .45s;
}

.hero-featured-products .wp-block-cover:hover img{
  transform: scale(1.1);
}

.hero-featured-products .wp-block-cover:hover .wp-block-button__link{
  transition: all .3s;
}

.hero-featured-products .wp-block-cover:hover .wp-block-button__link {
  color: #003DA5;
  transform: translateY(-2px);
}
