/* =========================================================
   SCPM COLLEGE OF PHARMACY
   PREMIUM NOTICE & ANNOUNCEMENTS
   ========================================================= */


/* =========================================================
   CSS VARIABLES
   ========================================================= */

:root {
    --notice-primary: #ff671f;
    --notice-primary-dark: #d94f0d;
    --notice-primary-light: #fff1e8;

    --notice-orange-2: #ff9933;
    --notice-orange-3: #ffbd73;

    --notice-heading: #241b17;
    --notice-text: #554b45;
    --notice-muted: #7b726c;

    --notice-bg: #fffaf7;
    --notice-white: #ffffff;

    --notice-border: #f0e1d6;

    --notice-shadow:
        0 12px 35px rgba(65, 35, 18, 0.07);

    --notice-shadow-hover:
        0 20px 50px rgba(65, 35, 18, 0.13);

    --notice-radius: 20px;
}


/* =========================================================
   GLOBAL NOTICE PAGE
   ========================================================= */

.notice-section,
.notice-hero {
    box-sizing: border-box;
}

.notice-section *,
.notice-hero * {
    box-sizing: border-box;
}


/* =========================================================
   NOTICE HERO
   ========================================================= */

.notice-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding: 85px 20px 80px;

    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(255, 103, 31, 0.13),
            transparent 28%
        ),
        radial-gradient(
            circle at 5% 90%,
            rgba(255, 153, 51, 0.09),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #fffaf6 0%,
            #ffffff 55%,
            #fff4eb 100%
        );

    border-bottom: 1px solid var(--notice-border);
}


/* Decorative Circle */

.notice-hero::before {
    content: "";

    position: absolute;
    z-index: -1;

    width: 300px;
    height: 300px;

    top: -155px;
    right: 8%;

    border: 1px solid rgba(255, 103, 31, 0.12);

    border-radius: 50%;

    box-shadow:
        0 0 0 35px rgba(255, 103, 31, 0.025),
        0 0 0 70px rgba(255, 103, 31, 0.018);
}


/* Decorative Dots */

.notice-hero::after {
    content: "";

    position: absolute;
    z-index: -1;

    width: 11px;
    height: 11px;

    top: 48px;
    left: 12%;

    background: var(--notice-primary);

    border-radius: 50%;

    box-shadow:
        28px 35px 0 rgba(255, 153, 51, 0.35),
        -18px 65px 0 rgba(255, 103, 31, 0.18);
}


/* Hero Container */

.notice-hero .container {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    text-align: center;
}


/* Hero Heading */

.notice-hero h1 {
    margin: 0 0 18px;

    color: var(--notice-heading);

    font-size: clamp(34px, 5vw, 58px);

    font-weight: 800;

    line-height: 1.12;

    letter-spacing: -1.5px;
}


/* Orange underline */

.notice-hero h1::after {
    content: "";

    display: block;

    width: 65px;
    height: 4px;

    margin: 18px auto 0;

    background: linear-gradient(
        90deg,
        var(--notice-primary),
        var(--notice-orange-2)
    );

    border-radius: 10px;
}


/* Hero Description */

.notice-hero p {
    max-width: 760px;

    margin: 0 auto;

    color: var(--notice-muted);

    font-size: 17px;

    line-height: 1.8;
}


/* =========================================================
   NOTICE MAIN SECTION
   ========================================================= */

.notice-section {
    padding: 85px 20px 105px;

    background:
        linear-gradient(
            180deg,
            #fffaf7 0%,
            #ffffff 40%,
            #ffffff 100%
        );
}


/* Container */

