/**
 * Biz Blocks CSS for Ganosite Theme
 * Basic styling for integrated blocks from biz-theme-bschool-v2025
 */

/* Block Container Styles */
.biz-block {
    margin-bottom: 2rem;
}

.biz-block.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.biz-block.alignwide {
    width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-right: -2rem;
}

/* Hero Block Styles */
.biz-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.biz-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.biz-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.biz-hero h1,
.biz-hero h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: bold;
}

/* Highlight Block Styles */
.biz-highlight {
    background: #ef7c00;
    color: white;
    padding: 2rem;
    text-align: center;
}

.biz-highlight h2,
.biz-highlight h3 {
    margin-bottom: 1rem;
}

/* Icon Cards Styles */
.biz-icon-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.biz-icon-card {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.biz-icon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.biz-icon-card-icon {
    font-size: 3rem;
    color: #ef7c00;
    margin-bottom: 1rem;
}

.biz-icon-card img {
    max-width: 80px;
    height: auto;
    margin-bottom: 1rem;
}

/* Profile Cards Styles */
.biz-profile-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.biz-profile-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.biz-profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.biz-profile-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.biz-profile-card-content {
    padding: 1.5rem;
}

.biz-profile-card h3 {
    margin-bottom: 0.5rem;
    color: #003d7c;
}

.biz-profile-card .position {
    color: #ef7c00;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Focus Block Styles */
.biz-focus {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem 0;
}

.biz-focus.reverse {
    direction: rtl;
}

.biz-focus.reverse > * {
    direction: ltr;
}

.biz-focus-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.biz-focus-content {
    padding: 1rem;
}

.biz-focus h2,
.biz-focus h3 {
    color: #003d7c;
    margin-bottom: 1rem;
}

/* Carousel Styles */
.biz-carousel {
    position: relative;
    overflow: hidden;
}

.biz-carousel-item {
    position: relative;
}

.biz-carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.biz-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
}

/* Text Media Styles */
.biz-text-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem 0;
}

.biz-text-media.media-left {
    grid-template-columns: 1fr 1fr;
}

.biz-text-media.media-right {
    grid-template-columns: 1fr 1fr;
}

.biz-text-media.media-right .biz-text-content {
    order: 1;
}

.biz-text-media.media-right .biz-media-content {
    order: 2;
}

.biz-text-media img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Button Group Styles */
.biz-button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 0;
}

.biz-button {
    background: #ef7c00;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.biz-button:hover {
    background: #d16400;
    color: white;
    text-decoration: none;
}

.biz-button.secondary {
    background: #003d7c;
}

.biz-button.secondary:hover {
    background: #002a56;
}

/* Responsive Design */
@media (max-width: 768px) {
    .biz-focus,
    .biz-text-media {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .biz-text-media.media-right .biz-text-content,
    .biz-text-media.media-right .biz-media-content {
        order: unset;
    }
    
    .biz-hero h1,
    .biz-hero h2 {
        font-size: 2rem;
    }
    
    .biz-hero-content {
        padding: 1rem;
    }
    
    .biz-icon-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .biz-profile-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .biz-button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .biz-block.alignwide {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Compatibility with existing ganosite styles */
.biz-block .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Colors matching ganosite theme */
.txt-orange {
    color: #ef7c00;
}

.txt-blue {
    color: #003d7c;
}

.bg-orange {
    background-color: #ef7c00;
}

.bg-blue {
    background-color: #003d7c;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }
