/**
 * Cards 2 Block Styles
 * 
 * Modern responsive card grid layout with alternative style variations
 */

/* Base Cards 2 Block Styles */
.cards-2-block {
    position: relative;
    padding: 5em 0;
}

/* Admin Notice */
.cards-2-admin-notice {
    background: #e7f3ff;
    border: 1px solid #007cba;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.cards-2-admin-notice p {
    margin: 0;
    font-weight: 500;
}

/* Container */
.cards-2-container {
    max-width: 100%;
    background: #FFFFFF;
}

/* Container Header */
.cards-2-header {
    margin-bottom: 40px;
    text-align: center;
}

.cards-2-heading {
    margin: 0 0 20px 0;
    font-size: 36px;
    font-weight: 400;
    color: #1a1a1a;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.2;
}

.cards-2-heading span {
    font-weight: 700;
}

.cards-2-text {
    margin: 0;
    font-size: 18px;
    color: #555;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.cards-2-text p {
    margin: 0 0 15px 0;
}

.cards-2-text p:last-child {
    margin-bottom: 0;
}

.cards-2-text strong {
    font-weight: 600;
    color: #333;
}

.cards-2-text em {
    font-style: italic;
}

.cards-2-text a {
    color: #007cba;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.cards-2-text a:hover {
    border-bottom-color: #007cba;
}

/* Cards Grid - Enhanced responsive layout */
.cards-2-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
    justify-content: center;
    align-items: stretch;
}

/* Individual Card */
.card-2-item {
    position: relative;
    height: auto;
    min-height: 100%;
    transition: transform 0.3s ease;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    flex: 1 1 300px;
    max-width: 250px;
    display: flex;
}

.card-2-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: white;
    width: 100%;
}

.cards-2-style-bg-gray .card-2-inner {
    background: #f7f7f8;
}

/* Card Link Wrapper */
.card-2-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.card-2-link-wrapper:hover {
    text-decoration: none;
    color: inherit;
}

/* Card Image - Fixed aspect ratio with cropping */
.card-2-image {
    position: relative;
    max-width: 60px;
    max-height: 60px;
    overflow: hidden;
    margin: 20px auto 0;
}

.card-2-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-2-item:hover .card-2-image img {
    transform: scale(1.05);
}

/* Card Content */
.card-2-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px 25px 0 25px;
}

.card-2-title {
    margin-bottom: 15px;
}

.card-2-title h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    transition: color 0.3s ease;
    text-align: center;
}

.card-2-title-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.card-2-title-link:hover {
    color: #007cba;
    text-decoration: none;
}

.card-2-title-link:hover h3 {
    color: #007cba;
}

.card-2-text {
    flex: 1;
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

.card-2-text p {
    margin: 0 0 15px 0;
}

.card-2-text p:last-child {
    margin-bottom: 0;
}

/* Card Content 2 - Bottom section with different background */
.card-2-content-2 {
    padding: 10px 25px;
    background: #f6f5f5;
    border-top: 1px solid #e9ecef;
    color: #495057;
    font-size: 15px;
    line-height: 1.6;
}

.card-2-content-2 p {
    margin: 0 0 15px 0;
}

.card-2-content-2 p:last-child {
    margin-bottom: 0;
}

.card-2-content-2 strong {
    font-weight: 600;
    color: #333;
}

.card-2-content-2 em {
    font-style: italic;
    color: #6c757d;
}

.card-2-content-2 a {
    color: #007cba;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.card-2-content-2 a:hover {
    border-bottom-color: #007cba;
}

/* Card Button */
.card-2-button {
    margin-top: auto;
}

.card-2-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #007cba;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-2-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
    text-decoration: none;
    color: white;
}

/* Card Alignment */
.cards-2-align-left .card-2-content {
    text-align: left;
}

.cards-2-align-center .card-2-content {
    text-align: center;
}

.cards-2-align-center .card-2-btn {
    margin: 0 auto;
}

.cards-2-align-right .card-2-content {
    text-align: right;
}

.cards-2-align-right .card-2-btn {
    margin-left: auto;
}

/* Card Style Variations */

