/*
Theme Name: Betheme
Author: Muffin group
Description: The biggest WordPress Theme ever
Theme URI: http://themes.muffingroup.com/betheme
Author URI: http://muffingroup.com
License: Themeforest Split Licence
License URI: -
Version: 17.8.7

All css files are placed in /css/ folder
*/

/* Featured Universities Grid */
.featured-universities-grid {
    margin: 40px 0;
}

.featured-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.featured-uni-item {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    min-height: 80px;
}

.featured-uni-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.uni-logo {
    flex: 0 0 100px;
    /* Slightly wider for logos */
    height: 60px;
    margin-right: 20px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.uni-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Ensure logo isn't stretched */
    display: block;
}

.uni-details {
    flex: 1;
}

.uni-details h3 {
    margin: 0;
    font-size: 20px;
    /* Larger font */
    font-weight: 700;
    /* Bolder */
    color: #0d035a !important;
    /* Updated specific color */
    line-height: 1.25;
    display: block !important;
    /* Ensure display */
    text-align: left;
    /* Left align */
}

/* Course Grid & Cards */
.course-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    /* Space between cards */
}

.course-card-item {
    background: #fff;
    border: 1px solid #143059;
    /* Blue border as per screenshot style */
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    /* Fixed height for approx 6 lines + button */
    margin: 0 !important;
    /* Override theme margin since we use gap */
    width: calc(25% - 15px) !important;
    /* Force 4 columns with gap logic */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.course-card-item h4 {
    font-size: 22px;
    /* Increased from 14px */
    line-height: 1.4;
    margin-bottom: 15px;
    flex-grow: 1;
    /* Pushes button to bottom */
    color: #143059;
    font-weight: 700;
    /* Made slightly bolder */
}

.course-card-item .popup-link {
    background: #FFD700;
    /* Yellow button */
    color: #000;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    display: inline-block;
    align-self: flex-start;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: flex-end;
    /* Bottom Right Corner */
    margin-top: 30px;
    gap: 10px;
    clear: both;
    width: 100%;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #143059;
    color: #143059;
    text-decoration: none;
    border-radius: 8px;
    /* Rounded square look */
    font-weight: 700;
    font-size: 16px;
    transition: all 0.2s ease;
}

.pagination-link:hover {
    background-color: #f0f0f0;
    text-decoration: none;
}

.pagination-link.active {
    background-color: #143059 !important;
    /* Blue background */
    color: #fff !important;
    border-color: #143059;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: #143059;
}

@media (max-width: 992px) {
    .course-card-item {
        width: calc(50% - 10px) !important;
        /* 2 columns on tablet */
    }
}

/* Responsive */
@media (max-width: 768px) {
    .featured-list-grid {
        grid-template-columns: 1fr;
    }

    .course-card-item {
        width: 100% !important;
        /* 1 column on mobile */
    }
}

/* Highlight Text in Search Results */
.highlight-text {
    color: #143059;
    font-weight: 700;
}

/* Dynamic University List Shortcode Styles */
.isec-university-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.isec-uni-col {
    width: 25%;
    padding: 0 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
    display: flex;
}

.isec-uni-card {
    background: #fff;
    border: 1px solid #eee;
    /* Light border */
    padding: 25px;
    border-radius: 8px;
    text-align: left;
    /* Left align content */
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    justify-content: space-between;
    min-height: 280px;
}

.isec-uni-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.isec-uni-logo {
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    /* Space for separator */
    border-bottom: 1px solid #ffc107;
    /* Yellow separator line */
    overflow: hidden;
    flex-shrink: 0;
}

.isec-uni-logo img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    display: block;
}

.isec-uni-placeholder {
    height: 80px;
    width: 100%;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aeaeae;
    font-size: 14px;
    border-radius: 4px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ffc107;
}

.isec-uni-name {
    font-size: 15px;
    font-weight: 700;
    /* Bold */
    margin: 0 0 20px 0;
    color: #333;
    line-height: 1.5;
    min-height: 4.5em;
    /* 3 lines height */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: inherit;
    text-align: left;
}

.isec-uni-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: flex-start;
    /* Start align buttons */
}

.isec-btn {
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    /* flex: 1;  Don't stretch fully, let them size to content or fixed */
    min-width: 100px;
    /* Minimum width for consistency */
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: normal;
}

.isec-btn-blue {
    background-color: #003399;
    /* Darker blue like reference */
    color: #fff !important;
}

.isec-btn-blue:hover {
    background-color: #002266;
}

.isec-btn-yellow {
    background-color: #ffd700;
    /* Gold/Yellow */
    color: #000 !important;
    /* Black text */
}

.isec-btn-yellow:hover {
    background-color: #ffcc00;
}

@media (max-width: 1100px) {
    .isec-uni-col {
        width: 33.33%;
    }
}

@media (max-width: 900px) {
    .isec-uni-col {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .isec-uni-col {
        width: 100%;
    }

    .isec-uni-card {
        padding: 20px;
    }

    .isec-uni-buttons {
        gap: 10px;
    }
}

.explore-course-logo {
    width: 150px;
    height: 45px;
    object-fit: contain;
    margin-right: 20px;
    flex-shrink: 0;
}

/* Explore Course University List Styling */
#university-list-container .question {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

#university-list-container .question:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Margin for University Name */
#university-list-container .question .title h3 {
    margin-left: 30px !important;
    align-self: center;
}

#university-list-container .question .title {
    border-bottom: none;
    padding: 20px;
    display: flex;
    align-items: center;
}