/* =========================================
   PATIENT DATA PAGE
========================================= */

.patient-intro{
    max-width:720px;
    margin:0 auto 45px;
    text-align:center;
    color:#777;
    line-height:1.8;
}


/* =========================================
   OVERVIEW
========================================= */

.patient-overview{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin-bottom:60px;
}

.patient-overview-card{
    display:flex;
    align-items:center;
    gap:18px;
    padding:24px;
    background:#fff;
    border:1px solid rgba(0,0,0,.07);
    border-radius:18px;
    box-shadow:0 12px 35px rgba(0,0,0,.06);
    transition:.3s ease;
}

.patient-overview-card:hover{
    transform:translateY(-5px);
    box-shadow:0 18px 40px rgba(0,0,0,.09);
}

.overview-icon{
    width:55px;
    height:55px;
    flex-shrink:0;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:15px;
    background:rgba(255,153,51,.12);
    color:var(--accent);
    font-size:22px;
}

.patient-overview-card span{
    display:block;
    font-size:13px;
    color:#777;
    margin-bottom:3px;
}

.patient-overview-card strong{
    display:block;
    font-family:var(--font-display);
    font-size:28px;
    color:var(--dark);
}

.patient-overview-card small{
    color:#999;
    font-size:11px;
}


/* =========================================
   PATIENT SECTION
========================================= */

.patient-section{
    margin-top:35px;
    padding:30px;
    background:#fff;
    border:1px solid rgba(0,0,0,.07);
    border-radius:22px;
    box-shadow:0 15px 45px rgba(0,0,0,.06);
}

.ipd-section{
    margin-top:45px;
}


/* =========================================
   SECTION HEADER
========================================= */

.patient-section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:30px;
    margin-bottom:28px;
}

.patient-label{
    display:inline-block;
    margin-bottom:7px;
    color:var(--accent);
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:1.5px;
}

.patient-section-header h3{
    margin:0 0 7px;
    font-family:var(--font-display);
    font-size:32px;
    font-weight:600;
    color:var(--dark);
}

.patient-section-header p{
    margin:0;
    color:#777;
    font-size:14px;
}


/* =========================================
   TOTAL BOX
========================================= */

.patient-total-box{
    min-width:155px;
    padding:18px 22px;
    text-align:center;
    background:linear-gradient(
        135deg,
        rgba(255,153,51,.12),
        rgba(255,193,7,.05)
    );
    border:1px solid rgba(255,153,51,.25);
    border-radius:16px;
}

.patient-total-box span{
    display:block;
    color:#777;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:1px;
}

.patient-total-box strong{
    display:block;
    margin:3px 0;
    color:var(--accent);
    font-size:27px;
}

.patient-total-box small{
    color:#999;
    font-size:11px;
}


/* =========================================
   TABLE
========================================= */

.patient-table-container{
    width:100%;
    overflow-x:auto;
    border-radius:14px;
    border:1px solid #eee;
}

.patient-table{
    width:100%;
    min-width:1250px;
    border-collapse:collapse;
    font-size:13px;
}

.patient-table th,
.patient-table td{
    padding:13px 11px;
    text-align:center;
    border-bottom:1px solid #eee;
    white-space:nowrap;
}

.patient-table thead th{
    background:var(--dark);
    color:#fff;
    font-weight:700;
    border-bottom:0;
}

.patient-table thead th:first-child{
    border-radius:12px 0 0 0;
}

.patient-table thead th:last-child{
    border-radius:0 12px 0 0;
}

.patient-table tbody td:nth-child(2){
    text-align:left;
    font-weight:600;
    color:var(--dark);
}

.patient-table tbody tr{
    transition:.2s ease;
}

.patient-table tbody tr:hover{
    background:rgba(255,153,51,.06);
}

.patient-table tbody td:last-child{
    font-weight:800;
    color:var(--accent);
}

.patient-table tfoot th{
    padding:15px 11px;
    background:rgba(255,153,51,.12);
    color:var(--dark);
    font-weight:800;
    border-top:2px solid var(--accent);
}

.patient-table tfoot th:last-child{
    color:var(--accent);
    font-size:16px;
}


