/* Hospital Info Section */
.hospital-info-section {
    position: relative;
    width: 100%;
    padding: 4rem 0;
    background: white;
}

.hospital-info-section .section-title {
    text-align: left;
    color: var(--dark-blue);
    font-size: 40px;
    margin-bottom: 0.8rem;
}

.hospital-info-section .section-text {
    text-align: left;
    color: var(--text-gray);
    font-size: 18px;
    line-height: 35px;
    max-width: 100%;
    margin: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card {
    width: 100%;
    max-width: 673px;
    background: white;
    border-radius: 20px;
    box-shadow: 0px 0px 4px var(--primary-blue);
    padding: 2rem;
    min-height: 438px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 158, 205, 0.2);
}

.info-image {
    height: auto;
    max-height: 244px;
    width: 100%;
    max-width: 582px;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover .info-image {
    transform: scale(1.05);
}

/* Medical Modules Section */
.medical-modules-section,
.specialized-modules-section,
.administrative-modules-section {
    width: 100%;
    padding: 0.5rem 0;
    background: white;
}

.section-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 0;
}

.section-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-header:hover .section-icon {
    transform: scale(1.1) rotate(-8deg);
}

.section-icon-svg {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.section-icon-right {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.section-header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.section-header-content .section-title {
    text-align: left;
    margin-bottom: 0;
    font-size: 32px;
}

.section-header-content .section-title.blue {
    color: var(--dark-blue);
    text-align: left;
}

.section-description {
    font-family: 'Readex Pro', sans-serif;
    font-weight: 500;
    color: black;
    font-size: 18px;
    line-height: normal;
}

.modules-card {
    width: 100%;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0.5rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modules-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modules-content {
    padding: 2rem 2.5rem;
    background: var(--primary-blue);
    border-radius: 0 0 15px 15px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.module-column {
    display: flex;
    flex-direction: column;
}

.module-item {
    font-family: 'Readex Pro', sans-serif;
    font-weight: 500;
    color: white;
    font-size: 22px;
    line-height: 40px;
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.module-item:hover {
    transform: translateX(5px);
}

.modules-footer-text {
    font-family: 'Readex Pro', sans-serif;
    font-weight: 500;
    color: white;
    font-size: 26px;
    line-height: normal;
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modules-content:hover .modules-footer-text {
    color: #f0f0f0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Accordion Styles */
.accordion-header {
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f5f5f5;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.accordion-header:hover {
    background: #e0e0e0;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.accordion-toggle-icon {
    transition: transform 0.25s ease;
}

.accordion-header.active .accordion-toggle-icon {
    transform: rotate(45deg);
}

.accordion-header:hover .accordion-toggle-icon {
    transform: scale(1.15);
}

.accordion-content {
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.25s ease;
    max-height: 1000px;
    opacity: 1;
}

.accordion-content.collapsed {
    max-height: 0;
    opacity: 0;
    display: none;
}

.accordion-content.expanded {
    max-height: 1000px;
    opacity: 1;
    display: block;
}

/* Footer — styles are handled by main.css to keep header/footer consistent with index */

/* Responsive Design */

/* Tablets (768px - 1023px) */
@media (max-width: 1023px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }

    .header {
        height: auto;
        padding: 1rem 0;
    }

    .logo {
        width: 180px;
        height: auto;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .nav-link {
        font-size: 16px;
    }

    .hero-content {
        padding-top: 250px;
        padding-bottom: 150px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-cta-text {
        font-size: 20px;
        margin-top: 80px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 400px;
        height: 60px;
        font-size: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 32px;
    }

    .hospital-info-section .section-title {
        font-size: 26px;
        margin-bottom: 0.8rem;
    }
    }

    .section-text {
        font-size: 18px;
        line-height: 36px;
    }

    .modules-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .module-item {
        font-size: 18px;
        line-height: 32px;
    }

    .modules-footer-text {
        font-size: 20px;
    }

    /* Accordion responsive styles */
    .accordion-header {
        padding: 1.2rem 1.5rem;
        margin-bottom: 0.2rem;
        gap: 1rem;
    }

    .accordion-header:hover {
        background: #e8e8e8;
    }

    .section-header-content {
        gap: 0.5rem;
    }

    .section-header-content .section-title {
        font-size: 22px;
    }

    .section-description {
        font-size: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-column:first-child {
        align-items: flex-start;
    }

    .decorative-vector {
        display: none;
    }


/* Mobile (below 768px) */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }

    .header-container {
        padding: 1rem;
    }

    .logo {
        width: 150px;
    }

    .nav {
        flex-direction: column;
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 14px;
    }

    .active-indicator {
        display: none;
    }

    .hero-content {
        padding-top: 150px;
        padding-bottom: 100px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-cta-text {
        font-size: 16px;
        margin-top: 50px;
    }

    .hero-buttons {
        width: 100%;
        padding: 0 1rem;
    }

    .btn {
        max-width: 100%;
        height: 50px;
        font-size: 16px;
    }

    .hospital-info-section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 24px;
    }

    .hospital-info-section .section-title {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }

    .section-title.blue {
        font-size: 20px;
    }

    .section-text {
        font-size: 16px;
        line-height: 28px;
    }

    .info-card {
        padding: 1.5rem;
        min-height: auto;
    }

    .section-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .section-icon {
        width: 50px;
        height: 50px;
    }

    .section-icon-svg,
    .section-icon-right {
        width: 35px;
        height: 35px;
    }

    .section-description {
        font-size: 14px;
    }

    .medical-modules-section,
    .specialized-modules-section,
    .administrative-modules-section {
        padding: 0.5rem 0;
    }

    /* Accordion mobile styles */
    .accordion-header {
        padding: 1rem 1.2rem;
        margin-bottom: 0.2rem;
        gap: 0.8rem;
        flex-wrap: wrap;
    }

    .accordion-header:hover {
        background: #e8e8e8;
        transform: none;
    }

    .section-header-content {
        flex: 1;
        gap: 0.3rem;
    }

    .section-header-content .section-title {
        font-size: 18px;
        margin: 0;
    }

    .section-description {
        font-size: 13px;
        margin: 0;
        line-height: 18px;
    }

    .accordion-toggle-icon {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }

    .modules-content {
        padding: 1.2rem 1rem;
    }

    .modules-grid {
        gap: 1rem;
        margin-bottom: 1.5rem;
        grid-template-columns: 1fr;
    }

    .module-column {
        gap: 0.5rem;
    }

    .module-item {
        font-size: 15px;
        line-height: 24px;
    }

    .modules-footer-text {
        font-size: 14px;
        line-height: 22px;
    }

    .footer-container {
        padding: 2rem 1rem;
    }

    .footer-grid {
        gap: 2rem;
    }

    .footer-logo {
        width: 200px;
        height: auto;
    }

    .footer-heading {
        font-size: 20px;
        margin-bottom: 1rem;
    }

    .footer-link,
    .contact-link {
        font-size: 16px;
    }

    .footer-nav {
        gap: 1rem;
    }

    .footer-contact {
        gap: 1rem;
    }

    .footer-copyright {
        font-size: 14px;
    }

    .hero-blur {
        width: 100%;
        max-width: 90vw;
    }
}

/* Large Desktop (1440px and above) */
@media (min-width: 1440px) {
    .container {
        padding: 0 2rem;
    }

    .section-header {
        gap: 2rem;
    }

    .modules-grid {
        gap: 10rem;
    }
}

/* Extra responsive adjustments */
@media (max-width: 480px) {
    .hero-title {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-cta-text {
        font-size: 14px;
        margin-top: 30px;
    }

    .section-title {
        font-size: 20px;
    }

    .section-title.blue {
        font-size: 18px;
    }

    .section-text {
        font-size: 14px;
        line-height: 24px;
    }

    /* Accordion extra small screen styles */
    .accordion-header {
        padding: 0.9rem 1rem;
        margin-bottom: 0.2rem;
        gap: 0.6rem;
    }

    .section-icon {
        width: 45px;
        height: 45px;
    }

    .section-header-content .section-title {
        font-size: 16px;
    }

    .section-description {
        font-size: 12px;
        line-height: 16px;
    }

    .accordion-toggle-icon {
        width: 28px;
        height: 28px;
    }

    .modules-content {
        padding: 1rem;
    }

    .module-item {
        font-size: 14px;
        line-height: 22px;
    }

    .modules-footer-text {
        font-size: 13px;
        line-height: 20px;
    }

    .modules-grid {
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
}

/* ============================================
   SCROLL-TRIGGERED ANIMATIONS FOR HMS PAGE
   ============================================ */

/* Elements start invisible and appear on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Slide from left */
.animate-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-left.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right */
.animate-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up + fade */
.animate-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* Rotate + zoom */
.animate-rotate {
    opacity: 0;
    transform: rotate(-5deg) scale(0.9);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-rotate.animated {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Bounce effect */
.animate-bounce {
    opacity: 0;
    transform: translateY(30px);
    transition: none;
}

.animate-bounce.animated {
    animation: bounceIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Zoom in from center */
.animate-zoom {
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-zoom.animated {
    opacity: 1;
    transform: scale(1);
}

/* Flip effect */
.animate-flip {
    opacity: 0;
    transform: rotateY(-90deg);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-flip.animated {
    opacity: 1;
    transform: rotateY(0deg);
}

/* Bounce in keyframe */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    50% {
        opacity: 1;
        transform: translateY(-8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image and icon animations */
img {
    will-change: opacity, transform;
}

img.animate-on-scroll,
img.animate-left,
img.animate-right,
img.animate-scale,
img.animate-bounce,
img.animate-zoom,
img.animate-rotate {
    display: block;
}

/* Reduce animations for accessibility */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .animate-on-scroll.animated,
    .animate-left,
    .animate-left.animated,
    .animate-right,
    .animate-right.animated,
    .animate-scale,
    .animate-scale.animated,
    .animate-bounce,
    .animate-bounce.animated,
    .animate-zoom,
    .animate-zoom.animated,
    .animate-rotate,
    .animate-rotate.animated,
    .animate-flip,
    .animate-flip.animated {
        transition: none !important;
        animation: none !important;
    }
}