.notice-section .container {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.section-title {
    position: relative;

    margin-bottom: 42px;

    padding-left: 20px;
}


.section-title::before {
    content: "";

    position: absolute;

    top: 4px;
    bottom: 4px;
    left: 0;

    width: 4px;

    background: linear-gradient(
        to bottom,
        var(--notice-primary),
        var(--notice-orange-3)
    );

    border-radius: 20px;
}


.section-title h2 {
    margin: 0 0 9px;

    color: var(--notice-heading);

    font-size: clamp(28px, 4vw, 40px);

    font-weight: 800;

    line-height: 1.2;

    letter-spacing: -0.8px;
}


.section-title p {
    margin: 0;

    color: var(--notice-muted);

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   COMMON NOTICE CARD
   ========================================================= */

.notice-card {
    position: relative;

    display: flex;

    align-items: flex-start;

    gap: 28px;

    width: 100%;

    margin-bottom: 22px;

    padding: 30px;

    background: var(--notice-white);

    border: 1px solid var(--notice-border);

    border-radius: var(--notice-radius);

    box-shadow: var(--notice-shadow);

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


/* Hover */

.notice-card:hover {
    transform: translateY(-5px);

    border-color: rgba(255, 103, 31, 0.28);

    box-shadow: var(--notice-shadow-hover);
}


/* Left orange line */

.notice-card::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    width: 3px;

    background: linear-gradient(
        180deg,
        var(--notice-primary),
        var(--notice-orange-2)
    );

    opacity: 0;

    transition: opacity 0.3s ease;
}


.notice-card:hover::before {
    opacity: 1;
}


/* =========================================================
   FEATURED NOTICE
   ========================================================= */

.featured-notice {
    position: relative;

    padding: 36px;

    margin-bottom: 26px;

    border-color: rgba(255, 103, 31, 0.20);

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fffaf6 100%
        );
}


/* Top orange strip */

.featured-notice::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    width: 100%;
    height: 4px;

    background: linear-gradient(
        90deg,
        var(--notice-primary),
        var(--notice-orange-2),
        var(--notice-orange-3)
    );

    opacity: 1;
}


/* Decorative star */

.featured-notice::after {
    content: "✦";

    position: absolute;

    top: 18px;
    right: 28px;

    color: rgba(255, 103, 31, 0.09);

    font-size: 100px;

    line-height: 1;

    pointer-events: none;
}


/* =========================================================
   NOTICE DATE
   ========================================================= */

.notice-date {
    flex: 0 0 100px;

    width: 100px;
    min-height: 100px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 5px;

    padding: 12px;

    background:
        linear-gradient(
            145deg,
            #fff1e7,
            #fffaf7
        );

    border: 1px solid #f3dccb;

    border-radius: 17px;

    color: var(--notice-primary-dark);

    font-size: 13px;

    font-weight: 700;

    line-height: 1.3;

    text-align: center;
}


.notice-date span {
    display: block;

    color: var(--notice-primary);

    font-size: 36px;

    font-weight: 800;

    line-height: 1;

    letter-spacing: -1px;
}


/* =========================================================
   NOTICE CONTENT
   ========================================================= */

.notice-content {
    position: relative;
    z-index: 2;

    flex: 1;

    min-width: 0;
}


.notice-content h3 {
    margin: 0 0 12px;

    color: var(--notice-heading);

    font-size: 22px;

    font-weight: 750;

    line-height: 1.4;

    letter-spacing: -0.3px;
}


.featured-notice .notice-content h3 {
    font-size: 28px;

    font-weight: 800;
}


.notice-content p {
    margin: 0 0 21px;

    color: var(--notice-text);

    font-size: 15px;

    line-height: 1.85;
}


/* =========================================================
   NOTICE BADGE
   ========================================================= */

.notice-badge {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 13px;

    padding: 7px 13px;

    background: var(--notice-primary-light);

    border: 1px solid #ffdfcb;

    border-radius: 50px;

    color: var(--notice-primary-dark);

    font-size: 11px;

    font-weight: 800;

    line-height: 1;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}


.notice-badge i {
    font-size: 12px;
}


/* =========================================================
   NOTICE BUTTON
   ========================================================= */

