/* Footer specific styles based on Screenshot 2025-06-19 143203.jpg */

@font-face {
    font-family: "chalkduster";
    src: url("../fonts/Chalkduster.ttf");
}

@font-face {
    font-family: "baghdadregular";
    src: url("../fonts/BaghdadRegular.ttf");
}

@font-face {
    font-family: "helvetica";
    src: url("../fonts/HelveticaNeueMedium.ttf");
}

#footer-placeholder {
    margin: 0 !important;
    padding: 0 !important;
    /* font-family: "helvetica" !important; */
}



.site-footer {
    background-color: #e0e0e0;
    /* Light gray background as seen in the image */
    color: #333;
    margin-top: auto;
    /* Pushes footer to the bottom of the page */
}

.footer-content-section {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0 auto;
    /* Center the content */
    display: flex;
    /* Use flex for main sections */
    flex-direction: column;
    /* Stack archives above contact info */
    gap: 30px;
    background-color: #F9F5F4;
    /* Space between archive section and contact section */
}

/* NEW: Main Archives Container Styling (to hold title+line and grid side-by-side) */
.main-archives-container {
    display: flex;
    align-items: center;
    /* Vertically align items (title/line and grid) */
    gap: 20px;
    /* Space between the header/line and the image grid */
    padding-left: 20px;
    /* Padding for the whole section */
    padding-right: 20px;
    /* Padding for the whole section */
    margin-top: 20px;
    margin-bottom: -30px;
}

/* NEW: Archives Header and Line Container */
/* .archives-header-and-line {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    width: 180px;
} */

/* NEW: QURATED ARCHIVES Title */
.main-archives-title {
    -webkit-transform: rotate(-270deg);
    -moz-transform: rotate(-270deg);
    font-family: "helvetica";
    /* Use helvetica as specified for titles */
    color: #d7463e !important;
    font-size: 1.2em;
    /* Larger font size for prominence */
    line-height: 1.2;
    /* Adjust line height for two lines */
    margin-bottom: 10px;
    /* Space between title and line */
    text-align: right;
    /* Align "QURATED ARCHIVES" to the right */
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    letter-spacing: 1.2px;
    /* Keep words on one line */
}

.main-archives-title-line1 {
    font-size: 1.1em;
    /* Adjust relative size for "QURATED" */
}

.main-archives-title-line2 {
    font-size: 1.1em;
    /* Adjust relative size for "ARCHIVES" */
}

.archive-title-line-special {
    font-size: 0.6em;
}

/* NEW: Line below QURATED ARCHIVES */
.archives-line-top {
    width: 100%;
    /* Take full width of its container */
    height: 2px;
    background-color: #ccc;
    margin-bottom: 20px;
    /* Space between line and grid */
}

/* Archives Grid Styling (mostly retained, modified to match new HTML/visuals) */
.archives-grid {
    display: flex;
    flex-wrap: nowrap;
    /* Prevent wrapping, allow horizontal scroll */
    gap: 50px;
    /* Space between archive items, adjusted for cleaner look */
    overflow-x: auto;
    /* Enable horizontal scrolling if items exceed container width */
    padding-bottom: 5px;
    /* Space for scrollbar if it appears */
    flex-grow: 1;
    /* Allows grid to take available horizontal space */
}

.archive-item {

    text-align: center;
    flex-shrink: 0;
    /* Prevent items from shrinking */
    width: 130px;
    /* Fixed width for each archive item */
    /* height: 160px; */
    /* REMOVED fixed height for card, content will define height */
    background-color: transparent;
    /* NO WHITE BACKGROUND */
    border-radius: 0;
    /* NO BORDER RADIUS */
    box-shadow: none;
    /* NO SHADOW */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Align content from the top */
    padding: 0;
    /* No padding on the item itself */
}

.archive-item img {
    width: 130px;
    /* Image takes full width of its container */
    height: 130px;
    /* Fixed height for the image, making it square */
    object-fit: cover;
    /* Cover the area, cropping if necessary */
    border-radius: 4px;
    /* Slightly rounded corners for the image itself */
    display: block;
    /* Remove extra space below image */
    margin-bottom: 8px;
    /* Space between image and text block */
}

