/* Custom styles for Hart County Humane Society */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

footer {
    border-top: 2px solid #eee;
}

/* Sponsor section styles */
.sponsors-section {
    padding: 20px 0;
}

.sponsors-section h3 {
    color: #333;
    font-weight: 600;
    margin-bottom: 2rem;
}

.sponsor-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sponsor-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.sponsor-card a {
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.sponsor-logo {
    max-width: 150px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.sponsor-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0.5rem 0;
}

.sponsor-tagline {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

/* Responsive adjustments for sponsor grid */
@media (max-width: 768px) {
    .sponsor-logo {
        max-width: 120px;
        max-height: 120px;
    }
    
    .sponsor-name {
        font-size: 0.9rem;
    }
    
    .sponsor-tagline {
        font-size: 0.8rem;
    }
}

/* RichTextField image styles with float for text wrapping */
.richtext img,
.richtext-image img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Left-aligned images */
.richtext .left,
.richtext-image.left,
.richtext img[align="left"] {
    float: left;
    margin: 0 20px 15px 0;
}

/* Right-aligned images */
.richtext .right,
.richtext-image.right,
.richtext img[align="right"] {
    float: right;
    margin: 0 0 15px 20px;
}

/* Center-aligned images (no float) */
.richtext .full-width,
.richtext-image.full-width {
    float: none;
    display: block;
    margin: 15px auto;
}

/* Clear floats after richtext content */
.richtext::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive adjustments for RichTextField images */
@media (max-width: 768px) {
    .richtext img,
    .richtext-image img {
        width: 200px;
        height: 200px;
    }
    
    .richtext .left,
    .richtext-image.left,
    .richtext img[align="left"] {
        margin: 0 15px 10px 0;
    }
    
    .richtext .right,
    .richtext-image.right,
    .richtext img[align="right"] {
        margin: 0 0 10px 15px;
    }
}

@media (max-width: 480px) {
    .richtext img,
    .richtext-image img {
        width: 150px;
        height: 150px;
    }
    
    .richtext .left,
    .richtext-image.left,
    .richtext img[align="left"] {
        margin: 0 10px 10px 0;
    }
    
    .richtext .right,
    .richtext-image.right,
    .richtext img[align="right"] {
        margin: 0 0 10px 10px;
    }
}
