/* --- IFAG PROGRAM INFO WRAPPER (HERO BANNER) --- */
.ifag-pi-wrapper {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 60px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    /* Removed fixed border-radius to allow full-width edge-to-edge design */
}

/* Optional Full-Width / Sharp Corners */
.ifag-pi-wrapper.full-width {
    border-radius: 0;
}

/* Card Alignment & Layout (Same Horizontal Line) */
.ifag-pi-wrapper {
    flex-direction: row;
    justify-content: space-between; 
    align-items: flex-end; /* Align both at the bottom of the banner */
    /* Padding is now controlled via Elementor settings */
}

/* Default: Title Left, Card Right */
.ifag-pi-wrapper.align-right { 
    flex-direction: row;
}

/* Flipped: Card Left, Title Right */
.ifag-pi-wrapper.align-left { 
    flex-direction: row-reverse;
}

/* Banner Title & Subtitle Grouping */
.ifag-pi-title-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    z-index: 2;
    margin-right: 60px; /* Default margin from card */
}

.ifag-pi-wrapper.align-left .ifag-pi-title-group { 
    margin-right: 0;
    margin-left: 60px; 
}

/* Banner Title Style */
.ifag-pi-banner-title {
    color: #ffffff;
    font-size: 38px;
    font-weight: 800;
    max-width: 800px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 15px; /* Space for subtitle */
    display: inline-block;
}

/* Subtitle Style */
.ifag-pi-banner-subtitle {
    color: #ffffff;
    font-size: 18px;
    font-weight: 400;
    max-width: 600px;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ifag-pi-wrapper .ifag-program-info-container {
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .ifag-pi-wrapper {
        padding: 50px;
    }
}

@media (max-width: 1024px) {
    .ifag-pi-wrapper {
        flex-direction: column !important;
        align-items: center;
        padding: 40px;
        min-height: auto;
    }
    .ifag-pi-title-group {
        margin: 0 0 40px 0 !important;
        text-align: center;
        align-items: center;
    }
    .ifag-pi-banner-title {
        text-align: center;
        font-size: 32px;
        margin-bottom: 10px !important;
    }
    .ifag-pi-banner-subtitle {
        text-align: center;
    }
    .ifag-program-info-container {
        width: 100%;
        max-width: 100%;
    }
}

/* --- THE GLASS CARD --- */
.ifag-program-info-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    font-family: 'Inter', sans-serif;
    color: #333;
}

/* TOP BAR (CAMPUS + FLAGS) */
.ifag-pi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
}

.ifag-pi-locations {
    display: flex;
    gap: 10px;
}

.ifag-pi-location-pill {
    padding: 6px 14px;
    border-radius: 8px;
    background: #f0f2f5;
    color: #444;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid #e1e4e8;
    cursor: default;
}

.ifag-pi-location-pill.active {
    background: #ffffff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
}

.ifag-pi-flags {
    display: flex;
    gap: 8px;
}

.ifag-pi-flag {
    width: 26px;
    height: 18px;
    object-fit: contain;
    border-radius: 2px;
}

/* INFO ROWS */
.ifag-pi-row {
    display: flex;
    align-items: center; /* Align items centered vertically */
    margin-bottom: 25px; /* More space between rows */
    position: relative;
    padding-left: 0;
    border-left: none; /* Removed border from row wrap */
}

.ifag-pi-row:last-child {
    margin-bottom: 0;
}

.ifag-pi-icon-wrap {
    margin-right: 20px;
    color: #888; /* Dimmed icon color like in image */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.ifag-pi-icon-wrap i,
.ifag-pi-icon-wrap svg {
    font-size: 28px !important;
    width: 28px !important;
    height: 28px !important;
}

/* THE FAMOUS VERTICAL LINE */
.ifag-pi-line {
    width: 2px;
    height: 48px; /* Fixed height for the line */
    background-color: #00468B;
    margin-right: 20px;
    flex-shrink: 0;
}

.ifag-pi-content {
    display: flex;
    flex-direction: column;
}

.ifag-pi-label {
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 2px;
}

.ifag-pi-value {
    font-size: 15px;
    color: #444;
    font-weight: 500;
    line-height: 1.3;
}

/* CTA BUTTONS */
.ifag-pi-ctas {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.ifag-pi-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space for icons */
    padding: 10px 20px; /* Reduced as requested */
    background-color: #d5263d; /* Default Red requested */
    color: #ffffff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px; /* Slightly smaller */
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1; /* Make both buttons equal width */
    text-align: center;
}

.ifag-pi-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ifag-pi-btn-icon i,
.ifag-pi-btn-icon svg {
    font-size: 1.2em;
    width: 1em;
    height: 1em;
}

.ifag-pi-btn:hover {
    background-color: #b51f33; /* Slightly darker red */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(213, 38, 61, 0.3);
    color: #ffffff;
}

.ifag-pi-btn.btn-secondary {
    background-color: transparent;
    border: 2px solid #d5263d;
    color: #d5263d;
}

.ifag-pi-btn.btn-secondary:hover {
    background-color: #d5263d;
    color: #ffffff;
}

@media (max-width: 768px) {
    .ifag-pi-wrapper {
        padding: 15px 0;
    }
    .ifag-pi-banner-title {
        font-size: 26px;
    }
    .ifag-pi-banner-subtitle {
        font-size: 15px;
    }
    .ifag-program-info-container {
        padding: 10px;
    }
    .ifag-pi-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }
    .ifag-pi-row {
        margin-bottom: 15px;
    }
    .ifag-pi-icon-wrap {
        margin-right: 15px;
        width: 24px;
        height: 24px;
    }
    .ifag-pi-icon-wrap i, .ifag-pi-icon-wrap svg {
        font-size: 20px !important;
    }
    .ifag-pi-line {
        height: 35px;
        margin-right: 15px;
    }
    .ifag-pi-label {
        font-size: 14px;
    }
    .ifag-pi-value {
        font-size: 13px;
    }
    .ifag-pi-ctas {
        flex-direction: column;
        gap: 10px;
        margin-top: 25px;
    }
}

@media (max-width: 480px) {
    .ifag-pi-banner-title {
        font-size: 22px;
    }
}