/* Archive Text Container */
.archive-text {

    display: flex;
    justify-content: space-between;
    /* Pushes title to left, year to right */
    align-items: center;
    /* Vertically centers content within this container */
    width: 100%;
    /* Take full width of parent */
    padding: 0 2px;
    /* Little horizontal padding */
    /* margin-top: 8px; */
    /* REMOVED: margin is now on image */
    height: 40px;
    /* Give it a fixed height to align year */
}

.archive-title {
    font-family: "helvetica";
    font-weight: 500 !important;
    color: #5f5f5f !important;
    font-size: 0.8em;
    /* Smaller font for title */
    margin: 0;
    /* Remove default margins */
    text-align: left;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    /* Adjust line height for closer lines */
    justify-content: center;
    /* Vertically center the two lines */
    flex-grow: 1;
    /* Allow title to grow and take space */
}

.archive-title-line1,
.archive-title-line2 {
    white-space: nowrap;
    /* Prevent these words from wrapping */
}

.archive-year {
    font-family: "chalkduster";
    color: #d7463e !important;
    font-size: 1.5em;
    /* Larger font for year to make it prominent */
    margin: 0;
    /* Remove default margins */
    text-align: right;
    padding-right: 5px;
    /* Push year slightly more to the right */
    white-space: nowrap;
    /* Ensure year stays on one line */
    flex-shrink: 0;
    /* Prevent year from shrinking */
}


/* Contact Info Section Styling (mostly retained, minor tweaks) */
.contact-info {
    display: flex;
    align-items: flex-start;
    /* Align logo and text at the top */
    gap: 30px;
    /* Space between DITP logo and contact details blocks */
    border-top: 1px solid #ccc;
    /* Separator line above contact info */
    padding-top: 30px;
    /* Space from the separator line */
    padding-left: 20px;
    padding-bottom: 30px;
    background-color: #E6E6E6;
    /* Consistent left padding with archives */
}

.contact-logo {
    flex-shrink: 0;
    /* Prevent logo from shrinking */
    padding-top: 5px;
    margin-top: 15px;
    /* Align logo vertically with the text somewhat */
}

.contact-logo img {
    max-width: 80px;
    /* Adjust DITP logo size in footer */
    height: auto;
    display: block;
}

.contact-details {
    flex-grow: 1;
    /* Allows contact details to take available space */
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping columns on smaller screens */
    justify-content: space-between;
    /* Distribute contact blocks */
    gap: 20px;
    /* Space between individual contact blocks */
}

.contact-block {
    box-sizing: border-box;
    /* Include padding and border in the element's total width and height */
}

.contact-block:nth-child(1) {
    /* First block: DEPARTMENT + Address */
    flex-basis: 350px;
    /* Give a fixed basis for clearer structure */
    max-width: 40%;
    /* Prevent it from taking too much too much space on very wide screens */
}

.contact-block:nth-child(2) {
    /* Second block: Tel numbers */
    flex-basis: 220px;
    max-width: 25%;
}

.contact-block:nth-child(3) {
    /* Third block: Email + Website */
    flex-basis: 280px;
    max-width: 30%;
}


.contact-block h3 {
    margin-bottom: 8px;
    /* Reduced margin */
    color: #333;
    font-size: 1em;
    /* Keep font size standard */
    font-weight: bold;
    line-height: 1.3;
    /* Adjust line height for readability */
}

.contact-block p {
    margin-bottom: 3px;
    /* Reduced margin between lines */
    font-size: 0.85em;
    /* Slightly smaller font */
    color: #555;
    /* Removed white-space: nowrap here to allow addresses to wrap naturally if needed */
}

.contact-block p:last-of-type {
    margin-bottom: 0;
    /* No margin below the last paragraph in a block */
}


.contact-block a {
    color: #555;
    /* Link color for email/website */
    text-decoration: none;
}

.contact-block a:hover {
    color: rgb(0, 0, 0);
    text-decoration: none;
}

/* Bottom Footer Bar Styling */
.bottom-footer-bar {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #FFFFFF;
    /* Dark background as seen in the image */
    color: #0C3170;
    padding: 15px 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Allow wrapping on smaller screens */
}

.bottom-footer-bar p {
    margin: 5px 0;
    font-size: 0.9em;
}

.bottom-footer-bar a {
    color: #0C3170;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
}

.bottom-footer-bar a:hover {
    text-decoration: none;
    color: rgb(213, 213, 213);
}

