/* =========================================================
   COMSATS SOCIETIES PAGE
   Complete CSS
========================================================= */


/* =========================================================
   INTRO SECTION
========================================================= */

.societies-intro-section {
    padding: 85px 0 55px;
    background: #ffffff;
}

.societies-intro {
    max-width: 850px;
}

.societies-intro-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
    color: #0b858d;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 2px;
    line-height: 1;
}

    .societies-intro-label::before {
        content: "";
        width: 30px;
        height: 2px;
        border-radius: 5px;
        background: #e5b83d;
    }

.societies-intro h2 {
    margin: 0 0 18px;
    padding: 0;
    color: #073b4c;
    font-size: clamp(40px, 4.5vw, 58px);
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -1.5px;
}

    .societies-intro h2 span {
        color: #0b858d;
    }

.societies-intro p {
    max-width: 760px;
    margin: 0;
    color: #667980;
    font-size: 16px;
    line-height: 1.85;
    font-weight: 400;
}


/* =========================================================
   SOCIETY FEATURE SECTION
========================================================= */

.society-feature-section {
    position: relative;
    padding: 75px 0;
    background: #ffffff;
}

    .society-feature-section.society-feature-alt {
        background: #f7f9fa;
    }


/* =========================================================
   FEATURE ROW
========================================================= */

.society-feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 65px;
}


/* =========================================================
   CONTENT
========================================================= */

.society-feature-content {
    position: relative;
    max-width: 620px;
}


/* =========================================================
   SOCIETY NUMBER
========================================================= */

.society-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: #073b4c;
    color: #58c5ca;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .5px;
    box-shadow: inset 0 0 0 1px rgba(88,197,202,.08);
}


/* =========================================================
   EYEBROW
========================================================= */

.society-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    color: #0b858d;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1.8px;
    line-height: 1.2;
}

    .society-eyebrow::before {
        content: "";
        width: 25px;
        height: 2px;
        flex: 0 0 25px;
        border-radius: 5px;
        background: #e5b83d;
    }


/* =========================================================
   SOCIETY TITLE
========================================================= */

.society-feature-content h2 {
    margin: 0 0 20px;
    color: #073b4c;
    font-size: clamp(30px, 3vw, 43px);
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -0.8px;
}

    .society-feature-content h2 span {
        color: #0b858d;
    }


/* =========================================================
   PARAGRAPHS
========================================================= */

.society-feature-content p {
    max-width: 600px;
    margin: 0 0 17px;
    color: #64767d;
    font-size: 15px;
    line-height: 1.85;
    font-weight: 400;
}

    .society-feature-content p:last-child {
        margin-bottom: 0;
    }


/* =========================================================
   IMAGE COLUMN
========================================================= */

.society-feature-image {
    position: relative;
    width: 100%;
    min-height: 380px;
    overflow: hidden;
    border-radius: 20px;
    background: #e9eff0;
    box-shadow: 0 18px 45px rgba(5,45,55,.10);
}


    /* =========================================================
   IMAGE
========================================================= */

    .society-feature-image img {
        display: block;
        width: 100%;
        height: 380px;
        object-fit: cover;
        object-position: center;
        margin: 0;
        padding: 0;
        transition: transform .5s ease;
    }

    .society-feature-image:hover img {
        transform: scale(1.035);
    }


    /* =========================================================
   IMAGE OVERLAY
========================================================= */

    .society-feature-image::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient( 180deg, rgba(7,59,76,0) 48%, rgba(7,59,76,.68) 100% );
    }


/* =========================================================
   IMAGE LABEL
========================================================= */

.society-image-label {
    position: absolute;
    left: 20px;
    bottom: 18px;
    z-index: 2;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 7px;
    background: rgba(7,59,76,.82);
    color: #ffffff;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .8px;
    backdrop-filter: blur(5px);
}


/* =========================================================
   ALTERNATING LAYOUT
========================================================= */

.society-feature-alt
.society-feature-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}


/*
   Because the HTML order is:

   IMAGE
   CONTENT

   for alternate sections, no extra ordering is required.
*/


/* =========================================================
   SOFT DIVIDER BETWEEN SOCIETIES
========================================================= */

.society-feature-section:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 90%;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient( 90deg, transparent, #dfe7e9, transparent );
}


/* =========================================================
   OPTIONAL SOCIETY TAG
========================================================= */

.society-feature-content::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 25px;
    border-radius: 5px;
    background: #e5b83d;
}


/* =========================================================
   FIRST SECTION SPACING
========================================================= */

