/* Mission & Vision */
.mission-vision-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

.mission-vision-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(
            circle at 20% 50%,
            rgba(244, 196, 48, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(244, 196, 48, 0.08) 0%,
            transparent 50%
        );
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.section-title-mv {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ust-gold);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    color: #ccc;
    font-size: 0.95rem;
}

.mv-container {
    position: relative;
    z-index: 1;
}

.mv-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px 25px;
    height: 100%;
    border: 2px solid rgba(244, 196, 48, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.mv-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--ust-gold) 0%,
        var(--ust-light-gold) 100%
    );
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.mv-card:hover {
    transform: translateY(-5px);
    border-color: var(--ust-gold);
    box-shadow: 0 15px 30px rgba(244, 196, 48, 0.2);
}

.mv-card:hover::before {
    transform: scaleX(1);
}

.mv-icon-wrapper {
    width: 50px;
    height: 50px;
    background: linear-gradient(
        135deg,
        var(--ust-gold) 0%,
        var(--ust-light-gold) 100%
    );
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(244, 196, 48, 0.3);
    transition: all 0.4s ease;
}

.mv-card:hover .mv-icon-wrapper {
    transform: rotate(5deg) scale(1.1);
}

.mv-icon-wrapper i {
    font-size: 1.5rem;
    color: #1a1a1a;
}

.mv-title {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ust-gold);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mv-content {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: justify;
}

.decorative-line {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--ust-gold) 0%, transparent 100%);
    margin: 12px 0;
}

/* --- Inquiry Form Section --- */
.inquiry-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(180deg, #f2f2f2 0%, #e6e6e6 50%, #ffffff 100%);
    overflow: hidden;
}

.inquiry-section::before {
    content: "";
    position: absolute;
    top: -120px;
    left: -120px;
    width: 350px;
    height: 350px;
    background: radial-gradient(
        circle,
        rgba(244, 196, 48, 0.25) 0%,
        rgba(244, 196, 48, 0.05) 45%,
        transparent 70%
    );
    pointer-events: none;
}

.inquiry-section::after {
    content: "";
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(244, 196, 48, 0.2) 0%,
        rgba(244, 196, 48, 0.05) 40%,
        transparent 70%
    );
    pointer-events: none;
}

.inquiry-form-container {
    background-color: #272727;
    color: white;
    padding: 40px 50px;
    border-radius: 8px;
    max-width: 1000px;
    margin: 0 auto;
}

.inquiry-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ust-gold);
}

.inquiry-subtitle {
    color: #ccc;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.inquiry-link {
    color: var(--ust-gold);
    text-decoration: none;
}

.inquiry-link:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.btn-cancel {
    width: auto;
    order: 1;
    background-color: #e0e0e0; 
    color: #222222;
    border: none;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s ease;
    display: none; 
}

.btn-cancel:hover {
    background-color: #cfcece;
    color: #222222;
}

.form-label {
    display: block;
    color: var(--ust-gold);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background-color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 15px;
    font-size: 0.95rem;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(244, 196, 48, 0.3);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
}

.form-select {
    cursor: pointer;
    color: #999;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.button-group {
    display: flex; 
    justify-content: flex-end;
    align-items: center; 
    gap: 12px; 
    margin-top: 40px;
}

.btn-submit {
    width: auto;
    order: 2;
    background-color: var(--ust-gold);
    color: #272727;
    border: none;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--ust-light-gold);
}

.form-helper {
    display: none;
}

.btn-submit:disabled,
button:disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
    cursor: not-allowed;
    opacity: 0.65;
}

/* --- Image Section --- */
.image-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.image-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(
            circle at 30% 40%,
            rgba(244, 196, 48, 0.08) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 70% 70%,
            rgba(244, 196, 48, 0.05) 0%,
            transparent 50%
        );
    pointer-events: none;
}

.image-section .container {
    position: relative;
    z-index: 1;
}

/* --- Members Section --- */
.members-section {
    background-color: var(--ust-gold);
    padding: 60px 0;
}

.members-container {
    background-color: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.members-title {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.members-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--ust-gold) 0%,
        var(--ust-light-gold) 100%
    );
}

.members-subtitle {
    font-style: italic;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Equal-height columns */
.members-section .row {
    align-items: stretch;
}

.members-section .col-lg-3,
.members-section .col-md-4,
.members-section .col-sm-6 {
    display: flex;
    flex-direction: column;
}

/* Link wrapper */
.member-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Card */
.member-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e8e4d8;
    position: relative;
}

/* Gold top-stripe slides in on hover */
.member-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--ust-gold) 0%, var(--ust-light-gold) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
    z-index: 2;
}

