/* =========================================================
   SLJAHS
   THE SRI LANKAN JOURNAL OF ALLIED HEALTH SCIENCES

   Main stylesheet
   ========================================================= */


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: #333;

    line-height: 1.6;

    background: #f5faf8;

    overflow-x: hidden;

    position: relative;
}


/* =========================================================
   HEALTHCARE ANIMATED BACKGROUND
   ========================================================= */

.health-bg {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;

    overflow: hidden;

    pointer-events: none;

    z-index: -10;

    background:
        linear-gradient(
            135deg,
            #f9ffff 0%,
            #f2fbf7 45%,
            #f7fcff 100%
        );
}


/* =========================================================
   FLOATING HEALTH CIRCLES
   ========================================================= */

.health-circle {

    position: absolute;

    display: block;

    border-radius: 50%;

    background:
        rgba(25, 135, 84, 0.055);

    animation:
        floatingCircle 14s
        ease-in-out
        infinite;
}


/* Circle 1 */

.circle-1 {

    width: 180px;
    height: 180px;

    left: 3%;
    top: 18%;

    animation-delay: 0s;
}


/* Circle 2 */

.circle-2 {

    width: 320px;
    height: 320px;

    right: -80px;
    top: 8%;

    background:
        rgba(0, 150, 136, 0.035);

    animation-delay: 3s;
}


/* Circle 3 */

.circle-3 {

    width: 150px;
    height: 150px;

    left: 40%;
    bottom: 8%;

    background:
        rgba(0, 123, 255, 0.035);

    animation-delay: 6s;
}


/* Circle 4 */

.circle-4 {

    width: 240px;
    height: 240px;

    right: 20%;
    bottom: -70px;

    background:
        rgba(25, 135, 84, 0.04);

    animation-delay: 9s;
}


/* Circle animation */

@keyframes floatingCircle {

    0% {

        transform:
            translate(0, 0)
            scale(1);

    }


    50% {

        transform:
            translate(30px, -30px)
            scale(1.08);

    }


    100% {

        transform:
            translate(0, 0)
            scale(1);

    }

}


/* =========================================================
   MEDICAL CROSS
   ========================================================= */

.medical-cross {

    position: absolute;

    color:
        rgba(25, 135, 84, 0.10);

    font-size: 65px;

    font-weight: 300;

    user-select: none;

    animation:
        floatingCross 9s
        ease-in-out
        infinite;
}


/* Cross 1 */

.cross-1 {

    left: 13%;
    top: 18%;

    animation-delay: 0s;
}


/* Cross 2 */

.cross-2 {

    right: 17%;
    top: 32%;

    font-size: 45px;

    animation-delay: 2s;
}


/* Cross 3 */

.cross-3 {

    left: 35%;
    bottom: 18%;

    font-size: 50px;

    animation-delay: 4s;
}


/* Cross 4 */

.cross-4 {

    right: 7%;
    bottom: 18%;

    font-size: 70px;

    animation-delay: 6s;
}


/* Cross animation */

@keyframes floatingCross {

    0% {

        transform:
            translateY(0)
            rotate(0deg);

        opacity: 0.3;

    }


    50% {

        transform:
            translateY(-22px)
            rotate(8deg);

        opacity: 0.7;

    }


    100% {

        transform:
            translateY(0)
            rotate(0deg);

        opacity: 0.3;

    }

}


/* =========================================================
   SMALL FLOATING DOTS
   ========================================================= */

.health-dot {

    position: absolute;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        rgba(25, 135, 84, 0.16);

    animation:
        dotAnimation 7s
        ease-in-out
        infinite;
}


.dot-1 {

    left: 25%;
    top: 30%;

    animation-delay: 1s;
}


.dot-2 {

    left: 70%;
    top: 20%;

    animation-delay: 3s;
}


.dot-3 {

    left: 18%;
    bottom: 25%;

    animation-delay: 5s;
}


.dot-4 {

    right: 25%;
    bottom: 30%;

    animation-delay: 7s;
}


@keyframes dotAnimation {

    0% {

        transform:
            translateY(0);

        opacity: 0.25;

    }


    50% {

        transform:
            translateY(-25px);

        opacity: 0.8;

    }


    100% {

        transform:
            translateY(0);

        opacity: 0.25;

    }

}


/* =========================================================
   HEADER
   ========================================================= */

.header {

    background:
        #3b0000;

    color: white;

    padding: 22px 30px;

    box-shadow:
        0 3px 12px
        rgba(0, 0, 0, 0.25);

    position: relative;

    z-index: 10;
}