.societies-intro-section + .society-feature-section {
    padding-top: 70px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .societies-intro-section {
        padding: 70px 0 45px;
    }

    .society-feature-section {
        padding: 65px 0;
    }

    .society-feature-row {
        gap: 40px;
    }

    .society-feature-content h2 {
        font-size: 34px;
    }

    .society-feature-content p {
        font-size: 14px;
        line-height: 1.8;
    }

    .society-feature-image {
        min-height: 330px;
    }

        .society-feature-image img {
            height: 330px;
        }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .societies-intro-section {
        padding: 60px 0 35px;
    }

    .societies-intro h2 {
        font-size: 38px;
    }

    .societies-intro p {
        font-size: 14px;
        line-height: 1.8;
    }


    .society-feature-section {
        padding: 55px 0;
    }


    .society-feature-row,
    .society-feature-alt
    .society-feature-row {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }


    /*
       Keep image first on mobile for both
       normal and alternate sections.
    */

    .society-feature-image {
        order: 1;
        width: 100%;
        min-height: 280px;
        border-radius: 16px;
    }


        .society-feature-image img {
            width: 100%;
            height: 280px;
        }


    .society-feature-content {
        order: 2;
        width: 100%;
        max-width: none;
    }


    .society-number {
        width: 40px;
        height: 40px;
        margin-bottom: 15px;
    }


    .society-feature-content h2 {
        font-size: 32px;
        line-height: 1.12;
        margin-bottom: 17px;
    }


    .society-feature-content p {
        max-width: none;
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 15px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .societies-intro-section {
        padding: 50px 0 30px;
    }


    .societies-intro h2 {
        font-size: 34px;
        letter-spacing: -0.8px;
    }


    .societies-intro p {
        font-size: 13.5px;
    }


    .society-feature-section {
        padding: 48px 0;
    }


    .society-feature-image {
        min-height: 230px;
        border-radius: 14px;
    }


        .society-feature-image img {
            height: 230px;
        }


    .society-image-label {
        left: 13px;
        bottom: 13px;
        padding: 7px 10px;
        font-size: 8px;
    }


    .society-eyebrow {
        font-size: 8px;
    }


    .society-feature-content h2 {
        font-size: 29px;
    }


    .society-feature-content p {
        font-size: 13.5px;
        line-height: 1.75;
    }
}
/* =========================================================
   COMSATS SOCIETIES — PAGE HERO
========================================================= */

.societies-page-hero {
    position: relative;
}


    /* Make sure the common hero content remains consistent */

    .societies-page-hero
    .inner-page-hero-content {
        position: relative;
        z-index: 2;
    }


    /* Eyebrow */

    .societies-page-hero
    .inner-page-hero-eyebrow {
        display: inline-block;
        margin-bottom: 12px;
        color: #58c5ca;
        font-size: 10px;
        font-weight: 850;
        letter-spacing: 2px;
        line-height: 1.2;
    }


    /* Heading */

    .societies-page-hero
    .inner-page-hero-content h1 {
        margin: 0 0 12px;
        color: #ffffff;
        font-size: clamp(38px, 5vw, 60px);
        line-height: 1.05;
        font-weight: 850;
        letter-spacing: -1px;
    }


    /* Subtitle */

    .societies-page-hero
    .inner-page-hero-content > p {
        margin: 0 0 20px;
        color: rgba(255,255,255,.72);
        font-size: 15px;
        line-height: 1.6;
    }


    /* Breadcrumb */

    .societies-page-hero
    .inner-page-breadcrumb {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 9px;
        color: rgba(255,255,255,.58);
        font-size: 9px;
        font-weight: 600;
    }


        .societies-page-hero
        .inner-page-breadcrumb a {
            color: #ffffff;
            text-decoration: none;
            transition: color .2s ease;
        }


            .societies-page-hero
            .inner-page-breadcrumb a:hover {
                color: #58c5ca;
            }


        .societies-page-hero
        .inner-page-breadcrumb i {
            color: #58c5ca;
            font-size: 8px;
        }


        .societies-page-hero
        .inner-page-breadcrumb span {
            color: rgba(255,255,255,.55);
        }


/* Mobile */

@media (max-width: 767px) {

    .societies-page-hero
    .inner-page-hero-content h1 {
        font-size: 38px;
    }

    .societies-page-hero
    .inner-page-hero-content > p {
        font-size: 13px;
    }
}
/* =========================================================
   SOCIETY DIRECTORY (card grid)
========================================================= */

.society-directory-section {
    padding: 70px 0 90px;
    background: #f5f9fa;
}

.society-directory-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 40px;
    margin-bottom: 38px;
}

    .society-directory-header h2 {
        margin: 0;
        color: #073b4c;
        font-size: clamp(30px, 3.4vw, 42px);
        font-weight: 800;
        line-height: 1.1;
    }

        .society-directory-header h2 span {
            color: #0b858d;
        }

    .society-directory-header p {
        max-width: 440px;
        margin: 0;
        color: #5c707b;
        font-size: 15px;
        line-height: 1.7;
    }

.society-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.society-directory-card {
    position: relative;
    padding: 28px 26px 24px;
    border: 1px solid #e1ecef;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(7,59,76,.07);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .society-directory-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 46px rgba(7,59,76,.13);
    }

.society-directory-number {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #d3e3e7;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.society-directory-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0b858d, #073b4c);
    color: #ffffff;
    font-size: 20px;
}

.society-directory-label {
    display: block;
    margin-bottom: 8px;
    color: #0b858d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.society-directory-body h3 {
    min-height: 54px;
    margin: 0 0 18px;
    color: #073b4c;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
}

.society-directory-meta {
    margin-bottom: 14px;
    padding-top: 16px;
    border-top: 1px solid #e6eff2;
}

.society-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

    .society-meta-item > i {
        margin-top: 3px;
        color: #e5b83d;
        font-size: 16px;
    }

    .society-meta-item span {
        display: block;
        color: #7a8c96;
        font-size: 12px;
        font-weight: 600;
    }

    .society-meta-item strong {
        display: block;
        color: #073b4c;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.4;
    }

.society-directory-email {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #0b858d;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}

    .society-directory-email i {
        margin-top: 3px;
    }

    .society-directory-email:hover {
        color: #073b4c;
    }

@media (max-width: 991.98px) {
    .society-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .society-directory-section {
        padding: 50px 0 60px;
    }

    .society-directory-grid {
        grid-template-columns: 1fr;
    }

    .society-directory-body h3 {
        min-height: 0;
    }
}
