/** Please add your Custom CSS here **/

/* ===================================
   TRAINER GUIDE PAGE IMPROVEMENTS
   =================================== */

/* Language Selection Section */
.language-btn {
    margin: 0 5px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.language-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Trainer Guide Section */
.trainer-guide-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.trainer-guide-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 300px;
    position: relative;
}

.trainer-guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image-wrapper {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trainer-guide-card:hover .card-image {
    transform: scale(1.05);
}

/* Default File Icon */
.default-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.default-file-icon i {
    font-size: 4rem;
    opacity: 0.9;
}

/* Card Title Header */
.card-title-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 12px 15px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.card-title-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    color: white;
}

/* Card Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    padding-top: 70px; /* Space for title header */
}

.trainer-guide-card:hover .card-overlay {
    opacity: 1;
}

.overlay-content {
    color: white;
    text-align: center;
    width: 100%;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.btn-download, .btn-view, .btn-gallery {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-view {
    background: #007bff;
}

.btn-gallery {
    background: #ff9800;
}

.btn-download:hover {
    background: #218838;
    color: white;
    transform: translateY(-2px) scale(1.1);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.btn-view:hover {
    background: #0056b3;
    color: white;
    transform: translateY(-2px) scale(1.1);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.btn-gallery:hover {
    background: #f57c00;
    color: white;
    transform: translateY(-2px) scale(1.1);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.btn-download i, .btn-view i, .btn-gallery i {
    font-size: 1rem;
}

/* Center align cards */
.trainer-guide-section .row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* No Content Message */
.no-content-message {
    padding: 60px 20px;
    color: #6c757d;
}

.no-content-message i {
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-content-message h3 {
    color: #495057;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .trainer-guide-section {
        padding: 40px 0;
    }

    .trainer-guide-card {
        height: 250px;
        margin-bottom: 20px;
    }

    .card-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    }

    .overlay-content {
        padding: 10px 0;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-description {
        font-size: 0.85rem;
        max-height: 40px;
    }

    .btn-download, .btn-view {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .trainer-guide-card {
        height: 220px;
    }

    .default-file-icon i {
        font-size: 3rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .btn-download, .btn-view {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* Page Header Center Alignment */
.page-header h1 {
    text-align: center;
}

/* Justify Content Center for Bootstrap 3 compatibility */
.justify-content-center {
    justify-content: center;
}

/* ===================================
   WEBVIEW APP MODE
   =================================== */

body.app-mode .navbar {
    display: none !important;
}

body.app-mode {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.app-mode html {
    margin-top: 0 !important;
}

/* ===================================
   RESPONSIVE - PROJECT PAGE SIDEBAR
   =================================== */

@media (max-width: 767px) {
    .col-md-9.col-md-push-3,
    .col-md-3.col-md-pull-9 {
        left: auto;
        right: auto;
    }

    aside.sidebar {
        margin-bottom: 30px;
        padding: 15px;
        background-color: #f8f9fa;
        border-radius: 8px;
    }

    .sidebar .nav > li > a {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* ===================================
   RESPONSIVE - PAGE LAYOUT (PARTNERS)
   =================================== */

@media (max-width: 767px) {
    .page-header {
        padding: 15px 0;
        margin: 0 0 20px 0;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .page-section.padding-30 {
        padding: 20px 0;
    }

    .page-section .lead {
        font-size: 16px;
        line-height: 1.5;
    }
}

/* ===================================
   RESPONSIVE - HOME PAGE
   =================================== */

@media (max-width: 767px) {
    #intro .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0 !important;
    }

    .partner-logo {
        max-height: 60px;
        margin-bottom: 15px;
    }

    .cta .col-md-3 {
        margin-bottom: 20px;
    }

    .cta h2 {
        font-size: 18px;
    }

    .feature-box {
        margin-bottom: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .partner-logo {
        max-height: 70px;
    }

    .cta .col-md-3 {
        width: 50%;
        float: left;
    }
}

/* ===================================
   RESPONSIVE - FOOTER
   =================================== */

@media (max-width: 767px) {
    footer {
        padding: 40px 0;
        text-align: center;
    }

    footer .col-md-3 {
        margin-bottom: 30px;
    }
}
