
/* 
   LAST ACCOUNTS PAGE
   PANNALA PRADESHIYA SABHA */

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

/* BANNER */

.accounts-banner {
    position: relative;
    width: 100%;
    height: 420px;

    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #14213d;
}

/* BACKGROUND IMAGE */

.accounts-banner-bg {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.3),
            rgba(0, 0, 0, 0.3)
        ),
        url('../images/1.png');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    animation: accountsZoom 8s ease-out both;
}

@keyframes accountsZoom {
    from {
        transform: scale(1.12);
    }

    to {
        transform: scale(1);
    }
}

/* BANNER CONTENT */

.accounts-banner-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    text-align: center;
}

.accounts-banner-content h1 {
    color: #ffffff;
    font-family: 'Noto Sans Sinhala', sans-serif;
    font-size: clamp(32px, 5.5vw, 75px);
    font-weight: 700;
    line-height: 1.5;
    margin: 0;

    animation: accountsTitleUp 1.2s ease-out both;
}

@keyframes accountsTitleUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BREADCRUMB */

.accounts-breadcrumb {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;

    padding: 0 15px 20px;

    font-family: 'Noto Sans Sinhala', sans-serif;
    font-size: 15px;
    font-weight: 600;

    animation: accountsBreadcrumb 1.3s ease 0.3s both;
}

.accounts-breadcrumb a {
    color: #ffffff;
    text-decoration: none;

    transition: color 0.3s ease;
}

.accounts-breadcrumb a:hover {
    color: #ebbe91;
}

.accounts-breadcrumb i {
    color: #ffffff;
}

.accounts-breadcrumb span {
    color: #ebbe91;
}

@keyframes accountsBreadcrumb {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*  PDF DOWNLOAD SECTION */

.accounts-section {
    width: 100%;
    padding: 20px 3% 70px;

    background: #ffffff;

    font-family: 'Noto Sans Sinhala', sans-serif;
}

.accounts-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

/* FILE CARD */

.accounts-file {
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 15px 20px;
    margin-bottom: 15px;

    background: #ffffff;

    border: 1px solid #dce3eb;
    border-radius: 12px;

    transition:
        opacity 0.9s ease,
        transform 0.9s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* HOVER */

.accounts-file:hover {
    border-color: #dda66c;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08);
}

/* LEFT SIDE FILE INFORMATION */

.accounts-file-info {
    display: flex;
    align-items: center;
    gap: 15px;

    min-width: 0;
}

/* PDF ICON */

.pdf-icon {
    width: 48px;
    height: 55px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #f5f5f5;

    border-radius: 5px;
    flex-shrink: 0;
}

.pdf-icon i {
    color: #d93636;
    font-size: 35px;

    transition: transform 0.4s ease;
}

.accounts-file:hover .pdf-icon i {
    transform: scale(1.12);
}

/* FILE DETAILS */

.accounts-file-details {
    min-width: 0;
}

.accounts-file-details h3 {
    margin: 0 0 5px;

    color: #d99660;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
}

.accounts-file-details p {
    margin: 0;

    color: #8b9ab5;

    font-size: 14px;
    font-weight: 400;
}

/*  DOWNLOAD BUTTON */

.accounts-download-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    padding: 12px 18px;

    background: #e8b583;
    color: #14213d;

    border: 1px solid #a7794c;
    border-radius: 5px;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.accounts-download-btn:hover {
    background: #14213d;
    color: #ffffff;

    transform: translateY(-3px);

    box-shadow:
        0 6px 15px rgba(0, 0, 0, 0.15);
}

.accounts-download-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* SCROLL REVEAL ANIMATION */

.reveal {
    opacity: 0;
    transform: translateY(45px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* BACK TO TOP */

#backToTop {
    position: fixed;

    bottom: 25px;
    right: 25px;

    width: 48px;
    height: 48px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #343a46;
    color: #ffffff;

    border: none;
    border-radius: 5px;

    font-size: 16px;
    cursor: pointer;

    z-index: 999;

    opacity: 0;
    visibility: hidden;

    transform: translateY(20px);

    transition:
        opacity 0.4s ease,
        visibility 0.4s ease,
        transform 0.4s ease,
        background-color 0.3s ease;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background: #dda66c;
    transform: translateY(-5px);
}

/*  TABLET RESPONSIVE */

@media (max-width: 992px) {

    .accounts-banner {
        height: 350px;
    }

    .accounts-section {
        padding: 20px 3% 60px;
    }

    .accounts-file {
        padding: 15px;
    }
}

/* MOBILE RESPONSIVE */

@media (max-width: 768px) {

    .accounts-banner {
        height: 290px;
    }

    .accounts-breadcrumb {
        font-size: 12px;
        gap: 10px;
    }

    .accounts-section {
        padding: 20px 15px 50px;
    }

    .accounts-file {
        gap: 12px;
        padding: 12px;
    }

    .accounts-file-details h3 {
        font-size: 14px;
    }

    .accounts-file-details p {
        font-size: 12px;
    }

    .accounts-download-btn {
        padding: 10px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {

    .accounts-banner {
        height: 240px;
    }

    .accounts-file {
        flex-wrap: wrap;
    }

    .accounts-download-btn {
        margin-left: auto;
    }

    .pdf-icon {
        width: 40px;
        height: 48px;
    }

    .pdf-icon i {
        font-size: 29px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .accounts-banner-bg,
    .accounts-banner-content h1,
    .accounts-breadcrumb {
        animation: none !important;
    }

    .reveal,
    .reveal.active {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
