/* CSS Variables for Colors */
:root {
    --medical-blue: #1a73e8;
    --medical-light-blue: #e8f4fd;
    --chinese-red: #d32f2f;
    --chinese-gold: #ffc107;
    --dark-text: #333333;
    --light-text: #666666;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --success-green: #4caf50;
    --warning-orange: #ff9800;
    --whatsapp-green: #25D366;
    --wechat-green: #09b83e;
    --dark-gray: #3c4043;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--medical-blue), var(--chinese-red));
    border-radius: 2px;
}

p {
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--medical-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background: #0d5bb9;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-red {
    background: var(--chinese-red) !important;
}

.btn-red:hover {
    background: #b71c1c !important;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--medical-blue);
    color: var(--medical-blue);
}

.btn-outline:hover {
    background: var(--medical-blue);
    color: var(--white);
}

.btn-whatsapp {
    background: var(--whatsapp-green);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

/* Header & Navigation */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--medical-blue);
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

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

.logo-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--medical-blue);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.85rem;
    color: var(--light-text);
    font-weight: 500;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 5px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

nav ul li a:hover {
    background: var(--medical-light-blue);
    color: var(--medical-blue);
}

/* FIX: Hide mobile menu button on large screens */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    background: var(--medical-blue);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

/* FIX 2: Improved Dropdown with Scroll Containment */
nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 5px;
}

nav ul li {
    margin-left: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background: var(--medical-light-blue);
    color: var(--medical-blue);
}

/* Dropdown Menu Styles */
nav ul li.dropdown {
    position: relative;
}

nav ul li.dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

nav ul li.dropdown .dropdown-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

nav ul li.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

nav ul li.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 300px;
    max-width: 400px;
    max-height: min(500px, 80vh);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0px 0px 10px 0px;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    scrollbar-width: thin;
    scrollbar-color: var(--medical-blue) transparent;
}

nav ul li.dropdown .dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

nav ul li.dropdown .dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

nav ul li.dropdown .dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--medical-blue);
    border-radius: 3px;
}

nav ul li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

nav ul li.dropdown .dropdown-menu li {
    margin: 0;
    margin-top: 0;
     width: 100%;
}

nav ul li.dropdown .dropdown-menu li a {
    display: block;
    padding: 10px 10px;
    color: var(--dark-text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    position: relative;
    white-space: normal;
    word-wrap: break-word;
    text-align: left;
    border-radius: 2px !important;
    background: white;
   
}

nav ul li.dropdown .dropdown-menu li a:after {
    display: none;
}

nav ul li.dropdown .dropdown-menu li a:hover {
    color: var(--medical-blue);
    padding-left: 15px;
}

nav ul li.dropdown .dropdown-menu li.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
    padding: 0;
}

/* Search in Dropdown */
.dropdown-search {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 5px;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
}

.dropdown-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

.dropdown-search input:focus {
    outline: none;
    border-color: var(--medical-blue);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}


/* Hero Section */
.hero {
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.2)),  url('china-capital.webp');
    background-size: cover;
    background-position: center;
    background-attachment: sticky;
    color: var(--white);
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
}

.hero h1 {
    color: var(--white);
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Stats Section */
.stats {
    background: var(--white);
    padding: 60px 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--light-gray);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--medical-blue);
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1.1rem;
    color: var(--light-text);
    font-weight: 600;
}

/* Features Section */
.features {
    background: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--medical-blue), var(--chinese-red));
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--medical-blue);
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--dark-text);
    margin-bottom: 15px;
}

.feature-card p {
    margin-bottom: 0;
}

/* Universities Section */
.universities {
    background: var(--white);
}

.top-universities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.university-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.university-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.university-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.university-rank {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--chinese-gold);
    color: var(--dark-text);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.university-info {
    padding: 25px;
}

.university-info h3 {
    color: var(--dark-text);
    margin-bottom: 10px;
}

.university-info p {
    margin-bottom: 15px;
    color: var(--light-text);
}

.view-all-btn {
    text-align: center;
    margin-top: 40px;
}