.bottom-footer-bar img {
    width: 18px;
    /* Slightly smaller social media icons */
    height: 18px;
}

@media (max-width: 1500px) {
    .archives-grid {
        gap: 45px;
    }
}

@media (max-width: 1390px) {
    .archives-grid {
        gap: 32px;
    }
}

@media (max-width: 1300px) {
    .archives-grid {
        gap: 27px;
    }
}

@media (max-width: 1250px) {
    .archives-grid {
        gap: 22px;
    }
}

@media (max-width: 1200px) {
    .archive-item img {
        height: 117px;
        width: 117px;
    }

    .archive-year {
        font-size: 1.3em;
    }

    .archive-text {
        width: 90%;
    }

    .main-archives-container {
        padding-right: 10px;
        padding-left: 10px;
        gap: 0px;
    }

    .contact-info {
        gap: 20px;
    }

    .contact-block h3 {
        font-size: 0.8em;
    }
}

@media (max-width: 1160px) {
    /* .archive-item img {
        height: 100px;
        width: 70%;
        margin-bottom: 0px;
    } */

    .archive-year {
        font-size: 0.9em;
    }

    .archive-title {
        font-size: 0.7em;
    }

    .archive-text {
        width: 80%;
    }

    .archives-grid {
        gap: 8px;
    }

    .archives-grid {
        overflow-x: unset;
        /* Enable horizontal scrolling if items exceed container width */

    }

    .contact-block h3 {
        font-size: 0.7em;
    }

    .contact-block p {
        font-size: 0.6em;
    }

    .main-archives-title {
        font-size: 1em;
    }

    .contact-details {
        gap: 0px;
    }
}

@media (max-width: 1050px) {
    /* .archive-item img {
        height: 60px;
        width: 70%;
        margin-bottom: 0px;
    } */

    .archive-year {
        font-size: 0.9em;
    }

    .archive-title {
        font-size: 0.7em;
    }

    .archive-text {
        width: 80%;
    }

    .archives-grid {
        gap: 10px;
    }

    .archive-item {
        width: 120px;
    }

    .contact-block h3 {
        font-size: 0.5em;
    }

    .contact-block p {
        font-size: 0.5em;
    }
    .main-archives-title {
        font-size: 0.7em;
    }

    .contact-details {
        gap: 0px;
    }

    .main-archives-container {
        padding: 0;
    }

        .bottom-footer-bar p {
        font-size: 0.65em;
    }

}

@media (max-width: 1000px) {
    /* .archive-item img {
        height: 60px;
        width: 70%;
        margin-bottom: 0px;
    } */


    .archives-grid {
        gap: 5px;
    }

}


@media (max-width: 950px) {
    .contact-block:nth-child(1) {
        max-width: 0%;
        padding-left: 30px;
    }

    .archive-item img {
        height: 100px;
        width: 100px;
    }
    .archives-grid {
        gap: 15px;
    }

    .contact-block:nth-child(2) {
        padding-left: 50px;
    }

    .contact-info {
        gap: 10px;
    }

    .archive-item {
        width: 100px;
    }

    .archive-year {
        font-size: 0.7em;
    }

    .archive-title {
        font-size: 0.6em;
    }

    .archive-text {
        width: 85%;
    }

    /* #footer-placeholder {
        content-visibility: hidden;
    } */

}

@media (max-width: 900px) {

    .archive-item img {
        height: 80px;
        width: 80px;
    }
    .archives-grid {
        gap: 7px;
    }



}

@media (max-width: 850px) {

    .archive-item img {
        height: 70px;
        width: 70px;
    }
    .archives-grid {
        gap: 5px;
    }

    .archive-item {
        width: 95px;
    }

}

