/* ==========================================================
   الصفحة الرئيسية
   نظام الأقسام الداخلية - جامعة ديالى
========================================================== */


/* ==========================================================
   Main
========================================================== */

.home-page {
    width: 100%;
    margin: 0;
    padding: 0;

    direction: rtl;

    background: #f5f7f9;

    color: #243746;

    font-family: Tahoma, Arial, sans-serif;
}


/* ==========================================================
   Container
========================================================== */

.home-page .home-container {

    width: calc(100% - 40px);

    max-width: 1180px;

    margin-left: auto;
    margin-right: auto;
}


/* ==========================================================
   Hero
========================================================== */

.home-page .home-hero {

    position: relative;

    padding: 70px 20px 85px;

    text-align: center;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #073b67 0%,
            #0b568b 50%,
            #1474a6 100%
        );

    overflow: hidden;
}


/* تأثير خلفية بسيط */

.home-page .home-hero::before {

    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -230px;
    right: -120px;

    border-radius: 50%;

    background:
        rgba(
            255,
            255,
            255,
            0.05
        );
}


.home-page .home-hero::after {

    content: "";

    position: absolute;

    width: 330px;
    height: 330px;

    bottom: -210px;
    left: -100px;

    border-radius: 50%;

    background:
        rgba(
            255,
            255,
            255,
            0.05
        );
}


.home-page .home-hero .home-container {

    position: relative;

    z-index: 2;

    max-width: 900px;
}


/* Badge */

.home-page .home-hero-badge {

    display: inline-block;

    padding: 8px 20px;

    margin-bottom: 18px;

    border:

        1px solid

        rgba(
            255,
            255,
            255,
            0.28
        );

    border-radius: 50px;

    background:

        rgba(
            255,
            255,
            255,
            0.10
        );

    color: #ffffff;

    font-size: 15px;
}


/* Main title */

.home-page .home-hero-title {

    margin:

        0
        auto
        5px;

    padding: 0;

    color: #ffffff;

    font-size: 42px;

    font-weight: 700;

    line-height: 1.55;
}


.home-page .home-hero-university {

    margin: 5px 0 12px;

    padding: 0;

    color: #d9edf8;

    font-size: 28px;

    font-weight: 500;
}


.home-page .home-hero-description {

    max-width: 670px;

    margin:

        12px
        auto
        28px;

    color: #e5f0f6;

    font-size: 17px;

    line-height: 2;
}


/* registration button */

.home-page .home-hero-actions {

    display: flex;

    justify-content: center;

    align-items: center;
}


.home-page .home-register-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 230px;

    min-height: 54px;

    padding: 12px 30px;

    border-radius: 8px;

    background: #ffffff;

    color: #0c507d;

    text-decoration: none;

    font-size: 18px;

    font-weight: bold;

    box-shadow:

        0 8px 20px

        rgba(
            0,
            0,
            0,
            0.12
        );

    transition:

        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.home-page .home-register-button:hover {

    color: #083e64;

    background: #f7fbfd;

    transform: translateY(-2px);

    box-shadow:

        0 12px 25px

        rgba(
            0,
            0,
            0,
            0.18
        );
}


/* ==========================================================
   Steps
========================================================== */

.home-page .home-steps {

    position: relative;

    z-index: 4;

    margin-top: -35px;

    padding-bottom: 35px;
}


.home-page .home-steps-grid {

    display: grid;

    grid-template-columns:

        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 18px;
}


.home-page .home-step-card {

    min-height: 135px;

    display: flex;

    align-items: flex-start;

    gap: 16px;

    padding: 24px;

    border:

        1px solid
        #e3eaf0;

    border-radius: 12px;

    background: #ffffff;

    box-shadow:

        0 6px 25px

        rgba(
            34,
            60,
            80,
            0.07
        );
}


.home-page .home-step-number {

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 43px;

    height: 43px;

    border-radius: 50%;

    background: #e8f3f9;

    color: #0d6195;

    font-size: 17px;

    font-weight: bold;
}


.home-page .home-step-card h3 {

    margin:

        0
        0
        7px;

    padding: 0;

    color: #173d59;

    font-size: 17px;
}


.home-page .home-step-card p {

    margin: 0;

    padding: 0;

    color: #657582;

    font-size: 14px;

    line-height: 1.85;
}


/* ==========================================================
   Common Section
========================================================== */

.home-page .home-announcements {

    padding: 48px 0;

    background: #ffffff;
}


.home-page .home-downloads {

    padding: 48px 0;

    background: #f5f7f9;
}


.home-page .home-section-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 7px;
}


.home-page .home-small-title {

    display: block;

    margin-bottom: 5px;

    color: #1976a5;

    font-size: 14px;

    font-weight: bold;
}


.home-page .home-section-heading h2 {

    margin: 0;

    padding: 0;

    color: #173b56;

    font-size: 27px;

    line-height: 1.5;
}


.home-page .home-section-icon {

    flex-shrink: 0;

    width: 52px;

    height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background: #eaf3f8;

    color: #0b6498;

    font-size: 22px;
}


.home-page .home-section-description {

    max-width: 720px;

    margin:

        5px
        0
        28px;

    padding: 0;

    color: #6a7985;

    font-size: 15px;

    line-height: 1.9;
}


/* ==========================================================
   Announcements
========================================================== */

.home-page .home-announcements-list {

    display: flex;

    flex-direction: column;

    gap: 14px;
}


.home-page .home-announcement-card {

    position: relative;

    display: flex;

    width: 100%;

    overflow: hidden;

    border:

        1px solid
        #e1e8ed;

    border-radius: 10px;

    background: #fafcfd;
}