.notice-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    min-height: 42px;

    padding: 11px 19px;

    background: var(--notice-primary-light);

    border: 1px solid #ffd9c0;

    border-radius: 9px;

    color: var(--notice-primary-dark) !important;

    font-size: 13px;

    font-weight: 750;

    line-height: 1;

    text-decoration: none !important;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.notice-btn:hover {
    background: var(--notice-primary);

    border-color: var(--notice-primary);

    color: #ffffff !important;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(255, 103, 31, 0.22);
}


.notice-btn i {
    font-size: 13px;
}


/* =========================================================
   OTHER NOTICE GRID
   ========================================================= */

.notice-list {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 22px;

    width: 100%;
}


.notice-list .notice-card {
    flex-direction: column;

    gap: 18px;

    margin-bottom: 0;

    padding: 28px;
}


/* =========================================================
   SMALL DATE ON GRID CARDS
   ========================================================= */

.notice-list .notice-date {
    flex-direction: row;

    justify-content: flex-start;

    gap: 10px;

    width: auto;

    min-height: auto;

    padding: 9px 14px;

    border-radius: 9px;
}


.notice-list .notice-date span {
    font-size: 23px;
}


.notice-list .notice-content h3 {
    font-size: 19px;

    line-height: 1.45;
}


.notice-list .notice-content p {
    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   NOTICE LIST BUTTON
   ========================================================= */

.notice-list .notice-btn {
    margin-top: 2px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .notice-hero {
        padding: 72px 20px 68px;
    }

    .notice-section {
        padding: 70px 20px 85px;
    }

    .notice-list {
        grid-template-columns: 1fr;
    }

    .notice-card {
        gap: 23px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .notice-hero {
        padding: 55px 16px 52px;
    }


    .notice-hero h1 {
        font-size: 34px;

        letter-spacing: -0.8px;
    }


    .notice-hero h1::after {
        width: 55px;

        height: 3px;

        margin-top: 15px;
    }


    .notice-hero p {
        font-size: 15px;

        line-height: 1.75;
    }


    .notice-section {
        padding: 55px 15px 70px;
    }


    .section-title {
        margin-bottom: 30px;

        padding-left: 15px;
    }


    .section-title h2 {
        font-size: 28px;
    }


    .section-title p {
        font-size: 14px;
    }


    /* All cards become vertical */

    .notice-card,
    .featured-notice {
        flex-direction: column;

        gap: 21px;

        padding: 23px;

        border-radius: 17px;
    }


    /* Date */

    .notice-date {
        flex-direction: row;

        justify-content: flex-start;

        gap: 11px;

        width: auto;

        min-height: auto;

        padding: 10px 14px;

        border-radius: 9px;
    }


    .notice-date span {
        font-size: 28px;
    }


    /* Featured */

    .featured-notice .notice-content h3 {
        font-size: 23px;
    }


    .notice-content h3 {
        font-size: 20px;
    }


    .notice-content p {
        font-size: 14px;

        line-height: 1.8;
    }


    /* Button full width */

    .notice-btn {
        width: 100%;

        min-height: 44px;

        padding: 12px 15px;
    }


    /* Grid cards */

    .notice-list {
        gap: 17px;
    }


    .notice-list .notice-card {
        gap: 17px;

        padding: 21px;
    }


    .notice-list .notice-content h3 {
        font-size: 19px;
    }


    /* Decorative star */

    .featured-notice::after {
        top: 15px;

        right: 12px;

        font-size: 65px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .notice-hero {
        padding: 48px 13px;
    }


    .notice-hero h1 {
        font-size: 29px;
    }


    .notice-hero p {
        font-size: 14px;
    }


    .notice-section {
        padding: 45px 12px 60px;
    }


    .notice-card,
    .featured-notice {
        padding: 19px;
    }


    .notice-content h3 {
        font-size: 18px;
    }


    .featured-notice .notice-content h3 {
        font-size: 21px;
    }


    .notice-content p {
        font-size: 13.5px;
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.notice-btn:focus-visible {
    outline: 3px solid rgba(255, 103, 31, 0.25);

    outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .notice-card,
    .notice-btn {
        transition: none;
    }

    .notice-card:hover,
    .notice-btn:hover {
        transform: none;
    }

}