/* Modern Style (Default) */
.cards-2-style-modern .card-2-inner {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cards-2-style-modern .card-2-item:hover .card-2-inner {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.cards-2-style-modern .card-2-item:hover {
    transform: none;
}

/* Classic Style */
.cards-2-style-classic .card-2-inner {
    border: 2px solid #e0e0e0;
    box-shadow: none;
    border-radius: 8px;
}

.cards-2-style-classic .card-2-item:hover .card-2-inner {
    border-color: #007cba;
    box-shadow: 0 0 0 4px rgba(0, 124, 186, 0.1);
}

.cards-2-style-classic .card-2-btn {
    background: transparent;
    color: #007cba;
    border: 2px solid #007cba;
}

.cards-2-style-classic .card-2-btn:hover {
    background: #007cba;
    color: white;
    transform: none;
    box-shadow: none;
}

/* Gradient Style */
.cards-2-style-gradient .card-2-inner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.cards-2-style-gradient .card-2-title h3 {
    color: white;
}

.cards-2-style-gradient .card-2-text {
    color: rgba(255, 255, 255, 0.9);
}

.cards-2-style-gradient .card-2-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cards-2-style-gradient .card-2-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.cards-2-style-gradient .card-2-item:hover .card-2-inner {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(102, 126, 234, 0.4);
}

/* Shadow Style */
.cards-2-style-shadow .card-2-inner {
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: none;
}

.cards-2-style-shadow .card-2-item:hover .card-2-inner {
    transform: translateY(-12px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.cards-2-style-shadow .card-2-content {
    padding: 30px;
}

.cards-2-style-shadow .card-2-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
}

.cards-2-style-shadow .card-2-btn:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Card Content 2 Style Variations */

/* Modern Style - Card Content 2 */
.cards-2-style-modern .card-2-content-2 {
    background: #f8f9fa;
    border-top-color: #e9ecef;
}

/* Classic Style - Card Content 2 */
.cards-2-style-classic .card-2-content-2 {
    background: #f1f3f4;
    border-top: 2px solid #e0e0e0;
}

/* Gradient Style - Card Content 2 */
.cards-2-style-gradient .card-2-content-2 {
    background: rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.cards-2-style-gradient .card-2-content-2 strong {
    color: white;
}

.cards-2-style-gradient .card-2-content-2 em {
    color: rgba(255, 255, 255, 0.8);
}

.cards-2-style-gradient .card-2-content-2 a {
    color: rgba(255, 255, 255, 0.9);
    border-bottom-color: transparent;
}

.cards-2-style-gradient .card-2-content-2 a:hover {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

/* Shadow Style - Card Content 2 */
.cards-2-style-shadow .card-2-content-2 {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    padding: 25px 30px;
}

/* Placeholder */
.cards-2-placeholder {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #ced4da;
    border-radius: 16px;
    color: #6c757d;
    font-style: italic;
    font-size: 18px;
    font-weight: 500;
}

/* CTA Button */
.card-2-cta {
    text-align: center;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cards-2-grid {
        gap: 20px;
    }

    .card-2-item {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .cards-2-heading {
        font-size: 28px;
    }

    .cards-2-text {
        font-size: 16px;
    }

    .card-2-content {
        padding: 20px;
    }

    .cards-2-style-shadow .card-2-content {
        padding: 25px;
    }

    .card-2-title h3 {
        font-size: 20px;
    }

    .card-2-text {
        font-size: 15px;
    }

    .card-2-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .card-2-content-2 {
        padding: 15px 20px;
        font-size: 14px;
    }

    .cards-2-style-shadow .card-2-content-2 {
        padding: 20px 25px;
    }
}

@media (max-width: 480px) {
    .cards-2-container {
        padding: 3em 0;
    }

    .cards-2-grid {
        gap: 15px;
    }

    .card-2-item {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .cards-2-heading {
        font-size: 24px;
    }

    .cards-2-text {
        font-size: 15px;
    }

    .card-2-content {
        padding: 15px;
    }

    .cards-2-style-shadow .card-2-content {
        padding: 20px;
    }

    .card-2-title h3 {
        font-size: 18px;
    }

    .card-2-text {
        font-size: 14px;
    }

    .card-2-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .card-2-content-2 {
        padding: 12px 15px;
        font-size: 13px;
    }

    .cards-2-style-shadow .card-2-content-2 {
        padding: 15px 20px;
    }
}