
/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #5a8cc6;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.fields-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 40px;

    background: #ffffff;

    border-radius: 16px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.08);
}

.protypa-section,
.onaseia-section {
    width: 100%;
}


/* =========================================================
   SECTION HEADER
========================================================= */

.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.programmata_title {
    font-size: 42px;
    font-weight: 700;

    text-align: center;

    color: #02275c;

    letter-spacing: 1px;

    margin: 10px 0 18px;
}

.programmata_title::after {
    content: "";

    display: block;

    width: 70px;
    height: 4px;

    background: linear-gradient(
        90deg,
        #4a90e2,
        #02275c
    );

    margin: 15px auto 0;

    border-radius: 3px;
}

.section-header p {
    max-width: 750px;

    margin: 25px auto 0;

    color: #4e6482;

    font-size: 17px;

    line-height: 1.7;
}


/* =========================================================
   INFORMATION BOX
========================================================= */

.info-box {
    display: flex;

    align-items: flex-start;

    gap: 22px;

    padding: 30px;

    margin-bottom: 50px;

    background: #f4f8fd;

    border-left: 5px solid #4a90e2;

    border-radius: 16px;
}

.info-icon {
    width: 55px;
    height: 55px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: linear-gradient(
        135deg,
        #4a90e2,
        #81d4fa
    );

    color: #ffffff;

    font-size: 24px;

    box-shadow:
        0 5px 12px rgba(74, 144, 226, 0.2);
}

.info-content {
    flex: 1;

    min-width: 0;
}

.info-content h2 {
    margin: 0 0 12px;

    color: #02275c;

    font-size: 25px;

    line-height: 1.3;
}

.info-content p {
    margin: 0 0 10px;

    color: #4e6482;

    font-size: 16px;

    line-height: 1.7;
}

.info-content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   TABLE HEADER
========================================================= */

.table-header {
    text-align: center;

    margin-bottom: 25px;
}

.table-header h2 {
    margin: 0 0 10px;

    color: #02275c;

    font-size: 30px;
}

.table-header p {
    margin: 0;

    color: #60738d;

    font-size: 16px;

    line-height: 1.6;
}


/* =========================================================
   TABLE
========================================================= */

.table-wrapper {
    width: 100%;

    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08);
}

.schools-table {
    width: 100%;

    border-collapse: collapse;

    background: #ffffff;

    table-layout: fixed;
}


/* TABLE HEADER */

.schools-table thead {
    background: #02275c;
}

.schools-table th {
    padding: 18px 20px;

    color: #ffffff;

    font-size: 15px;

    font-weight: 700;

    text-align: left;

    white-space: nowrap;
}

.schools-table th:first-child {
    width: 46%;
}

.schools-table th:nth-child(2),
.schools-table th:nth-child(3),
.schools-table th:nth-child(4) {
    width: 18%;
}


/* TABLE CELLS */

.schools-table td {
    padding: 18px 20px;

    border-bottom: 1px solid #e4ebf3;

    color: #334e68;

    font-size: 15px;

    vertical-align: middle;
}


/* ALTERNATING ROWS */

.schools-table tbody tr:nth-child(even) {
    background: #f7faff;
}


/* ROW HOVER */

.schools-table tbody tr {
    transition:
        background-color 0.2s ease;
}

.schools-table tbody tr:hover {
    background: #edf5ff;
}

.schools-table tbody tr:last-child td {
    border-bottom: none;
}


/* =========================================================
   SCHOOL LINK
========================================================= */

.school-link {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    max-width: 100%;

    color: #02275c;

    font-weight: 700;

    line-height: 1.4;

    text-decoration: none;

    transition: color 0.2s ease;
}

.school-link i {
    flex-shrink: 0;

    font-size: 12px;

    color: #4a90e2;

    transition:
        transform 0.2s ease;
}

.school-link:hover {
    color: #4a90e2;
}

.school-link:hover i {
    transform: translate(2px, -2px);
}


/* NUMERIC COLUMNS */

.schools-table td:not(:first-child) {
    font-weight: 700;

    color: #02275c;

    text-align: center;
}


/* =========================================================
   BOTTOM INFORMATION
========================================================= */

.bottom-information {
    display: flex;

    align-items: flex-start;

    gap: 22px;

    padding: 30px;

    margin-top: 55px;

    background: #f4f8fd;

    border-left: 5px solid #4a90e2;

    border-radius: 16px;
}

.bottom-information .info-icon {
    width: 55px;
    height: 55px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: linear-gradient(
        135deg,
        #4a90e2,
        #81d4fa
    );

    color: #ffffff;

    font-size: 24px;
}

.bottom-information .info-content {
    flex: 1;

    min-width: 0;
}

.bottom-information .info-content h2 {
    margin: 0 0 12px;

    color: #02275c;

    font-size: 25px;

    line-height: 1.3;
}