.header-container {

    max-width: 1200px;

    margin: auto;

    display: flex;

    align-items: center;

    gap: 20px;
}


.logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: transparent;
    padding: 0;
    border-radius: 0;
}


.header-text h1 {

    font-size: 28px;

    margin-bottom: 5px;

    font-weight: 700;

}


.header-text p {

    font-size: 17px;

    margin: 2px 0;

}


/* =========================================================
   NAVIGATION
   ========================================================= */

.navigation {

    background:
        #505050;

    height: 56px;

    box-shadow:
        0 3px 10px
        rgba(0, 0, 0, 0.25);

    position: sticky;

    top: 0;

    z-index: 1000;
}


.navigation-container {

    max-width: 1200px;

    height: 100%;

    margin: auto;

    display: flex;

    align-items: stretch;

    justify-content: center;
}


.navigation a {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0 22px;

    color: white;

    text-decoration: none;

    font-size: 15px;

    font-weight: 600;

    overflow: hidden;

    transition:
        color 0.35s ease,
        transform 0.25s ease,
        background 0.35s ease;
}


/* Green hover background */

.navigation a::before {

    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 0;

    background:
        #198754;

    z-index: -1;

    transition:
        height 0.35s ease;
}


/* Gold underline */

.navigation a::after {

    content: "";

    position: absolute;

    left: 50%;
    bottom: 0;

    width: 0;
    height: 4px;

    background:
        #d3a000;

    transform:
        translateX(-50%);

    transition:
        width 0.35s ease;
}


/* Hover */

.navigation a:hover {

    color: white;

    transform:
        translateY(-2px);

    text-shadow:
        0 0 7px
        rgba(255,255,255,0.6);
}


.navigation a:hover::before {

    height: 100%;
}


.navigation a:hover::after {

    width: 80%;

    box-shadow:
        0 0 8px
        rgba(211,160,0,0.8);
}


/* =========================================================
   ACTIVE NAVIGATION
   ========================================================= */

.navigation a.active {

    background:
        #198754;

    color: white;

    box-shadow:
        inset 0 -4px 0 #d3a000,
        0 0 8px
        rgba(211,160,0,0.25);

    animation:
        activeMenu 2s
        ease-in-out
        infinite alternate;
}


.navigation a.active::before {

    height: 100%;
}


.navigation a.active::after {

    width: 80%;

    box-shadow:
        0 0 8px
        rgba(211,160,0,0.8);
}


@keyframes activeMenu {

    from {

        box-shadow:
            inset 0 -4px 0 #d3a000,
            0 0 3px
            rgba(211,160,0,0.2);

    }

    to {

        box-shadow:
            inset 0 -4px 0 #d3a000,
            0 0 15px
            rgba(211,160,0,0.55);

    }
    

}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.main-container {

    max-width: 1200px;

    margin: 30px auto;

    padding:
        0 20px;

    position: relative;

    z-index: 2;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {

    background:
        rgba(255,255,255,0.92);

    padding: 45px;

    border-radius: 12px;

    box-shadow:
        0 5px 25px
        rgba(0,0,0,0.08);

    margin-bottom: 25px;

    border:
        1px solid
        rgba(25,135,84,0.08);

    overflow: hidden;

    position: relative;
}


.hero::before {

    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    border-radius: 50%;

    background:
        rgba(25,135,84,0.04);

    right: -80px;
    top: -80px;

    animation:
        heroCircle 8s
        ease-in-out
        infinite;
}


@keyframes heroCircle {

    0% {

        transform:
            scale(1);

    }

    50% {

        transform:
            scale(1.15);

    }

    100% {

        transform:
            scale(1);

    }

}


.hero-content {

    display: grid;

    grid-template-columns:
        2fr 1fr;

    gap: 40px;

    align-items: center;

    position: relative;

    z-index: 2;
}


.health-label {

    display: inline-block;

    color:
        #198754;

    font-size: 13px;

    font-weight: bold;

    letter-spacing:
        1px;

    margin-bottom: 12px;
}


.hero h2 {

    color:
        #3b0000;

    font-size: 34px;

    line-height: 1.25;

    margin-bottom: 15px;
}


.hero p {

    font-size: 17px;

    max-width: 700px;

    margin-bottom: 22px;
}


/* =========================================================
   HERO BUTTONS
   ========================================================= */

.hero-buttons {

    display: flex;

    gap: 12px;

    flex-wrap: wrap;
}


.btn {

    display: inline-block;

    padding:
        11px 22px;

    background:
        #198754;

    color: white;

    text-decoration: none;

    border-radius: 5px;

    font-weight: 600;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.btn:hover {

    background:
        #126b42;

    transform:
        translateY(-2px);

    box-shadow:
        0 5px 12px
        rgba(0,0,0,0.18);
}


.btn-outline {

    background:
        transparent;

    color:
        #198754;

    border:
        2px solid #198754;
}


.btn-outline:hover {

    background:
        #198754;

    color: white;
}


/* =========================================================
   HERO COVER
   ========================================================= */

.hero-cover {

    position: relative;

    text-align: center;
}


.hero-cover img {

    width: 240px;

    max-width: 100%;

    border-radius: 7px;

    box-shadow:
        0 10px 25px
        rgba(0,0,0,0.18);

    position: relative;

    z-index: 2;

    animation:
        coverFloat 5s
        ease-in-out
        infinite;
}


@keyframes coverFloat {

    0% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(-8px);

    }

    100% {

        transform:
            translateY(0);

    }

}


.cover-glow {

    position: absolute;

    width: 260px;

    height: 260px;

    background:
        rgba(25,135,84,0.08);

    border-radius: 50%;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%,-50%);

    animation:
        coverGlow 4s
        ease-in-out
        infinite;
}