.home-page .home-announcement-marker {

    width: 5px;

    flex: 0 0 5px;

    background: #1878ac;
}


.home-page .home-announcement-content {

    flex: 1;

    padding: 20px 23px;
}


.home-page .home-announcement-content h3 {

    margin:

        0
        0
        9px;

    padding: 0;

    color: #173b56;

    font-size: 18px;
}


.home-page .home-announcement-text {

    color: #4d5e6a;

    font-size: 15px;

    line-height: 2;
}


/* Important */

.home-page .home-announcement-important {

    background: #f2f8fc;
}


.home-page
.home-announcement-important
.home-announcement-marker {

    background: #0871ae;
}


/* Warning */

.home-page .home-announcement-warning {

    background: #fff9f1;

    border-color: #efdfc6;
}


.home-page
.home-announcement-warning
.home-announcement-marker {

    background: #e48a27;
}


.home-page
.home-announcement-warning h3 {

    color: #a05b18;
}


/* Success */

.home-page .home-announcement-success {

    background: #f3faf5;

    border-color: #d8eadf;
}


.home-page
.home-announcement-success
.home-announcement-marker {

    background: #358953;
}


/* announcement link */

.home-page .home-announcement-link {

    display: inline-block;

    margin-top: 12px;

    color: #096a9e;

    font-weight: bold;

    text-decoration: none;
}


.home-page .home-announcement-link:hover {

    text-decoration: underline;
}


.home-page .home-no-announcements {

    padding: 28px;

    border:

        1px dashed
        #ccd7df;

    border-radius: 10px;

    background: #f8fafb;

    color: #788792;

    text-align: center;

    font-size: 15px;
}


/* ==========================================================
   Downloads
========================================================== */

.home-page .home-downloads-grid {

    display: grid;

    grid-template-columns:

        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 18px;

    margin-top: 25px;
}


.home-page .home-download-card {

    min-height: 108px;

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 20px;

    border:

        1px solid
        #dfe8ee;

    border-radius: 11px;

    background: #ffffff;

    color: inherit;

    text-decoration: none;

    transition:

        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


.home-page .home-download-card:hover {

    transform: translateY(-3px);

    border-color: #b8d6e6;

    box-shadow:

        0 10px 25px

        rgba(
            30,
            60,
            85,
            0.08
        );
}


.home-page .home-download-icon {

    flex-shrink: 0;

    width: 52px;

    height: 52px;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: 9px;

    background: #e9f4fa;

    color: #0a6396;

    font-size: 13px;

    font-weight: bold;
}


.home-page .home-download-info {

    flex: 1;
}


.home-page .home-download-info h3 {

    margin:

        0
        0
        6px;

    padding: 0;

    color: #173d59;

    font-size: 17px;
}


.home-page .home-download-info p {

    margin: 0;

    padding: 0;

    color: #788691;

    font-size: 13px;

    line-height: 1.7;
}


.home-page .home-download-arrow {

    color: #6393ad;

    font-size: 20px;
}


/* ==========================================================
   Contact
========================================================== */

.home-page .home-contact {

    padding:

        10px
        0
        55px;

    background: #f5f7f9;
}


.home-page .home-contact-box {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    padding: 30px 35px;

    border-radius: 13px;

    background: #163f5e;

    color: #ffffff;
}


.home-page .home-contact-label {

    color: #bad8e8;

    font-size: 14px;
}


.home-page .home-contact-content h2 {

    margin:

        7px
        0
        8px;

    padding: 0;

    color: #ffffff;

    font-size: 23px;
}


.home-page .home-contact-content p {

    margin: 0;

    padding: 0;

    color: #d4e2ea;

    font-size: 14px;

    line-height: 1.8;
}


.home-page .home-email-button {

    flex-shrink: 0;

    padding: 13px 20px;

    border-radius: 8px;

    background: #ffffff;

    color: #164e73;

    font-weight: bold;

    text-decoration: none;

    direction: ltr;
}


.home-page .home-email-button:hover {

    background: #edf6fa;

    color: #123f5d;
}


/* ==========================================================
   Tablet
========================================================== */

@media (max-width: 900px) {

    .home-page .home-steps {

        margin-top: 0;

        padding-top: 25px;
    }


    .home-page .home-steps-grid {

        grid-template-columns: 1fr;
    }


    .home-page .home-downloads-grid {

        grid-template-columns: 1fr;
    }


    .home-page .home-contact-box {

        flex-direction: column;

        align-items: flex-start;
    }

}


/* ==========================================================
   Mobile
========================================================== */

@media (max-width: 600px) {


    .home-page .home-container {

        width: calc(100% - 24px);
    }


    .home-page .home-hero {

        padding:

            48px
            12px
            52px;
    }


    .home-page .home-hero-title {

        font-size: 27px;

        line-height: 1.6;
    }


    .home-page .home-hero-university {

        font-size: 21px;
    }


    .home-page .home-hero-description {

        font-size: 15px;

        line-height: 1.9;
    }


    .home-page .home-register-button {

        width: 100%;

        min-width: 0;
    }


    .home-page .home-section-heading h2 {

        font-size: 22px;
    }


    .home-page .home-section-icon {

        width: 44px;

        height: 44px;

        font-size: 19px;
    }


    .home-page .home-step-card {

        padding: 18px;
    }


    .home-page .home-announcement-content {

        padding: 17px;
    }


    .home-page .home-contact-box {

        padding: 24px 20px;
    }


    .home-page .home-email-button {

        display: block;

        width: 100%;

        text-align: center;

        overflow-wrap: anywhere;

        font-size: 13px;
    }

}