.bottom-information .info-content p {
    margin: 0 0 10px;

    color: #4e6482;

    font-size: 16px;

    line-height: 1.7;
}

.bottom-information .info-content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   BOTTOM NAVIGATION
========================================================= */

.back-button-wrapper {
    width: 100%;

    margin-top: 35px;

    padding-bottom: 30px;
}


/* =========================================================
   PROGRAMS BUTTON
========================================================= */

.programs-btn {
    width: min(650px, 100%);

    margin: 0 auto 25px;

    display: flex;

    align-items: center;

    gap: 18px;

    padding: 18px 22px;

    background: linear-gradient(
        135deg,
        #02275c,
        #1c4587,
        #4a90e2
    );

    color: #ffffff;

    text-decoration: none;

    border-radius: 16px;

    box-shadow:
        0 10px 25px rgba(2, 39, 92, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* PROGRAMS ICON */

.programs-icon {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.15);

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 13px;

    font-size: 22px;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}


/* PROGRAMS TEXT */

.programs-text {
    display: flex;

    flex-direction: column;

    flex: 1;

    gap: 4px;

    text-align: left;
}

.programs-text strong {
    font-size: 17px;

    font-weight: 700;

    line-height: 1.3;
}

.programs-text small {
    font-size: 13px;

    opacity: 0.85;

    line-height: 1.4;
}


/* PROGRAMS ARROW */

.programs-arrow {
    flex-shrink: 0;

    font-size: 18px;

    transition:
        transform 0.3s ease;
}


/* PROGRAMS HOVER */

.programs-btn:hover {
    transform: translateY(-4px);

    box-shadow:
        0 16px 35px rgba(2, 39, 92, 0.32),
        0 6px 14px rgba(0, 0, 0, 0.1);
}

.programs-btn:hover .programs-arrow {
    transform: translateX(6px);
}

.programs-btn:hover .programs-icon {
    background: rgba(255, 255, 255, 0.22);

    transform: scale(1.05);
}


/* =========================================================
   BACK TO HOME BUTTON
========================================================= */

.btn-link {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin-top: 0;

    padding: 10px 18px;

    background: #02275c;

    color: #ffffff;

    text-decoration: none;

    border-radius: 12px;

    font-size: 14px;

    font-weight: 700;

    box-shadow:
        0 5px 15px rgba(2, 39, 92, 0.15);

    transition:
        background-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.btn-link:hover {
    background: #1c4587;

    transform: translateX(4px);

    box-shadow:
        0 10px 22px rgba(2, 39, 92, 0.25);
}

.btn-link .arrow {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    font-size: 17px;

    transition:
        transform 0.25s ease;
}

.btn-link:hover .arrow {
    transform: translateX(-3px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .fields-container {
        margin: 40px 25px;

        padding: 35px;
    }

    .programmata_title {
        font-size: 38px;
    }

    .schools-table th,
    .schools-table td {
        padding: 16px 14px;
    }

    .schools-table th {
        font-size: 14px;
    }

    .schools-table td {
        font-size: 14px;
    }

    .school-link {
        font-size: 14px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .fields-container {
        margin: 25px 15px;

        padding: 25px 18px;

        border-radius: 15px;
    }


    /* HEADER */

    .programmata_title {
        font-size: 32px;

        line-height: 1.2;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .section-header p {
        font-size: 15px;

        line-height: 1.65;
    }


    /* INFO BOX */

    .info-box {
        padding: 22px;

        gap: 15px;

        margin-bottom: 40px;
    }

    .info-icon {
        width: 48px;
        height: 48px;

        border-radius: 13px;

        font-size: 20px;
    }

    .info-content h2 {
        font-size: 22px;

        line-height: 1.3;
    }

    .info-content p {
        font-size: 15px;

        line-height: 1.65;
    }


    /* TABLE HEADER */

    .table-header {
        margin-bottom: 20px;
    }

    .table-header h2 {
        font-size: 26px;
    }

    .table-header p {
        font-size: 15px;
    }


    /* MOBILE TABLE → CARDS */

    .table-wrapper {
        overflow: visible;

        box-shadow: none;

        border-radius: 0;
    }

    .schools-table {
        display: block;

        width: 100%;

        table-layout: auto;
    }

    .schools-table thead {
        display: none;
    }

    .schools-table tbody {
        display: flex;

        flex-direction: column;

        gap: 18px;
    }

    .schools-table tr {
        display: block;

        width: 100%;

        padding: 20px;

        background: #ffffff !important;

        border: 1px solid #e1eaf4;

        border-radius: 16px;

        box-shadow:
            0 6px 20px rgba(0, 0, 0, 0.07);

        transition:
            transform 0.2s ease,
            box-shadow 0.2s ease;
    }

    .schools-table tr:hover {
        transform: translateY(-2px);

        background: #ffffff !important;

        box-shadow:
            0 10px 25px rgba(0, 0, 0, 0.10);
    }

    .schools-table td {
        display: flex;

        align-items: center;

        justify-content: space-between;

        gap: 15px;

        width: 100%;

        padding: 13px 0;

        border-bottom: 1px solid #edf1f6;

        text-align: right !important;

        font-size: 15px;
    }

    .schools-table td:last-child {
        border-bottom: none;

        padding-bottom: 0;
    }

    .schools-table td::before {
        content: attr(data-label);

        flex-shrink: 0;

        color: #60738d;

        font-size: 13px;

        font-weight: 600;

        text-align: left;
    }


    /* SCHOOL NAME */

    .schools-table td:first-child {
        display: block;

        padding-top: 0;

        padding-bottom: 17px;

        margin-bottom: 2px;

        text-align: left !important;
    }

    .schools-table td:first-child::before {
        display: block;

        margin-bottom: 8px;

        color: #60738d;

        font-size: 13px;

        font-weight: 600;
    }

    .school-link {
        display: inline-flex;

        align-items: flex-start;

        max-width: 100%;

        color: #02275c;

        font-size: 16px;

        font-weight: 700;

        line-height: 1.45;

        word-break: normal;
    }

    .schools-table td:not(:first-child) {
        color: #02275c;

        font-weight: 700;

        text-align: right !important;
    }


    /* BOTTOM INFORMATION */

    .bottom-information {
        margin-top: 40px;

        padding: 22px;

        gap: 15px;
    }

    .bottom-information .info-icon {
        width: 48px;
        height: 48px;

        font-size: 20px;

        border-radius: 13px;
    }

    .bottom-information .info-content h2 {
        font-size: 23px;

        line-height: 1.3;
    }

    .bottom-information .info-content p {
        font-size: 15px;

        line-height: 1.7;
    }


    /* PROGRAMS BUTTON */

    .programs-btn {
        width: 100%;

        padding: 15px;

        gap: 12px;

        border-radius: 14px;
    }

    .programs-icon {
        width: 45px;
        height: 45px;

        font-size: 19px;

        border-radius: 12px;
    }

    .programs-text strong {
        font-size: 15px;
    }

    .programs-text small {
        font-size: 11px;
    }

    .programs-arrow {
        font-size: 15px;
    }


    /* BACK BUTTON */

    .back-button-wrapper {
        margin-bottom: 50px;

        padding: 0;
    }

    .btn-link {
        font-size: 13px;

        padding: 9px 15px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 450px) {

    .fields-container {
        margin: 15px 10px;

        padding: 22px 12px;

        border-radius: 14px;
    }


    /* HEADER */

    .programmata_title {
        font-size: 28px;
    }

    .section-header p {
        font-size: 14px;
    }


    /* INFO BOX */

    .info-box {
        /*
         * Keep icon beside the content.
         * Do NOT use flex-direction: column.
         */
        flex-direction: row;

        align-items: flex-start;

        padding: 20px;

        gap: 13px;
    }

    .info-icon {
        width: 45px;
        height: 45px;

        flex-shrink: 0;

        border-radius: 12px;

        font-size: 18px;
    }

    .info-content {
        min-width: 0;
    }

    .info-content h2 {
        font-size: 20px;

        line-height: 1.3;

        margin-bottom: 10px;
    }

    .info-content p {
        font-size: 14px;

        line-height: 1.65;
    }


    /* TABLE */

    .table-header h2 {
        font-size: 24px;
    }

    .table-header p {
        font-size: 14px;
    }

    .schools-table tbody {
        gap: 15px;
    }

    .schools-table tr {
        padding: 18px;

        border-radius: 14px;
    }

    .schools-table td {
        gap: 10px;

        font-size: 14px;
    }

    .schools-table td::before {
        font-size: 12px;
    }

    .school-link {
        font-size: 15px;
    }


    /* BOTTOM INFORMATION */

    .bottom-information {
        padding: 20px;

        gap: 13px;
    }

    .bottom-information .info-icon {
        width: 45px;
        height: 45px;

        font-size: 18px;
    }

    .bottom-information .info-content h2 {
        font-size: 20px;
    }

    .bottom-information .info-content p {
        font-size: 14px;
    }


    /* PROGRAMS BUTTON */

    .programs-btn {
        padding: 13px;

        gap: 10px;
    }

    .programs-icon {
        width: 42px;
        height: 42px;

        font-size: 17px;
    }

    .programs-text strong {
        font-size: 14px;
    }

    .programs-text small {
        font-size: 10px;
    }

    .programs-arrow {
        font-size: 14px;
    }


    /* BACK BUTTON */

    .btn-link {
        padding: 10px 15px;

        font-size: 13px;
    }
}
