
/* =========================================================
    BRANCH HERO AREA
========================================================= */
.branch-hero-area {
    position: relative;
    padding: 100px 0;
    background:
        linear-gradient(145deg, rgba(7, 33, 74, 0.92), rgba(4, 18, 41, 0.96)),
        url("../img/bg/pattern.png");
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.branch-hero-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .branch-hero-wrapper {
        grid-template-columns: 420px 1fr;
        gap: 60px;
    }
}

.branch-image {
    width: 100%;
    display: flex;
    justify-content: center;
}

.branch-image img {
    width: 100%;
    max-width: 420px;
    height: 440px;
    object-fit: cover;
    border-radius: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.branch-content {
    color: #fff;
}

.branch-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    color: #ff8f3d;
}

.branch-content h1 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.branch-description {
    font-size: 17px;
    line-height: 1.75;
    color: #e2e8f0;
    max-width: 700px;
}

.branch-info-list {
    margin-top: 35px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 576px) {
    .branch-info-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .branch-info-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px;
    border-radius: 18px;
    transition: var(--transition-smooth);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.info-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ff8f3d;
    flex-shrink: 0;
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-text label {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 2px;
    font-weight: 700;
}

.info-text span {
    font-size: 14px;
    font-weight: 500;
    color: #f8fafc;
}

.branch-buttons {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.theme-btn,
.outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition-smooth);
    text-decoration: none !important;
}

.theme-btn {
    background: #ff6c0c;
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(255, 108, 12, 0.25);
}

.theme-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(255, 108, 12, 0.35);
}

.outline-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff !important;
    background: rgba(255, 255, 255, 0.02);
}

.outline-btn:hover {
    background: #fff;
    color: #0f53a1 !important;
}

/* =========================================================
    SECTION TITLE COMMON MODULE
========================================================= */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title .sub-heading {
    color: #ff6c0c;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255, 108, 12, 0.06);
    padding: 6px 16px;
    border-radius: 100px;
    display: inline-block;
}

.section-title h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-top: 15px;
    color: #1e293b;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.title-bar {
    width: 60px;
    height: 4px;
    background: #ff6c0c;
    margin: 16px auto 0;
    border-radius: 10px;
}

/* =========================================================
    STATS AREA
========================================================= */
.stats-area {
    padding: 100px 0;
    background: #f8fafc;
}

.stats-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 576px) {
    .stats-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .stats-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    /* background: #fff; */
    padding: 30px 24px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-smooth);
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.stat-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(15, 83, 161, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #0f53a1;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 32px;
    color: #0f53a1;
    margin-bottom: 4px;
    font-weight: 800;
    line-height: 1;
}

.stat-info p {
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

/* Color Overrides for Analytics Variety */
.color-1 .stat-icon-wrapper {
    background: rgba(236, 72, 153, 0.08);
    color: #ec4899;
}
.color-1 .stat-info h3 {
    color: #ec4899;
}

.color-2 .stat-icon-wrapper {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}
.color-2 .stat-info h3 {
    color: #ef4444;
}

.color-3 .stat-icon-wrapper {
    background: rgba(249, 115, 22, 0.08);
    color: #f97316;
}
.color-3 .stat-info h3 {
    color: #f97316;
}

/* =========================================================
    FILTER BOX
========================================================= */
.student-details-area {
    padding: 100px 0;
    background: #fff;
}

.student-filter-box {
    background: var(--primary-gradient);
    padding: 40px;
    border-radius: 32px;
    margin-bottom: 50px;
    box-shadow: 0 20px 50px rgba(15, 83, 161, 0.15);
}

.filter-title h3 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.filter-title p {
    color: #93c5fd;
    font-size: 15px;
    margin: 0;
}

.student-details-filter {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .student-details-filter {
        grid-template-columns: repeat(2, 1fr) auto;
    }
}

.filter-item select {
    width: 100%;
    height: 56px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.filter-item select option {
    background: #07346c;
    color: #fff;
}

.filter-item select:focus {
    border-color: #ff8f3d;
    background: rgba(255, 255, 255, 0.12);
}

.filter-item button {
    width: 100%;
    height: 56px;
    border: none;
    background: #ff6c0c;
    color: #fff;
    padding: 0 35px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(255, 108, 12, 0.2);
    transition: var(--transition-smooth);
}

.filter-item button:hover {
    background: #fa5a00;
    transform: translateY(-2px);
}

/* =========================================================
    FILTER ACTION BUTTONS EXTENSION
========================================================= */
.filter-actions-group {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
}

@media (min-width: 768px) {
    .filter-actions-group {
        width: auto;
    }
}

.search-submit-btn {
    flex: 1;
    white-space: nowrap;
}

.clear-filter-btn {
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: #fff !important;
    padding: 0 24px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none !important;
}

.clear-filter-btn i {
    font-size: 20px;
}

.clear-filter-btn:hover {
    background: #ef4444; /* Soft Red for warning/clear context */
    border-color: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.25);
}

/* =========================================================
    STUDENT CARD MATRIX GRID
========================================================= */
.student-details-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 576px) {
    .student-details-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .student-details-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1200px) {
    .student-details-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
}

.single-student-details {
    background: #fff;
    border-radius: 28px;
    padding: 24px;
    position: relative;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.single-student-details:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.student-card-header {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: -15px;
}

.student-badge {
    background: #eff6ff;
    color: #1e40af;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid #dbeafe;
}

.thumbnil {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
}

.thumbnil img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.key-list h4 {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 16px;
}

.student-meta-info {
    background: #f8fafc;
    padding: 14px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
}

.meta-row:not(:last-child) {
    border-bottom: 1px dashed #e2e8f0;
}

.meta-label {
    color: #64748b;
    font-weight: 500;
}

.meta-val {
    color: #1e293b;
    font-weight: 700;
}

.branch-name-truncated {
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Talent Items Styling */
.talents-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.block-item {
    background: #f1f5f9;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

.block-item.highlighted {
    background: #fff7ed;
    border: 1px dashed #fed7aa;
    color: #ea580c;
}

.block-item.highlighted i {
    margin-right: 2px;
}

.more-details {
    margin-top: 24px;
}

.more-details a {
    width: 100%;
    height: 48px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition-smooth);
    text-decoration: none !important;
}

.single-student-details:hover .more-details a {
    background: #ff6c0c;
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 108, 12, 0.2);
}

/* =========================================================
    EMPTY STATE & PAGINATION UTILS
========================================================= */
.no-data-alert {
    padding: 60px 20px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 32px;
    text-align: center;
    max-width: 500px;
    margin: 50px auto 0;
}

.no-data-alert i {
    font-size: 54px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.no-data-alert h3 {
    font-size: 22px;
    font-weight: 800;
    color: #334155;
    margin-bottom: 8px;
}

.no-data-alert p {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}

.pagination-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}
