
.amount_right {
  text-align: right;
}

.roundCorner {
  border-radius: 10px;
  padding: 5px;
  background-color: gray;
  border: 1px solid gray;
}

.site-logo {
  max-height: 60px;
  width: auto;
}

.hkdse-logo {
  max-height: 70px;
  width: auto;
  margin-left: 15px;
  margin-top: -10px;
}

#feeTable th.amount_right {
  text-align: right;
  
}

/* calc radio style for form validation */

.question-1 .btn-toggle,
.question-gba .btn-toggle{
  /* margin-right: 5rem; */
}

.question-1 .btn-toggle label.btn {
  width: 200%;
}

/* ==== MAIN TITLE STYLING ==== */



div.calc-disabled-item {
  cursor: not-allowed;
  background: gray;
  padding: 5px;
}

input.calc-disabled-item, li.calc-disabled-item {
  cursor: not-allowed !important;
  background: #f8f9fa !important;
  color: #6c757d !important;
  border-color: #ced4da !important;
}

/* Option 1: Clean Gradient Title */
.page-title {
    background: linear-gradient(135deg, #007bff, #00c4b4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding: 1rem 0;
}

.page-title::before {
    content: "🎓";
    position: absolute;
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Option 2: Modern Card-style Title */
.page-title-card {
    background: linear-gradient(135deg, #007bff, #00c4b4);
    color: white;
    padding: 2rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.page-title-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.page-title-card:hover::before {
    right: -30%;
}

/* Option 3: Minimalist with Underline */
.page-title-minimal {
    font-weight: 300;
    font-size: 2.8rem;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.page-title-minimal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #00c4b4);
    border-radius: 2px;
}

/* Option 4: Badge Style */
.page-title-badge {
    display: inline-block;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 1.5rem 3rem;
    font-weight: 600;
    font-size: 1.8rem;
    color: #495057;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-title-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #007bff, #00c4b4);
    border-radius: 50px;
    z-index: -1;
}

/* Option 5: Simple Professional */
.page-title-pro {
    font-weight: 500;
    font-size: 2.2rem;
    color: #343a40;
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-title,
    .page-title-card,
    .page-title-minimal {
        font-size: 2rem;
    }
    
    .page-title-card {
        padding: 1.5rem;
    }
    
    .page-title-pro {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .page-title,
    .page-title-card,
    .page-title-minimal,
    .page-title-pro {
        font-size: 1.6rem;
    }
    
    .page-title-card {
        padding: 1.2rem;
        border-radius: 15px;
    }
    
    .page-title-badge {
        padding: 1rem 2rem;
        font-size: 1.4rem;
    }
}

/* ==== TRENDY HOVER EFFECTS FOR QUESTION ALERTS ==== */

/* Base alert styling with hover effects */
.alert {
    border-radius: 15px !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform: translateY(0);
}

.alert:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

/* Individual question hover effects */
.alert.question-1 {
    background: linear-gradient(135deg, #e9f7ff 0%, #f0faff 100%);
    border: 2px solid rgba(0, 123, 255, 0.2);
    position: relative;
}

.alert.question-1::before {
    content: '';
    /* position: absolute; */
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.alert.question-1:hover::before {
    left: 100%;
}

.alert.question-1:hover {
    border-color: rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #e3f2fd 0%, #e8f5e8 100%);
}

.alert.question-2 {
    background: linear-gradient(135deg, #fff3e0 0%, #fdf7f0 100%);
    border: 2px solid rgba(255, 152, 0, 0.2);
    position: relative;
}

.alert.question-2::after {
    content: '';
    /* position: absolute; */
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 193, 7, 0.1);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

.alert.question-2:hover::after {
    opacity: 1;
    right: 30%;
}

.alert.question-2:hover {
    border-color: rgba(255, 152, 0, 0.4);
    background: linear-gradient(135deg, #fff8e1 0%, #fffde7 100%);
}

.alert.question-3, .alert.question-gba {
    background: linear-gradient(135deg, #f3e5f5 0%, #fce4ec 100%);
    border: 2px solid rgba(156, 39, 176, 0.2);
    position: relative;
}

.alert.question-3::before, .alert.question-gba::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(156, 39, 176, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.alert.question-3:hover::before, .alert.question-gba:hover::before {
    width: 200px;
    height: 200px;
}

.alert.question-3:hover, .alert.question-gba:hover {
    border-color: rgba(156, 39, 176, 0.4);
    background: linear-gradient(135deg, #f8bbd9 0%, #f48fb1 100%);
}

.alert.question-4 {
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
    border: 2px solid rgba(76, 175, 80, 0.2);
    position: relative;
}

.alert.question-4::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    transition: width 0.4s ease;
}

.alert.question-4:hover::before {
    width: 100%;
}

.alert.question-4:hover {
    border-color: rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #e7f6e7 0%, #f0f8f0 100%);
}

.alert.question-5 {
    background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 100%);
    border: 2px solid rgba(233, 30, 99, 0.2);
    position: relative;
}

.alert.question-5::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(233, 30, 99, 0.05) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.alert.question-5:hover::after {
    opacity: 1;
}

.alert.question-5:hover {
    border-color: rgba(233, 30, 99, 0.4);
    background: linear-gradient(135deg, #fdb5c8 0%, #f8a5c2 100%);
}

/* Enhanced button toggle styling for radio/checkbox buttons */
.btn-toggle {
    position: relative;
}

.btn-toggle input[type="radio"],
.btn-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Base button styling improvements */
.btn-outline-primary {
    transition: all 0.3s ease;
    border-width: 2px;
    border-color: #007bff;
    color: #007bff;
    background-color: white;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

/* Question 1 button hover effects (blue theme) */
.question-1 .btn-outline-primary:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #1976d2;
    color: #0d47a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.question-1 .btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.question-1 .btn-outline-primary:hover::before {
    left: 100%;
}

/* Question 2 button hover effects (orange theme) */
.question-2 .btn-outline-primary:hover {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc80 100%);
    border-color: #f57c00;
    color: #e65100;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
}

.question-2 .btn-outline-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 193, 7, 0.1);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

.question-2 .btn-outline-primary:hover::after {
    opacity: 1;
    right: -30%;
}

/* Question 3 button hover effects (purple theme) */
.question-3 .btn-outline-primary:hover, .question-gba .btn-outline-primary:hover {
    background: linear-gradient(135deg, #f3e5f5 0%, #ce93d8 100%);
    border-color: #8e24aa;
    color: #4a148c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.2);
}

.question-3 .btn-outline-primary::before, .question-gba .btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(156, 39, 176, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.question-3 .btn-outline-primary:hover::before, .question-gba .btn-outline-primary:hover::before {
    width: 100px;
    height: 100px;
}

/* Question 4 button hover effects (green theme) */
.question-4 .btn-outline-primary:hover {
    background: linear-gradient(135deg, #e8f5e8 0%, #a5d6a7 100%);
    border-color: #388e3c;
    color: #1b5e20;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.question-4 .btn-outline-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    transition: width 0.4s ease;
}

.question-4 .btn-outline-primary:hover::after {
    width: 100%;
}

/* Active/Selected state styling */
.btn-toggle input:checked + .btn-outline-primary {
    background: linear-gradient(135deg, #007bff, #00c4b4);
    border-color: #007bff;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Question-specific active states */
.question-1 .btn-toggle input:checked + .btn-outline-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: #0056b3;
}

.question-2 .btn-toggle input:checked + .btn-outline-primary {
    background: linear-gradient(135deg, #ff6f00, #e65100);
    border-color: #e65100;
}

.question-3 .btn-toggle input:checked + .btn-outline-primary, .question-gba .btn-toggle input:checked + .btn-outline-primary {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    border-color: #7b1fa2;
}

.question-4 .btn-toggle input:checked + .btn-outline-primary {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    border-color: #388e3c;
}

/* Focus states for accessibility */
.btn-toggle input:focus + .btn-outline-primary {
    outline: 2px solid rgba(0, 123, 255, 0.5);
    outline-offset: 2px;
}

/* Mobile improvements */
@media (max-width: 768px) {
    .btn-outline-primary {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .btn-outline-primary:hover {
        transform: none;
    }
}

/* Animation performance optimization */
.btn-outline-primary::before,
.btn-outline-primary::after {
    will-change: transform, opacity;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .btn-outline-primary,
    .btn-outline-primary::before,
    .btn-outline-primary::after {
        transition: none;
    }
    
    .btn-outline-primary:hover {
        transform: none;
    }
}

/* Button hover improvements */
.btn-outline-primary {
    transition: all 0.2s ease;
    border-width: 2px;
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

/* Submit button enhancement */
.btn-primary {
    background: linear-gradient(135deg, #007bff, #00c4b4);
    border: none;
    padding: 12px 40px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, #0056b3, #00a085);
}

/* Success button with same trendy styling */
.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    padding: 12px 40px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white;
}

.btn-success::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;
}

.btn-success:hover::before {
    left: 100%;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
    background: linear-gradient(135deg, #1e7e34, #17a2b8);
    color: white;
}

/* Info button with same trendy styling */
.btn-info {
    background: linear-gradient(135deg, #17a2b8, #20c997);
    border: none;
    padding: 12px 40px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white;
}

.btn-info::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;
}

.btn-info:hover::before {
    left: 100%;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(23, 162, 184, 0.3);
    background: linear-gradient(135deg, #138496, #17a2b8);
    color: white;
}

/* Button container improvements */
.btn-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    /* margin-top: 2rem; */
    flex-wrap: wrap;
}

/* Mobile responsiveness for buttons */
@media (max-width: 768px) {
    .btn-primary,
    .btn-success {
        padding: 10px 30px;
        font-size: 14px;
    }
    
    .btn-container {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-container .btn {
        width: 200px;
        max-width: 100%;
    }
}

/* Fix for input field click issues */
.form-control {
    transition: all 0.2s ease;
    border-radius: 8px;
    border-width: 2px;
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
    cursor: text;
}

.form-control:focus {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    pointer-events: auto !important;
}

/* Ensure input containers don't block clicks */
.mb-3 {
    position: relative;
}

.mb-3 .form-control {
    width: 100%;
    background-color: white;
    border: 2px solid #ced4da;
}

.mb-3 .form-control:hover {
    border-color: #007bff;
    cursor: text;
}

/* Fix any overlay issues */
.alert::before,
.alert::after {
    pointer-events: none !important;
}

/* Ensure tooltip buttons don't interfere */
.tooltip-btn {
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

/* Fix popup positioning to not cover inputs */
.popup {
    position: fixed;
    z-index: 1001; /* Higher than overlay */
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 90vw;
    /* display: none; */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    max-height: 80vh;
    overflow-y: auto;
}

.popup::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.popup ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px 15px;
    column-gap: 20px;
}

.popup li {
    margin: 0;
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #007bff;
    transition: all 0.2s ease;
}

.popup li:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

/* popup clickable style */
.popup li:hover {
    background-color: #f0f0f0;
}
.popup li.selected {
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    padding-left: 5px;
}
.popup li {
  cursor: pointer;
  /* padding: 5px 0; */
  transition: background-color 0.2s ease;
}

/* Popup header styling */
.popup h4 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

/* Close button for popup */
.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1002;
}

.popup-close:hover {
    background: #f8f9fa;
    color: #dc3545;
}

/* Different themes for different popup types */
.popup.part-a li {
    border-left-color: #28a745;
}

.popup.part-b li {
    border-left-color: #ffc107;
}

.popup.part-c li {
    border-left-color: #dc3545;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .popup {
        width: 95vw;
        max-width: none;
        padding: 15px;
        max-height: 70vh;
    }
    
    .popup ul {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .popup li {
        font-size: 13px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .popup {
        padding: 12px;
        border-radius: 8px;
    }
    
    .popup li {
        font-size: 12px;
        padding: 5px 8px;
    }
}

/* Popup overlay background */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Lower than popup */
    display: none;
}

.popup-overlay.active {
    display: block;
}

/* Prevent page scroll when magnificPopup is open */
.mfp-prevent-scroll {
    overflow: hidden !important;
}

/* Ensure body doesn't shift when scroll is disabled */
body.mfp-prevent-scroll {
    padding-right: 0 !important;
}

/* Override any anchor scroll behavior */
.mfp-content .popup {
    scroll-margin-top: 0 !important;
    scroll-behavior: auto !important;
}

/* Ensure alert doesn't clip popups */
.alert {
    overflow: visible !important;
    position: relative;
}

/* Fix container overflow issues */
.container,
.card,
.card-body {
    overflow: visible !important;
}

/* Make sure form labels don't interfere */
.form-label {
    pointer-events: none;
    user-select: none;
}

/* Fix for question alert hover not interfering with inputs */
.alert:hover .form-control {
    pointer-events: auto !important;
}

/* Force input focus ability */
input[type="text"],
input[type="number"] {
    pointer-events: auto !important;
    cursor: text !important;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Mobile touch improvements */
@media (max-width: 768px) {
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
        -webkit-appearance: none;
        appearance: none;
    }
}

/* Hide popup content initially */
/* #seniorSecondaryPopup, 
#appliedLearningPopup, 
#otherLanguagesPopup {
    display: none !important;
} */

/* MagnificPopup styles */
.mfp-bg {
    background: rgba(0, 0, 0, 0.6);
}

.mfp-wrap {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1042;
    outline: none !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.mfp-container {
    text-align: center;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    padding: 0 8px;
    box-sizing: border-box;
}

.mfp-container:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.mfp-inline-holder {
    width: auto;
    height: auto;
    max-width: 600px;
    text-align: left;
    margin: 0 auto;
    vertical-align: middle;
    display: inline-block;
}

/* Override popup positioning when inside magnificPopup */
.mfp-content .popup::before {
    display: none !important;
}

.mfp-content {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0 auto;
    text-align: left;
    z-index: 1045;
}

.mfp-inline-holder .mfp-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* MagnificPopup hide class */
.mfp-hide {
    display: none !important;
}

/* Zoom animation for magnificPopup */
.my-mfp-zoom-in .mfp-with-anim {
    opacity: 0;
    transition: all 0.2s ease-in-out; 
    transform: scale(0.8); 
}

.my-mfp-zoom-in.mfp-bg {
    opacity: 0;
    transition: all 0.3s ease-out; 
}

/* animate in */
.my-mfp-zoom-in.mfp-ready .mfp-with-anim {
    opacity: 1;
    transform: scale(1); 
}

.my-mfp-zoom-in.mfp-ready.mfp-bg {
    opacity: 0.8;
}

/* animate out */
.my-mfp-zoom-in.mfp-removing .mfp-with-anim {
    transform: scale(0.8); 
    opacity: 0;
}

.my-mfp-zoom-in.mfp-removing.mfp-bg {
    opacity: 0;
}

/* MagnificPopup close button styling */
.mfp-close {
    width: 44px;
    height: 44px;
    line-height: 44px;
    position: absolute;
    right: 0;
    top: 0;
    text-decoration: none;
    text-align: center;
    opacity: 0.65;
    filter: alpha(opacity=65);
    padding: 0 0 18px 10px;
    color: #333;
    font-style: normal;
    font-size: 28px;
    font-family: Arial, Baskerville, monospace;
}

.mfp-close:hover,
.mfp-close:focus {
    opacity: 1;
    filter: alpha(opacity=100);
}

.mfp-close:active {
    top: 1px;
}

/* media query for mobile devices */
@media (max-width: 768px) {
  .site-logo {
    max-height: 50px;
    width: auto;
  }

  .hkdse-logo {
    max-height: 55px;
    width: auto;
    margin-left: 15px;
    margin-top: -10px;
  }
}