/* Data Table Styles */
.data-intel {
    background: var(--light-gray);
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.table-metrics {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.metric-card {
    background: var(--white);
    border-radius: 10px;
    padding: 15px 20px;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.metric-card span {
    display: block;
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 5px;
}

.metric-card strong {
    font-size: 1.3rem;
    color: var(--medical-blue);
}

.table-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.column-visibility {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
    align-items: center;
}

.column-visibility span {
    font-weight: 600;
    color: var(--dark-text);
    margin-right: 10px;
}

.column-visibility label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--light-text);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.column-visibility label:hover {
    background: var(--medical-light-blue);
}

.column-visibility input {
    accent-color: var(--medical-blue);
}

.data-table-wrapper {
    width: 100%;
    height: 500px;
    overflow: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    background: var(--white);
}

.data-table-wrapper::-webkit-scrollbar {
  display: none; 
}

#universitiesDataTable {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

#universitiesDataTable thead {
    background: var(--medical-light-blue);
    position: sticky;
    top: 0;
    z-index: 10;
}

#universitiesDataTable th,
#universitiesDataTable td {
    padding: 10px;
    max-width: 250px;
    overflow: scroll;
    text-align: left;
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

#universitiesDataTable th::-webkit-scrollbar {
  display: none; 
}
#universitiesDataTable td::-webkit-scrollbar {
  display: none; 
}

#universitiesDataTable tbody tr:hover {
    background: rgba(26, 115, 232, 0.04);
}

#universitiesDataTable th.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 30px;
    user-select: none;
}

#universitiesDataTable th.sortable .sort-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--light-text);
    transition: color 0.3s ease;
}

#universitiesDataTable th.sortable:hover .sort-icon {
    color: var(--medical-blue);
}

#universitiesDataTable th.sortable.sorted-asc .sort-icon::before {
    content: "\f0de";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--medical-blue);
}

#universitiesDataTable th.sortable.sorted-desc .sort-icon::before {
    content: "\f0dd";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--medical-blue);
}

.table-university {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.table-university .title {
    font-weight: 600;
    color: var(--dark-text);
}

.table-university .subtitle {
    font-size: 0.85rem;
    color: var(--light-text);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success {
    background: rgba(76, 175, 80, 0.15);
    color: var(--success-green);
}

.badge-muted {
    background: rgba(103, 114, 148, 0.15);
    color: #677294;
}

.rating-cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rating-cell .stars {
    color: var(--chinese-gold);
    font-size: 0.9rem;
}

.table-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--light-text);
}

.table-empty i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 15px;
}

/* Process Section */
.process {
    background: var(--white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.process-step {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--medical-blue), var(--chinese-red));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.3);
}

.process-step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
}

.step-content h3 {
    color: var(--dark-text);
    margin-bottom: 10px;
}

.step-content p {
    margin-bottom: 10px;
    color: var(--light-text);
}

.step-duration {
    display: inline-block;
    background: var(--medical-light-blue);
    color: var(--medical-blue);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(135deg, var(--medical-light-blue), rgba(255, 193, 7, 0.1));
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid var(--border-color);
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 4rem;
    color: var(--medical-light-blue);
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.7;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--medical-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.author-info h4 {
    margin-bottom: 5px;
    color: var(--dark-text);
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--light-text);
}

/* FAQ Section */
.faq {
    background: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--white);
}

.faq-item:hover {
    border-color: var(--medical-blue);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.faq-question {
    padding: 20px 25px;
    background: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.3s ease;
    font-size: 1.1rem;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--medical-blue);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--light-gray);
}

.faq-item.active .faq-answer {
    padding: 25px;
    max-height: 500px;
}

.faq-item.active .faq-question {
    background: var(--medical-light-blue);
    color: var(--medical-blue);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* CTA Section */
.cta {
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
    color: var(--white);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1559757148-5c350d0d3c56?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    color: var(--white);
}

.cta h2:after {
    background: var(--white);
    left: 50%;
    transform: translateX(-50%);
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Application Section */
.application {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.03), rgba(211, 47, 47, 0.03));
}

.apply-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    align-items: start;
}

.apply-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.apply-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.apply-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.apply-benefits li:hover {
    transform: translateX(5px);
}

.apply-benefits i {
    color: var(--medical-blue);
    font-size: 1.5rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.apply-highlight-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--medical-blue);
}

.apply-highlight-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.apply-highlight-steps span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--medical-light-blue);
    color: var(--medical-blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.apply-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.apply-card:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.apply-form {
    position: relative;
    z-index: 1;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--medical-blue);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-footer {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.disclaimer {
    font-size: 0.85rem;
    color: var(--light-text);
    margin: 0;
    line-height: 1.5;
}

.form-status {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 600;
    display: none;
    border: 1px solid transparent;
}

.form-status.show {
    display: block;
}

.form-status.success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success-green);
    border-color: rgba(76, 175, 80, 0.3);
}

