.logo-icon {
    position: relative;
    width: 60px;
    height: 60px;
}

.logo-eye {
    width: 48px;
    height: 28px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 2px 8px rgba(14, 48, 74, 0.3),
        inset 0 1px 3px rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

/* Upper eyelid */
.logo-eye::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 8px;
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Lower eyelid */
.logo-eye::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -2px;
    right: -2px;
    height: 6px;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
}

/* Iris */
.logo-iris {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 30% 30%, #4a90e2 0%, #2c5aa0 50%, #1a365d 100%);
    border-radius: 50%;
    box-shadow: 
        0 1px 4px rgba(21, 73, 110, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Pupil */
.logo-pupil {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: radial-gradient(circle at 30% 30%, #1a202c 0%, #000000 100%);
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Eye highlight */
.logo-highlight {
    position: absolute;
    top: 20%;
    left: 25%;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 100%);
    border-radius: 50%;
    z-index: 2;
}

.logo-drop {
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #a8e6cf 0%, #88d4b3 100%);
    border-radius: 50% 50% 50% 0;
    transform: rotate(45deg);
    animation: drop 2s infinite ease-in-out;
    box-shadow: 
        0 2px 6px rgba(195, 219, 211, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

@keyframes drop {
    0% {
        top: -5px;
        opacity: 0;
    }
    50% {
        top: 10px;
        opacity: 1;
    }
    100% {
        top: 25px;
        opacity: 0;
    }
}

.nav-brand {
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Modal Improvements */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-dialog {
    max-width: 500px;
}

.modal-body {
    padding: 2.5rem 2rem;
    position: relative;
}

.modal-body h3 {
    color: var(--bs-primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.modal-body p {
    color: var(--bs-gray-700);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.modal-body p:last-of-type {
    background: var(--bs-soft-primary);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--bs-primary);
    font-weight: 500;
    margin: 1.5rem 0;
}

.btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bs-gray-200);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: var(--bs-gray-300);
    transform: scale(1.1);
}

.modal-body .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 120px;
}

.modal-body .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.logo-main {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-dark-blue);
}

.logo-sub {
    font-size: 0.6rem;
    color: var(--grey);
    letter-spacing: 0.3px;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Mobile Footer Centering - Applied to all pages */
@media (max-width: 767.98px) {
    footer .widget {
        text-align: center;
    }
    
    footer .nav-brand {
        justify-content: center;
    }
    
    footer .widget-title {
        text-align: center;
    }
    
    footer address,
    footer a,
    footer ul {
        text-align: center;
    }
    
    /* Ensure Contact Us button is visible in mobile menu */
    .offcanvas-footer .btn {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .offcanvas-footer {
        display: block !important;
    }
}

/* ========================================
   PUBLIC.HTML SPECIFIC STYLES
   ======================================== */

/* Mobile responsive stacking for icons and text in public.html */
@media (max-width: 767.98px) {
    .d-flex.align-items-start {
        flex-direction: column !important;
        text-align: center;
    }
    
    .flex-shrink-0.me-3 {
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .symptom-item.d-flex.align-items-center {
        flex-direction: column !important;
        text-align: center;
    }
    
    .symptom-item .flex-shrink-0.me-3 {
        margin-right: 0 !important;
        margin-bottom: 0.5rem !important;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
}

/* ========================================
   HCP.HTML SPECIFIC STYLES
   ======================================== */

/* Fix long URLs breaking on mobile in hcp.html */
@media (max-width: 767.98px) {
    a[href*="medicines.org.uk"] {
        word-break: break-all;
        word-wrap: break-word;
        overflow-wrap: break-word;
        display: inline-block;
        max-width: 100%;
    }
    
    /* Make the paragraph containing the long URL more mobile-friendly */
    p:has(a[href*="medicines.org.uk"]) {
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    /* Center key benefits text on mobile */
    .d-flex.align-items-start {
        flex-direction: column !important;
        text-align: center;
        align-items: center !important;
    }
    
    .flex-shrink-0.me-3 {
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .flex-grow-1 {
        text-align: center;
        width: 100%;
    }
    
    /* Add proper spacing for safety information sections */
    #safety-summary .mb-5 {
        margin-bottom: 2.5rem !important;
    }
    
    #safety-summary h5 {
        margin-bottom: 1rem !important;
    }
    
    #safety-summary p {
        line-height: 1.7;
        margin-bottom: 0;
    }
    
    /* Improve overall mobile spacing */
    .wrapper {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* ========================================
   GRADIENT TEXT STYLES
   ======================================== */

.gradient-text {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 25%, #4CAF50 50%, #66cc66 75%, #88d4b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    opacity: 0;
    animation: fade-in 1.5s ease-in-out forwards;
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Homepage banner image responsive styles */
.homepage-banner-img {
  width: auto !important;
  max-width: 15rem !important;
  height: auto !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .homepage-banner-img {
    max-width: 15rem !important;
    margin: 0 auto;
  }
}

/* End homepage banner image styles */


/* ========================================
   CUSTOM CSS FOR CURSOR
   ======================================== */

   body {
  cursor: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1NzYgNTEyIj48cGF0aCBmaWxsPSIjMjUyYjY2IiBkPSJNMjg4IDMyYy04MC44IDAtMTQ1LjUgMzYuOC0xOTIuNiA4MC42QzQ4LjYgMTU2IDE3LjMgMjA4IDIuNSAyNDMuN2MtMy4zIDcuOS0zLjMgMTYuNyAwIDI0LjZDMTE3LjMgMzA0IDQ4LjYgMzU2IDk1LjQgMzk5LjRjNDcuMSA0My44IDExMS44IDgwLjYgMTkyLjYgODAuNnMxNDUuNS0zNi44IDE5Mi42LTgwLjZjNDYuOC00My41IDc4LjEtOTUuNCA5My0xMzEuMWMzLjMtNy45IDMuMy0xNi43IDAtMjQuNmMtMTQuOS0zNS43LTQ2LjItODcuNy05My0xMzEuMUM0MzMuNSA2OC44IDM2OC44IDMyIDI4OCAzMnpNMTQ0IDI1NmExNDQgMTQ0IDAgMSAxIDI4OCAwIDE0NCAxNDQgMCAxIDEgLTI4OCAwem0xNDQtNjRjMCAzNS4zLTI4LjcgNjQtNjQgNjRjLTcuMSAwLTEzLjktMS4yLTIwLjMtMy4zYy01LjUtMS44LTExLjkgMS42LTExLjcgNy40Yy4zIDYuOSAxLjMgMTMuOCAzLjIgMjAuN2MxMy43IDUxLjIgNjYuNCA4MS42IDExNy42IDY3LjlzODEuNi02Ni40IDY3LjktMTE3LjZjLTExLjEtNDEuNS00Ny44LTY5LjQtODguNi03MS4xYy01LjgtLjItOS4yIDYuMS03LjQgMTEuN2MyLjEgNi40IDMuMyAxMy4yIDMuMyAyMC4zeiIvPjwvc3ZnPg==") 16 16, auto;
}

/* HCP Modal: Stack modal-buttons vertically on mobile */
@media (max-width: 768px) {
  .modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    margin-top: 2rem;
  }
  .modal-buttons .btn {
    width: 100%;
    min-width: 0;
  }
}

/* Center LinkedIn icon in footer on mobile */
@media (max-width: 767.98px) {
  footer .social {
    justify-content: center !important;
    display: flex !important;
  }
}
.image-wrap {
  position: relative;
  display: inline-block;
}

/* Circular price badge */
.price-circle {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2aa6e0 0%, #45c26a 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 4px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  border: 2px solid rgba(255,255,255,0.2);
  z-index: 3;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  line-height: 1;
  text-align: center;
}

.price-circle > span {
  display: block;
  line-height: 1;
  width: 100%;
}

.price-circle .fw-bold {
  font-size: 16px;
  display: block;
  width: 100%;
  line-height: 1.1;
}

.price-circle .ms-1 {
  font-size: 9px;
  display: block;
  width: 100%;
  margin-top: 0;
  font-weight: 500;
  line-height: 1;
}

.price-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Responsive scaling for smaller screens */
@media (max-width: 768px) {
  .price-circle {
    width: 55px;
    height: 55px;
    font-size: 12px;
    padding: 3px;
    top: 10px;
    left: 10px;
  }
  
  .price-circle .fw-bold {
    font-size: 13px;
  }
  
  .price-circle .ms-1 {
    font-size: 8px;
  }
}