.member-card-link:hover .member-card,
.member-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 40px rgba(244, 196, 48, 0.28);
    border-color: var(--ust-gold);
}

.member-card-link:hover .member-card::before,
.member-card:hover::before {
    transform: scaleX(1);
}

/* Logo area */
.member-image {
    position: relative;
    width: 100%;
    height: 180px;
    flex-shrink: 0;
    background-color: #f9f7f2;
    border-bottom: 1px solid #ede8d8;
    overflow: hidden;
}

.member-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    display: block;
}

/* Name area */
.member-text {
    flex: 1;
    padding: 14px 12px;
    text-align: center;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 0.84rem;
    color: #1a1a1a;
    background-color: #f4f2ec;
    min-height: 76px;       
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.45;
    border-top: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.member-card-link:hover .member-text,
.member-card:hover .member-text {
    background-color: #1a1a1a;
    color: var(--ust-gold);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    background-image: url("../images/hero-img.png");
    background-size: cover;
    background-position: center;
    height: 550px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
 
.hero-title {
    font-family: "Playfair Display", serif;
    font-size: 3.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.suborg-title {
    font-family: "Playfair Display", serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 35px;
    position: relative;
    display: inline-block;
}

.suborg-title::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--ust-gold) 20%,
        var(--ust-gold) 80%,
        transparent 100%
    );
}

.external-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

.external-link-btn {
    background: linear-gradient(135deg, var(--ust-gold) 0%, var(--ust-light-gold) 100%);
    color: #1a1a1a;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 196, 48, 0.3);
    border: 2px solid transparent;
}

.external-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244, 196, 48, 0.5);
    border-color: var(--ust-gold);
    color: #000;
    background: white;
}

.external-link-btn i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .logo-section {
        padding: 50px 0;
    }

    .logo-container {
        padding: 30px 20px;
    }

    .logo-image-wrapper {
        width: 150px;
        height: 150px;
    }

    .suborg-title {
        font-size: 2rem;
    }

    .external-link-btn {
        font-size: 0.9rem;
        padding: 12px 20px;
        flex: 1 1 calc(50% - 10px);
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .suborg-title {
        font-size: 1.6rem;
    }

    .external-link-btn {
        flex: 1 1 100%;
    }
}


/* From the President's Desk */
.president-section {
    padding: 50px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.president-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--ust-gold) 0%,
        var(--ust-light-gold) 50%,
        var(--ust-gold) 100%
    );
}

.president-image-wrapper {
    position: relative;
    max-width: 320px;
    margin: 0 auto 30px;
}

.president-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.president-image-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.president-image {
    width: 100%;
    height: auto;
    display: block;
}

.president-content {
    position: relative;
}

.section-heading {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 35px;
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--ust-gold) 0%,
        var(--ust-light-gold) 100%
    );
}

.president-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #999;
    font-style: italic;
    margin-bottom: 25px;
    text-align: justify;
}