.form-status.error {
    background: rgba(211, 47, 47, 0.1);
    color: var(--chinese-red);
    border-color: rgba(211, 47, 47, 0.3);
}

.field-error {
    color: var(--chinese-red);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--chinese-red);
}

.form-group input.error + .field-error,
.form-group select.error + .field-error,
.form-group textarea.error + .field-error {
    display: block;
}

/* Contact FAB */
.contact-fab {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: linear-gradient(135deg, var(--medical-blue), var(--chinese-red));
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 16px 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 1100;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.contact-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.contact-fab:active {
    transform: translateY(0);
}


/* Gallery Section Styles */
.gallery {
    background: var(--light-gray);
    padding: 80px 0;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.gallery-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--light-text);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--medical-blue);
    color: var(--white);
    border-color: var(--medical-blue);
    transform: translateY(-2px);
}

.gallery-search {
    position: relative;
    min-width: 250px;
}

.gallery-search input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.gallery-search input:focus {
    outline: none;
    border-color: var(--medical-blue);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.gallery-search i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px 20px 20px;
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-category {
    display: inline-block;
    background: var(--medical-blue);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.gallery-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
}

.gallery-item-description {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Load More Button */
.gallery-load-more {
    text-align: center;
    margin-top: 40px;
}

#loadMoreBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#loadMoreBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.gallery-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 15px;
    max-width: 90%;
    max-height: 90%;
    width: 800px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.gallery-modal.active .gallery-modal-content {
    transform: scale(1);
}

.gallery-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.gallery-modal-close:hover {
    background: var(--chinese-red);
    transform: rotate(90deg);
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 5;
}

.gallery-modal-prev,
.gallery-modal-next {
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
    background: var(--medical-blue);
    transform: scale(1.1);
}

.gallery-modal-image-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gallery-modal-image-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.gallery-modal-info {
    padding: 25px;
    background: var(--white);
}

.gallery-modal-info h3 {
    color: var(--dark-text);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.gallery-modal-info p {
    color: var(--light-text);
    margin-bottom: 15px;
    line-height: 1.5;
}

.gallery-modal-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.gallery-modal-category {
    background: var(--medical-light-blue);
    color: var(--medical-blue);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Loading States */
.gallery-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

.gallery-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--medical-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--light-text);
}

.gallery-empty i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .gallery-filters {
        justify-content: center;
    }
    
    .gallery-search {
        min-width: auto;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .gallery-modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .gallery-modal-image-container img {
        height: 300px;
    }
    
    .gallery-modal-nav {
        padding: 0 10px;
    }
    
    .gallery-modal-prev,
    .gallery-modal-next {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-filters {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .gallery-modal-info {
        padding: 20px;
    }
    
    .gallery-modal-info h3 {
        font-size: 1.1rem;
    }
}



@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 8px 25px rgba(26, 115, 232, 0.4);
    }
    100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
}

/* Contact Modal */
.contact-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1200;
}

.contact-modal.open {
    opacity: 1;
    visibility: visible;
}

.contact-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.contact-modal__content {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    width: min(420px, 90%);
    max-height: 90vh;
    padding: 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    z-index: 1;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.contact-modal__content::-webkit-scrollbar{
      display: none;
  }

.contact-modal.open .contact-modal__content {
    transform: scale(1);
}

.contact-modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.contact-modal__close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.contact-modal__header {
    margin-bottom: 25px;
    padding-right: 40px;
}

.contact-modal__header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.contact-modal__header p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.contact-modal__body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.contact-option {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    background: var(--light-gray);
    align-items: flex-start;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.contact-option:hover {
    background: var(--medical-light-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-option i {
    font-size: 1.8rem;
    width: 40px;
    text-align: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-option--whatsapp {
    border-left: 4px solid var(--whatsapp-green);
}

.contact-option--whatsapp i {
    color: var(--whatsapp-green);
}

.contact-option--wechat {
    border-left: 4px solid var(--wechat-green);
}

.contact-option--wechat i {
    color: var(--wechat-green);
}

.contact-option--email {
    border-left: 4px solid var(--medical-blue);
}

.contact-option--email i {
    color: var(--medical-blue);
}

.contact-option__content {
    flex: 1;
}

.contact-option__content strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: var(--dark-text);
}

.contact-option__content a {
    display: block;
    color: var(--medical-blue);
    text-decoration: none;
    font-size: 0.95rem;
    margin-top: 4px;
    transition: color 0.2s;
}

.contact-option__content a:hover {
    color: var(--chinese-red);
    text-decoration: underline;
}

.wechat-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wechat-qr {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    border: 3px solid var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    align-self: center;
    margin-top: 10px;
}

.contact-modal__footer {
    font-size: 0.9rem;
    color: var(--light-text);
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 15px;
    line-height: 1.5;
}

.contact-modal__footer p {
    margin-bottom: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--medical-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1099;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    font-size: 1.2rem;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--chinese-red);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
.site-footer {
    background: #0a1929;
    color: var(--white);
    padding: 80px 0 30px;
    margin-top: 0;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--medical-blue);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text .logo-title {
    color: var(--white);
    font-size: 1.3rem;
}

.brand-text .logo-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--medical-blue);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
    color: var(--medical-blue);
    margin-top: 3px;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--medical-blue);
    transform: translateY(-3px);
    border-color: var(--medical-blue);
}

.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.footer-newsletter h4 {
    margin-bottom: 15px;
    color: var(--white);
}

.newsletter-form .form-control {
    margin-bottom: 15px;
}

.newsletter-form input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--medical-blue);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form .compact {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.newsletter-form .btn {
    border-radius: 10px;
    white-space: nowrap;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.consent input {
    margin-top: 3px;
    accent-color: var(--medical-blue);
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.footer-meta-links {
    display: flex;
    gap: 20px;
}

.footer-meta-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-meta-links a:hover {
    color: var(--white);
}

/* FIX 5: Improved Mobile Navigation with Scroll */
@media (max-width: 768px) {
    /* Show mobile menu button only on mobile */
    .mobile-menu-btn {
        display: flex;
    }

    /* Hide desktop navigation on mobile */
    nav ul {
        display: none;
    }

    nav ul li.dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 300px;
        box-shadow: none;
        border-radius: 8px;
        margin-top: 10px;
        padding: 10px 0;
        background: var(--light-gray);
        border: 1px solid var(--border-color);
        overflow-y: auto;
    }
    
    nav ul li.dropdown .dropdown-menu li a {
        padding: 12px 20px;
    }
    
    nav ul li.dropdown .dropdown-toggle {
        pointer-events: auto;
    }
    
    nav ul li.dropdown .dropdown-toggle i {
        transform: none;
    }
    
    nav ul li.dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }
    
    nav ul li.dropdown .dropdown-menu {
        display: none;
    }
    
    nav ul li.dropdown.active .dropdown-menu {
        display: flex;
    }

    /* FIX 6: Mobile Navigation Scroll Fix */
    nav {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        height: 600px;
        background: var(--white);
        padding: 80px 20px 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow: scroll;
    }
    
    nav.active {
        transform: translateX(0);
    }
    
    nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    nav ul li {
        width: 100%;
        margin: 0;
    }
    
    nav ul li a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
    }

    .scrollable-main {
        padding-bottom: 60px;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .process-step:not(:last-child):after {
        display: none;
    }
    
    .process-step {
        margin-bottom: 30px;
    }

    .table-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .column-visibility {
        flex-direction: column;
        align-items: flex-start;
    }

    
}

@media (max-width: 768px) {
    .top-contact,
    .nav-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .apply-card {
        padding: 25px;
    }
    
    .contact-fab {
        right: 20px;
        bottom: 110px;
    }
    
    .contact-modal__content {
        padding: 25px;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .table-metrics {
        width: 100%;
        flex-direction: column;
    }

    .column-visibility {
        width: 100%;
    }



    .footer-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-form .compact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .apply-highlight-steps {
        flex-direction: column;
    }
    
    .contact-fab span {
        display: none;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 60px 0;
    }

    .data-table-wrapper {
        border-radius: 12px;
    }

    .column-visibility label {
        width: 100%;
    }

}

/* Additional Scrollable Utilities */
.scroll-snap-container {
    scroll-snap-type: y mandatory;
    overflow-y: auto;
    height: 100vh;
}

.scroll-snap-section {
    scroll-snap-align: start;
    height: 100vh;
}

/* Prevent layout shift */
.scrollbar-gutter-stable {
    scrollbar-gutter: stable;
}

/* Smooth scrolling for all elements */
.smooth-scroll {
    scroll-behavior: smooth;
}
/* Print Styles */
@media print {
    .site-header,
    .contact-fab,
    .back-to-top,
    .site-footer {
        display: none;
    }
    
    body {
        color: #000;
    }
    
    .container {
        width: 100%;
    }
    
    section {
        padding: 40px 0;
        break-inside: avoid;
    }
}