/* Reset & Variables */
:root {
    --otg-primary: #0073aa;
    --otg-text: #333;
    --otg-text-light: #666;
    --otg-border: #e2e8f0;
    --otg-bg-light: #f7fafc;
    --otg-white: #ffffff;
}

/* 
 * Layout Customizations
 * Bootstrap 3 is the primary framework, these are minor overrides
 */

.otg-wrapper {
    margin: 30px 0;
}

/* Sidebar Customizations */
.list-group-item.active, 
.list-group-item.active:hover, 
.list-group-item.active:focus {
    background-color: var(--otg-primary);
    border-color: var(--otg-primary);
}

/* Grid Item Card Overrides */
.otg-grid-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 4px; /* Match Bootstrap default */
    border: 1px solid #ddd;
    padding: 0; /* Override thumbnail padding */
}

.otg-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #ccc;
    text-decoration: none;
}

.otg-grid-item .caption {
    padding: 15px;
}

/* Thumbnail Ratio Trick */
.otg-thumbnail-link {
    display: block;
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: #edf2f7;
    border-bottom: 1px solid #ddd;
}

.otg-thumbnail-link img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.otg-grid-item:hover .otg-thumbnail-link img {
    transform: scale(1.05);
}

/* Title Link */
.otg-title a {
    text-decoration: none;
    color: var(--otg-text);
}

.otg-title a:hover {
    color: var(--otg-primary);
}

/* Single Template Page */
.otg-single-template .page-header {
    margin-top: 0;
    border-bottom: 1px solid #eee;
}

.otg-single-meta {
    font-size: 14px;
    margin-top: 5px;
}

.otg-download-button {
    /* Bootstrap btn-primary is used, this just adds shadow/transition if needed */
    transition: transform 0.2s;
}

.otg-download-button:hover {
    transform: translateY(-2px);
}

/* Responsive Helper */
@media (max-width: 767px) {
    .otg-sidebar {
        margin-bottom: 30px;
    }
}