.president-signature {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.signature-name {
    font-weight: 700;
    color: #666;
    font-size: 1rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.signature-title {
    color: #999;
    font-size: 0.95rem;
}

.decorative-quote {
    position: absolute;
    top: -20px;
    left: -30px;
    font-size: 120px;
    color: rgba(244, 196, 48, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

/* SweetAlert2 Customization */
.border-top-gold {
    border-top: 8px solid #f1b400 !important; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.swal2-title {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 600 !important;
}

.swal2-popup.rounded-4 {
    border-radius: 20px !important; 
}

/* REQUIRED INPUT ASTERISK */
.input-group-custom {
    position: relative;
}

.required-asterisk {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-35%);
    color: red;
    font-size: 0.8rem;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.form-input:not(:placeholder-shown) + .required-asterisk {
    display: none;
}

.form-control:not(:placeholder-shown) + .required-asterisk {
    display: none;
}

.services-minimal {
    background-color: #fff;
    /* Extra vertical padding to give the 'lift' space to move */
    padding: 80px 0; 
}

.services-minimal .container {
    max-width: 1600px !important; 
    width: 95%;                   
}

.service-col {
    position: relative; 
    flex: 1 1 0;
    min-width: 180px; 
    max-width: 240px; 
    background-color: #fff;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);

    min-height: 320px;       
    display: flex;           
    flex-direction: column;  
    justify-content: flex-start; 
    
    padding: 40px 30px; 
    height: 100%;            
    border: 4px solid transparent;
    outline: 1px solid #f0f0f0;
    cursor: pointer;
}

.service-col:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 4px solid #ffc107;
    outline: none;
    background-color: #fffdf5;
}

.service-col .stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

.service-icon-wrapper i {
    font-size: 3.5rem;
    color: #ffc107; 
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-col:hover .service-icon-wrapper i {
    transform: scale(1.1); 
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 10px;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.service-col:hover .service-title {
    color: #000; 
}

.service-col p.small {
    font-size: 0.95rem !important; 
    font-weight: 500;             
    color: #6c757d;              
    line-height: 1.4;           
    margin-top: 5px;
    display: block;            
}

.border-start, .border-end {
    border: 1px solid #f0f0f0 !important;
}

.service-col p.small,
.service-subtitle {
    font-size: 0.95rem !important;
    font-weight: 500;
    color: #6c757d;
    line-height: 1.4;
    margin-top: 5px;
    display: block;
}

/* Center lone last tile in flex row */
.services-minimal .d-flex > .service-col:last-child:nth-child(odd) {
    flex: 0 1 320px;
}

/* --- Services: tablet (2-col grid) --- */
@media (max-width: 991px) {
    .services-minimal {
        padding: 40px 0;
    }

    .services-minimal .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .services-minimal .d-flex {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .service-col {
        min-width: unset;
        max-width: unset;
        min-height: unset;
        padding: 24px 20px;
        text-align: center;
        margin-bottom: 0;
        flex: none;
    }

    .service-icon-wrapper i {
        font-size: 2.4rem;
        margin-bottom: 12px;
    }

    .service-title {
        font-size: 1.05rem;
    }

    .service-subtitle {
        font-size: 0.8rem;
    }
}

/* --- Services: mobile (2-col tighter) --- */
@media (max-width: 575px) {
    .services-minimal {
        padding: 30px 0;
    }

    .services-minimal .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .services-minimal .d-flex {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .service-col {
        padding: 18px 12px;
        border-radius: 10px;
        min-height: unset;
        max-width: unset;
        min-width: unset;
        flex: none;
    }

    .service-icon-wrapper i {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .service-title {
        font-size: 0.88rem;
        margin-bottom: 4px;
    }

    .service-subtitle {
        font-size: 0.72rem;
        color: #888;
    }
}


@media (max-width: 991px) {
    .president-section {
        padding: 60px 0;
    }

    .section-heading {
        font-size: 2rem;
    }

    .president-image-wrapper {
        max-width: 400px;
        margin: 0 auto 30px;
    }

    .decorative-quote {
        font-size: 80px;
        left: -15px;
    }
}

@media (max-width: 576px) {

    .president-content{
        padding: 0 15px;
    }
    .section-heading {
        font-size: 1.50rem;
    }

    .president-text {
        font-size: 1rem;
        line-height: 1.8;;
    }

    .decorative-quote {
        display: none;
    }
}

@media (max-width: 991px) {
    .section-title {
        font-size: 1.75rem;
    }

    .mv-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .mission-vision-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .mv-card {
        padding: 25px 20px;
    }

    .mv-title {
        font-size: 1.25rem;
    }

    .select-suborg{
        font-size: 0.9rem;
    }
}

@media (max-width: 991px) {
    .image-section {
        padding: 50px 0;
    }
}


@media (max-width: 992px) {
    /* hero section mobile */
    .hero-section {
        height: auto;
        min-height: 35vh;
        padding: 40px 20px;
        background-attachment: scroll;
        display: flex;
        align-items: center;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 1.5rem !important;
        line-height: 1.3;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    }

    /* org members section mobile */
    .members-section {
        padding: 40px 0;
    }

    .members-title {
        font-size: 1.8rem !important;
        margin-bottom: 15px;
    }

    .members-subtitle {
        font-size: 1rem;
        line-height: 1.4;
        padding-top: 5px;
    }
}

@media (max-width: 575px) {
    /* Swipe hint */
    .members-container::after {
        content: "← Swipe to see more →";
        display: block;
        text-align: center;
        font-size: 0.75rem;
        color: #999;
        margin-top: 6px;
        letter-spacing: 0.03em;
    }

    /* Horizontal scroll strip — no more long vertical stacking */
    .members-section .row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0;
        padding-bottom: 12px;
        /* smooth momentum scroll on iOS */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--ust-gold) transparent;
    }

    .members-section .row::-webkit-scrollbar {
        height: 4px;
    }

    .members-section .row::-webkit-scrollbar-track {
        background: transparent;
    }

    .members-section .row::-webkit-scrollbar-thumb {
        background: var(--ust-gold);
        border-radius: 4px;
    }

    .members-section .col-lg-3,
    .members-section .col-md-4,
    .members-section .col-sm-6 {
        flex: 0 0 160px;
        width: 160px;
        min-width: 160px;
        padding: 0 8px;
    }

    .member-card {
        border-radius: 10px;
    }

    .member-text {
        font-size: 0.72rem;
        padding: 8px 6px;
    }
}