/* =========================================
   SCROLLBAR
========================================= */

.patient-table-container::-webkit-scrollbar{
    height:8px;
}

.patient-table-container::-webkit-scrollbar-track{
    background:#f1f1f1;
    border-radius:10px;
}

.patient-table-container::-webkit-scrollbar-thumb{
    background:var(--accent);
    border-radius:10px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:900px){

    .patient-overview{
        grid-template-columns:1fr;
    }

    .patient-section-header{
        align-items:flex-start;
        flex-direction:column;
    }

    .patient-total-box{
        width:100%;
    }

}


@media(max-width:600px){

    .patient-section{
        padding:18px;
        border-radius:16px;
    }

    .patient-section-header h3{
        font-size:27px;
    }

    .patient-overview-card{
        padding:18px;
    }

}

```css
/* =========================================================
   PREMIUM IPD RECORDS SECTION
   SCPM COLLEGE OF NURSING
   BRAND COLOR : #FF671F
========================================================= */

.premium-ipd-section {
    width: 100%;
    max-width: 1250px;
    margin: 55px auto;
    padding: 0 22px;
    box-sizing: border-box;
}


/* =========================================================
   SECTION HEADER
========================================================= */

.ipd-section-heading {
    position: relative;

    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 30px;
    padding-bottom: 18px;

    border-bottom: 1px solid #f2ddd3;
}

.ipd-section-heading::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -1px;

    width: 110px;
    height: 3px;

    border-radius: 10px;

    background: linear-gradient(
        90deg,
        #ff671f,
        #ff9a68
    );
}


/* Heading Icon */

.ipd-heading-icon {
    position: relative;

    width: 62px;
    height: 62px;

    flex: 0 0 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 17px;

    color: #ffffff;

    font-size: 24px;

    background:
        linear-gradient(
            135deg,
            #ff671f 0%,
            #ff7d3b 45%,
            #d94f0d 100%
        );

    box-shadow:
        0 10px 28px rgba(255,103,31,.25),
        inset 0 1px 0 rgba(255,255,255,.35);
}

.ipd-heading-icon::after {
    content: "";

    position: absolute;

    width: 100%;
    height: 100%;

    border-radius: inherit;

    border: 1px solid rgba(255,255,255,.25);
}


/* Small Heading */

.ipd-eyebrow {
    display: block;

    margin-bottom: 4px;

    color: #ff671f;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.8px;
    text-transform: uppercase;
}


/* Main Heading */

.ipd-section-heading h2 {
    margin: 0;

    color: #6f260f;

    font-size: 29px;
    font-weight: 800;

    line-height: 1.15;
}


/* Description */

.ipd-section-heading p {
    margin: 5px 0 0;

    color: #8d756b;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   CARDS GRID
========================================================= */

.ipd-records-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   CARD
========================================================= */

.ipd-record-card {
    position: relative;

    overflow: hidden;

    min-height: 225px;

    padding: 22px;

    box-sizing: border-box;

    border: 1px solid #f0ddd5;
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fffaf7 100%
        );

    box-shadow:
        0 8px 28px rgba(73,34,19,.07);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}


/* Premium top line */

.ipd-record-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #ff671f,
            #ff914f,
            #d94f0d
        );
}


/* Decorative glow */

.ipd-record-card::after {
    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    right: -55px;
    bottom: -55px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255,103,31,.09),
            transparent 70%
        );

    pointer-events: none;
}


/* Card Hover */

.ipd-record-card:hover {
    transform: translateY(-7px);

    border-color: #ffcbb8;

    box-shadow:
        0 18px 45px rgba(255,103,31,.15);
}


/* =========================================================
   CARD TOP
========================================================= */

.ipd-card-top {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 20px;
}


/* PDF Icon */

.ipd-pdf-icon {
    width: 45px;
    height: 45px;

    flex: 0 0 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color: #ffffff;

    font-size: 17px;

    background:
        linear-gradient(
            135deg,
            #ff671f,
            #d94f0d
        );

    box-shadow:
        0 7px 17px rgba(255,103,31,.23);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


/* Icon Hover */

.ipd-record-card:hover .ipd-pdf-icon {
    transform: scale(1.08) rotate(-2deg);

    box-shadow:
        0 10px 23px rgba(255,103,31,.32);
}


/* Month */

.ipd-month {
    color: #72250e;

    font-size: 15px;
    font-weight: 900;

    letter-spacing: 1px;
}


/* Year Badge */

.ipd-year {
    display: inline-flex;
    align-items: center;

    padding: 4px 9px;

    border-radius: 20px;

    color: #c55120;

    background: #fff0e8;

    border: 1px solid #ffd7c4;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .5px;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.ipd-card-content {
    position: relative;
    z-index: 2;
}

.ipd-card-content h3 {
    margin: 0 0 6px;

    color: #41271e;

    font-size: 19px;
    font-weight: 800;

    line-height: 1.3;
}

.ipd-card-content p {
    margin: 0 0 19px;

    color: #94786c;

    font-size: 12px;
    font-weight: 500;
}


/* =========================================================
   VIEW BUTTON
========================================================= */

.ipd-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 14px;

    border-radius: 9px;

    color: #ffffff !important;
    background:
        linear-gradient(
            135deg,
            #ff671f 0%,
            #ef5a14 50%,
            #d94f0d 100%
        );

    border: 1px solid rgba(255,255,255,.18);

    text-decoration: none !important;

    font-size: 12px;
    font-weight: 700;

    box-shadow:
        0 6px 17px rgba(255,103,31,.22);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


/* Button Hover */

.ipd-view-btn:hover {
    color: #ffffff !important;

    background:
        linear-gradient(
            135deg,
            #ff7b32,
            #e65311,
            #c74609
        );

    transform: translateY(-2px);

    box-shadow:
        0 10px 23px rgba(255,103,31,.32);
}


/* External link icon */

.ipd-view-btn i:last-child {
    font-size: 10px;

    transition: transform .25s ease;
}

.ipd-view-btn:hover i:last-child {
    transform: translate(2px,-2px);
}


/* =========================================================
   CARD NUMBER / VISUAL DETAILS
========================================================= */

.ipd-record-card:nth-child(1) {
    animation: ipdFadeUp .45s ease both;
}

.ipd-record-card:nth-child(2) {
    animation: ipdFadeUp .55s ease both;
}

.ipd-record-card:nth-child(3) {
    animation: ipdFadeUp .65s ease both;
}

.ipd-record-card:nth-child(4) {
    animation: ipdFadeUp .75s ease both;
}

.ipd-record-card:nth-child(5) {
    animation: ipdFadeUp .85s ease both;
}


@keyframes ipdFadeUp {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .ipd-records-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px;
    }

    .ipd-record-card {
        min-height: 215px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .premium-ipd-section {
        margin: 35px auto;
        padding: 0 15px;
    }


    .ipd-section-heading {
        gap: 12px;
        margin-bottom: 22px;
    }


    .ipd-heading-icon {
        width: 50px;
        height: 50px;

        flex-basis: 50px;

        border-radius: 14px;

        font-size: 20px;
    }


    .ipd-section-heading h2 {
        font-size: 23px;
    }


    .ipd-section-heading p {
        font-size: 11px;
    }


    .ipd-records-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    .ipd-record-card {
        min-height: auto;

        padding: 18px;

        border-radius: 16px;
    }


    .ipd-pdf-icon {
        width: 41px;
        height: 41px;

        flex-basis: 41px;
    }


    .ipd-card-content h3 {
        font-size: 17px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .ipd-section-heading {
        align-items: flex-start;
    }


    .ipd-heading-icon {
        width: 44px;
        height: 44px;

        flex-basis: 44px;

        font-size: 17px;
    }


    .ipd-section-heading h2 {
        font-size: 20px;
    }


    .ipd-section-heading p {
        font-size: 10px;
    }


    .ipd-view-btn {
        width: 100%;

        justify-content: center;

        box-sizing: border-box;
    }
}

/* =========================================================
   PREMIUM OPD RECORDS
========================================================= */

.premium-opd-section {
    position: relative;
    margin: 70px auto;
    padding: 0 20px;
    max-width: 1250px;
}


/* ---------- SECTION HEADING ---------- */

.opd-section-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 35px;
}

.opd-heading-icon {
    width: 62px;
    height: 62px;
    min-width: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #FF671F,
            #D94F0D
        );

    color: #fff;

    font-size: 26px;

    box-shadow:
        0 12px 30px rgba(217, 79, 13, 0.25);
}

.opd-eyebrow {
    display: block;

    margin-bottom: 5px;

    color: #D94F0D;

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 2px;
}

.opd-section-heading h2 {
    margin: 0;

    color: #54200F;

    font-size: clamp(28px, 4vw, 40px);

    font-weight: 800;

    line-height: 1.1;
}

.opd-section-heading p {
    margin: 7px 0 0;

    color: #777;

    font-size: 15px;
}


/* ---------- GRID ---------- */

.opd-records-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;
}


/* ---------- CARD ---------- */

.opd-record-card {
    position: relative;

    overflow: hidden;

    background: #fff;

    border: 1px solid rgba(255, 103, 31, 0.12);

    border-radius: 24px;

    box-shadow:
        0 12px 35px rgba(60, 25, 10, 0.08);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.opd-record-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #FF671F,
            #FF9A68,
            #D94F0D
        );
}

.opd-record-card:hover {
    transform: translateY(-9px);

    border-color: rgba(255, 103, 31, 0.35);

    box-shadow:
        0 22px 50px rgba(217, 79, 13, 0.17);
}


/* ---------- CARD TOP ---------- */

.opd-card-top {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 120px;

    padding: 25px;

    background:
        linear-gradient(
            135deg,
            #fff8f4,
            #fff
        );
}

.opd-pdf-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            #FF671F,
            #D94F0D
        );

    color: #fff;

    font-size: 25px;

    box-shadow:
        0 10px 25px rgba(217, 79, 13, 0.25);
}

.opd-month {
    margin-left: auto;

    color: #D94F0D;

    font-size: 18px;
    font-weight: 900;

    letter-spacing: 1px;
}

.opd-year {
    margin-left: 7px;

    padding: 6px 10px;

    border-radius: 8px;

    background: #FFF0E9;

    color: #7A2E13;

    font-size: 12px;
    font-weight: 800;
}


/* ---------- CONTENT ---------- */

.opd-card-content {
    padding: 25px;
}

.opd-card-content h3 {
    margin: 0 0 7px;

    color: #54200F;

    font-size: 21px;
    font-weight: 800;
}

.opd-card-content p {
    margin: 0 0 20px;

    color: #777;

    font-size: 14px;
}


/* ---------- BUTTON ---------- */

.opd-view-btn {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 13px 17px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #FF671F,
            #D94F0D
        );

    color: #fff !important;

    text-decoration: none !important;

    font-size: 13px;
    font-weight: 800;

    box-shadow:
        0 9px 20px rgba(217, 79, 13, 0.22);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.opd-view-btn i:last-child {
    font-size: 11px;

    margin-left: 2px;

    transition: transform 0.25s ease;
}

.opd-view-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 28px rgba(217, 79, 13, 0.32);

    color: #fff !important;
}

.opd-view-btn:hover i:last-child {
    transform: translate(3px, -3px);
}


/* ---------- RESPONSIVE ---------- */

@media (max-width: 1000px) {

    .opd-records-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 650px) {

    .premium-opd-section {
        margin: 50px auto;
        padding: 0 15px;
    }

    .opd-section-heading {
        align-items: flex-start;
    }

    .opd-heading-icon {
        width: 52px;
        height: 52px;
        min-width: 52px;

        font-size: 21px;

        border-radius: 15px;
    }

    .opd-records-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .opd-card-top {
        min-height: 105px;
    }

}


@media (max-width: 400px) {

    .opd-section-heading {
        gap: 12px;
    }

    .opd-section-heading h2 {
        font-size: 27px;
    }

    .opd-section-heading p {
        font-size: 13px;
    }

    .opd-card-content {
        padding: 20px;
    }

}