@media (max-width: 768px) {
    .contact-info {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    /* .archive-item img {} */
    .archive-item {
        width: 90px;
    }

    .archive-text {
        width: 80%;
    }

    .contact-block:nth-child(1) {
        /* First block: DEPARTMENT + Address */
        flex-basis: initial;
        /* Give a fixed basis for clearer structure */
        max-width: none;
        /* Prevent it from taking too much too much space on very wide screens */
    }

    .contact-block:nth-child(2) {
        /* Second block: Tel numbers */
        flex-basis: initial;
        max-width: none;
        padding-left: 30px;
    }

    .contact-block:nth-child(3) {
        /* Third block: Email + Website */
        flex-basis: initial;
        
        max-width: none;
            padding-left: 30px;
    }

    .contact-details {
        justify-content: start
    }

}


@media (max-width: 720px) {

    /* .archive-item img {} */
    .archive-item {
        width: 85px;
    }

    .archive-text {
        width: 80%;
    }
}

@media (max-width: 690px) {

    /* .archive-item img {} */
    .archive-item {
        width: 80px;
    }

    .archive-text {
        width: 90%;
    }


    .contact-block:nth-child(1) {

        padding-left: 0px;
        /* Prevent it from taking too much too much space on very wide screens */
    }

        .contact-block:nth-child(2) {
            /* Second block: Tel numbers */

            padding-left: 30px;
        }

        .contact-block:nth-child(3) {

                padding-left: 30px;
        }
}

@media (max-width: 655px) {

    /* .archive-item img {} */
    .archive-item {
        width: 75px;
    }

    .archive-text {
        width: 95%;
    }

        .contact-block:nth-child(2) {
            /* Second block: Tel numbers */

            padding-left: 15px;
        }

        .contact-block:nth-child(3) {

                padding-left: 15px;
        }
}

@media (max-width: 615px) {

    /* .archive-item img {} */
    .archive-item {
        width: 70px;
    }

    .archive-text {
        width: 90%;
    }

    .archive-title {
        font-size: 0.5em;
    }

    .archive-year {
        font-size: 0.6em;
    }
    .contact-block h3 {
        font-size: 0.3em;
    }
    .contact-block p {
        font-size: 0.25em;
    }

        .contact-block:nth-child(2) {
            /* Second block: Tel numbers */

            padding-left: 30px;
        }

        .contact-block:nth-child(3) {

                padding-left: 30px;
        }
}

@media (max-width: 580px) {

    .archive-item img {
        height: 60px;
        width: 60px;
    }

    /* .archive-item img {} */
    .archive-item {
        width: 65px;
    }

    .archive-text {
        width: 90%;
    }

    .archive-title {
        font-size: 0.5em;
    }

    .archive-year {
        font-size: 0.6em;
    }
}


@media (max-width: 550px) {

    /* .archive-item img {} */
    .archive-item {
        width: 56px;
        padding-right: 10px;
    }

    .archive-text {
                height: 25px;
        width: 120%;
    }

    .archive-title {
        font-size: 0.5em;
    }

    .archive-year {
        font-size: 0.6em;
    }
    .archive-title-line2 {
        white-space: normal !important;
    }

    /* .archive-item img {
        width: 100%
    } */
}


@media (max-width: 530px) {

    /* .archive-item img {} */
    .archive-item {
        width: 51px;
        /* padding-right: 15px; */
    }

    .archives-grid {
        gap: 15px;
    }

    .archive-text {
        width: 120%;
    }

    .archive-title {
        font-size: 0.40em;
    }

    .archive-year {
        font-size: 0.50em;
    }

    .main-archives-title {
        font-size: 0.6em;
    }

    .contact-block h3 {
        font-size: 0.3em;
    }
    .contact-block p {
        font-size: 0.25em;
    }

        .contact-block:nth-child(2) {
            /* Second block: Tel numbers */

            padding-left: 15px;
        }

        .contact-block:nth-child(3) {

                padding-left: 15px;
        }
}


@media (max-width: 500px) {
    /* .archive-item img {
        height: 42px;
    } */

    .archive-item img {
        height: 46px;
        width: 46px;
    }
    .archives-grid {
        gap: 13px;
    }
    /* .archive-item img {} */
    .archive-item {
        width: 46px;
        /* padding-right: 15px; */
    }

    .archive-text {

        width: 130%;
    }

    .archive-title {
        font-size: 6px;
    }

    .archive-year {
        font-size: 6px;
    }

    .main-archives-title {
        font-size: 0.3em;
    }

    .archive-title-line2 {
        font-size: 6px !important;
        white-space: normal;
        margin-top: 0.3px;
    }

    .archive-title-line-special-1 {
        margin-top: 5px;
    }
    .contact-block h3 {
        font-size: 0.03em;
    }
    .contact-block p {
        font-size: 0.03em;
    }
    .contact-logo img {
        max-width: 50px;
    }
    .contact-logo {
        margin-top: 0;
    }

        .contact-block:nth-child(2) {
            /* Second block: Tel numbers */

            padding-left: 5px;
        }

        .contact-block:nth-child(3) {

                padding-left: 5px;
        }
}

@media (max-width: 475px) {
    /* .archive-item img {
        height: 42px;
    } */
    /* .archive-item img {} */
    /* .archive-item {
        width: 41px;

    } */
/* 
        .archives-grid {
        gap: 25px;
    } */
    .archive-text {
        width: 130%;
    }

    .archive-title {
        font-size: 6px;
    }

    .archive-year {
        font-size: 6px;
    }

    .main-archives-title {
        font-size: 0.3em;
    }

    .archive-title-line2 {
        font-size: 6px !important;
        white-space: normal;
        margin-top: 0.3px;
    }

    .archive-title-line-special-1 {
        margin-top: 5px;
    }
    .contact-block h3 {
        font-size: 0.03em;
    }
    .contact-block p {
        font-size: 0.03em;
    }
    .contact-logo img {
        max-width: 50px;
    }
    .contact-logo {
        margin-top: 0;
    }

        .contact-block:nth-child(2) {
            /* Second block: Tel numbers */

            padding-left: 5px;
        }

        .contact-block:nth-child(3) {

                padding-left: 5px;
        }
}
@media (max-width: 440px) {
    .archive-item img {
        height: 40px;
        width: 40px;
    }

    .archives-grid {
        gap: 8px;
    }
    /* .archive-item img {} */
    /* .archive-item {
        width: 54px;
        padding-right: 13px;
    } */
    .contact-block h3 {
        font-size: 5px;
    }
    .contact-block p {
        font-size: 5.5px;
    }
    .archive-text {
        width: 130%;
    }

    .archive-title {
        font-size: 6px;
    }

    .archive-year {
        font-size: 6px;
    }

    .main-archives-title {
        font-size: 0.4em;
    }

}

@media (max-width: 425px) {
    .archive-item img {
        height: 37px;
        width: 37px;
    }

    .archives-grid {
        gap: 8px;
    }
    .archive-text {
        width: 130%;
    }


    .archive-title {
        font-size: 6px;
    }

    .archive-year {
        font-size: 6px;
    }

    .main-archives-title {
        font-size: 0.3em;
    }

}

@media (max-width: 400px) {
    .archive-item img {
        height: 32px;
        width: 32px;
    }

    .archives-grid {
        gap: 2px;
    }
    /* .archive-item img {} */


    .archive-text {
        width: 140%;
    }

    .contact-info {
        padding-left: 5px;
    }

}

@media (max-width: 380px) {
   .archive-item img {
        height: 32px;
        width: 32px;
    }

    .archives-grid {
        gap: 2px;
    }
    .archive-text {
        width: 140%;
    }
    .contact-block h3 {
        font-size: 4px;
    }
    .contact-block p {
        font-size: 4.5px;
    }
 }

 
@media (max-width: 365px) {
   .archive-item img {
        height: 28px;
        width: 28px;
    }
    .archive-item {
            width: 42px;
    }
    .archives-grid {
        gap: 0px;
    }
    .archive-text {
        width: 135%;
    }
    .contact-block h3 {
        font-size: 4px;
    }
    .contact-block p {
        font-size: 4.5px;
    }
    /* .archive-title {
        font-size: 5px;
    } */
 }

 @media (max-width: 345px) {
   .archive-item img {
        height: 28px;
        width: 28px;
    }

    .archives-grid {
        gap: 0px;
    }
    .archive-text {
        width: 130%;
    }
    .contact-block h3 {
        font-size: 4px;
    }
    .contact-block p {
        font-size: 4.5px;
    }
    /* .archive-title {
        font-size: 5px;
    } */
 }

 @media (max-width: 330px) {
    .archive-item {
        width: 35px;
        padding-right: 13px;
    }

    .archives-grid {
        gap: 5px;
    }
    .archive-text {
        width: 180%;
    }
    .contact-block h3 {
        font-size: 4px;
    }
    .contact-block p {
        font-size: 4.5px;
    }
    /* .archive-title {
        font-size: 5px;
    } */
 }