@keyframes coverGlow {

    0% {

        transform:
            translate(-50%,-50%)
            scale(0.95);

        opacity: 0.4;

    }

    50% {

        transform:
            translate(-50%,-50%)
            scale(1.08);

        opacity: 0.8;

    }

    100% {

        transform:
            translate(-50%,-50%)
            scale(0.95);

        opacity: 0.4;

    }

}


/* =========================================================
   CONTENT GRID
   ========================================================= */

.content-grid {

    display: grid;

    grid-template-columns:
        2fr 1fr;

    gap: 25px;
}


/* =========================================================
   CARD
   ========================================================= */

.card {

    background:
        rgba(255,255,255,0.94);

    padding: 25px;

    border-radius: 8px;

    box-shadow:
        0 3px 12px
        rgba(0,0,0,0.07);

    margin-bottom: 25px;

    border:
        1px solid
        rgba(25,135,84,0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.card:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 7px 20px
        rgba(0,0,0,0.10);
}


.card h2 {

    color:
        #3b0000;

    margin-bottom: 18px;

    border-bottom:
        3px solid #198754;

    padding-bottom: 8px;
}


.card p {

    margin-bottom: 12px;
}


/* =========================================================
   JOURNAL COVER
   ========================================================= */

.journal-cover {

    width: 100%;

    max-width: 300px;

    display: block;

    margin: auto;

    border-radius: 5px;

    box-shadow:
        0 5px 15px
        rgba(0,0,0,0.2);
}


/* =========================================================
   ISSUE CARD
   ========================================================= */

.issue-card {

    text-align: center;
}


.issue-cover {

    position: relative;

    margin-bottom: 20px;
}


.issue-cover img {

    width: 100%;

    max-width: 270px;

    border-radius: 6px;

    box-shadow:
        0 6px 18px
        rgba(0,0,0,0.18);
}


.issue-button {

    margin-top: 5px;
}


/* =========================================================
   INFORMATION TABLE
   ========================================================= */

.info-table {

    width: 100%;

    border-collapse:
        collapse;
}


.info-table tr {

    border-bottom:
        1px solid #ddd;
}


.info-table td {

    padding:
        10px;
}


.info-table td:first-child {

    font-weight: bold;

    width: 40%;

    color:
        #3b0000;
}


/* =========================================================
   JOURNAL HIGHLIGHTS
   ========================================================= */

.highlight {

    display: flex;

    gap: 14px;

    align-items: flex-start;

    padding:
        13px 0;

    border-bottom:
        1px solid #eee;
}


.highlight:last-child {

    border-bottom:
        none;
}


.highlight-icon {

    width: 38px;

    height: 38px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        #198754;

    color: white;

    font-size: 22px;

    font-weight: bold;
}


.highlight strong {

    color:
        #3b0000;
}


.highlight p {

    margin:
        2px 0 0;

    font-size:
        14px;
}


/* =========================================================
   ECG SECTION
   ========================================================= */

.ecg-section {

    margin:
        10px 0 30px;

    padding:
        20px 0;

    overflow: hidden;

    background:
        rgba(255,255,255,0.5);

    border-radius:
        8px;
}


.ecg-content {

    position: relative;

    text-align: center;
}


.ecg-content > span {

    display: block;

    color:
        rgba(25,135,84,0.6);

    font-size:
        13px;

    font-weight:
        bold;

    letter-spacing:
        2px;

    margin-bottom:
        3px;
}


.ecg-line {

    width: 100%;

    height: 70px;

    overflow: hidden;
}


.ecg-line svg {

    width: 200%;

    height: 100%;

    animation:
        ecgMove 8s
        linear
        infinite;
}


.ecg-line path {

    fill: none;

    stroke:
        rgba(25,135,84,0.35);

    stroke-width:
        2;
}


@keyframes ecgMove {

    from {

        transform:
            translateX(0);

    }

    to {

        transform:
            translateX(-50%);

    }

}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {

    background:
        #3b0000;

    color: white;

    margin-top:
        20px;

    padding:
        35px 20px;

    position: relative;

    z-index: 2;
}


.footer-container {

    max-width:
        1200px;

    margin:
        auto;

    display:
        grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap:
        30px;
}


.footer h3 {

    color:
        #d3a000;

    margin-bottom:
        12px;
}


.footer p {

    margin-bottom:
        7px;
}


.footer a {

    color:
        white;

    text-decoration:
        none;
}


.footer a:hover {

    color:
        #d3a000;
}


.footer-bottom {

    max-width:
        1200px;

    margin:
        25px auto 0;

    padding-top:
        15px;

    border-top:
        1px solid
        rgba(255,255,255,0.25);

    text-align:
        center;

    font-size:
        14px;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 900px) {


    .navigation {

        height:
            auto;
    }


    .navigation-container {

        flex-wrap:
            wrap;
    }


    .navigation a {

        width:
            33.33%;

        min-height:
            50px;

        padding:
            10px;
    }


    .hero-content {

        grid-template-columns:
            1fr;

        text-align:
            center;
    }


    .hero p {

        margin-left:
            auto;

        margin-right:
            auto;
    }


    .hero-buttons {

        justify-content:
            center;
    }


    .content-grid {

        grid-template-columns:
            1fr;
    }


    .footer-container {

        grid-template-columns:
            1fr;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 600px) {


    .header {

        padding:
            18px;
    }


    .header-container {

        flex-direction:
            column;

        text-align:
            center;
    }


    .header-text h1 {

        font-size:
            22px;
    }


    .header-text p {

        font-size:
            14px;
    }


    .navigation a {

        width:
            50%;

        font-size:
            13px;
    }


    .main-container {

        padding:
            0 12px;
    }


    .hero {

        padding:
            25px 20px;
    }


    .hero h2 {

        font-size:
            26px;
    }


    .hero p {

        font-size:
            15px;
    }


    .hero-cover img {

        width:
            200px;
    }


    .card {

        padding:
            20px;
    }


    .medical-cross {

        font-size:
            40px;
    }


    .circle-2 {

        width:
            200px;

        height:
            200px;
    }


    .ecg-section {

        margin-top:
            5px;
    }

}


/* =========================================================
   REDUCED MOTION
   Accessibility
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        scroll-behavior:
            auto !important;
    }



.image-hint {

    margin-top: 10px !important;

    font-size: 13px !important;

    color: #198754;

    font-style: italic;

}







/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes flyerFadeIn {

    from {

        opacity: 0;

    }

    to {

        opacity: 1;

    }

}


@keyframes flyerZoomIn {

    from {

        opacity: 0;

        transform:
            scale(0.85);

    }

    to {

        opacity: 1;

        transform:
            scale(1);

    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .flyer-modal {

        padding: 15px;

    }


    .large-flyer {

        max-width: 96%;

        max-height: 85vh;

    }


    .flyer-close {

        top: 10px;

        right: 15px;

        width: 40px;

        height: 40px;

        font-size: 32px;

    }

}


.scroll-animate {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate.show {
    opacity: 1;
    transform: translateY(0);
}

.scroll-left {
    transform: translateX(-35px);
}

.scroll-left.show {
    transform: translateX(0);
}

.scroll-right {
    transform: translateX(35px);
}

.scroll-right.show {
    transform: translateX(0);
}

.scroll-animate.delay-1 {
    transition-delay: 0.15s;
}

.scroll-animate.delay-2 {
    transition-delay: 0.3s;
}


}