body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fb 60%, #eef1f6 100%);
    background-attachment: fixed;
    color: #333;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #2c3e50;
}

.navbar {
    background-color: #000000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #ffffff !important;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 55px;
}

.nav-link {
    font-weight: 400;
    color: #ffffff !important;
}

.nav-link:hover {
    color: #cccccc !important;
}

.card {
    border: none;
    border-radius: 10px;
    background-color: #fff;
}

.quote-text {
    font-size: 1.25rem;
    font-style: italic;
    color: #555;
}

.blockquote-footer {
    color: #777;
    font-size: 1.1rem;
}

.quote-image {
    margin-top: 20px;
}

.quote-image img {
    max-height: 400px; /* Reduced from previous implicit size */
    max-width: 100%; /* Ensures it doesn�t exceed container */
    object-fit: cover;
}

.thumbnail {
    max-height: 200px;
    object-fit: cover;
    width: 100%;
}

.mobile {
    display: none;
}

@media (max-width: 768px) {
    .desktop {
        display: none;
    }
    .mobile {
        display: block;
    }
    .quote-text {
        font-size: 1.1rem;
    }
    .thumbnail {
        max-height: 150px;
    }
    .quote-image img {
        max-height: 250px; /* Adjusted for mobile */
    }
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-outline-primary {
    border-radius: 5px;
    padding: 10px 20px;
}

.list-group-item {
    border: none;
    border-radius: 10px;
    background-color: #fff;
    transition: transform 0.2s;
}

.list-group-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.footer {
    background-color: #e9ecef;
    border-top: 1px solid #dee2e6;
}

.footer a {
    text-decoration: none;
    color: #6c757d;
}

.footer a:hover {
    color: #007bff;
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Subscription Section */
.subscription-section {
    background-color: #fdf6e8;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.subscription-section h2 {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.subscription-section p {
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.subscription-section .form-control {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 8px 12px;
    font-size: 0.95rem;
    max-width: 300px;
    width: 100%;
}

.subscription-section .btn-primary {
    padding: 8px 20px;
    font-size: 1rem;
    background-color: #28a745;
    border-color: #28a745;
}

.subscription-section .btn-primary:hover {
    background-color: #218838;
    border-color: #218838;
}

.subscription-section .small {
    font-size: 0.85rem;
    color: #6c757d;
}

.subscription-section .badge {
    font-size: 0.85rem;
    padding: 6px 12px;
    background-color: #6c757d;
}

@media (max-width: 768px) {
    .subscription-section {
        padding: 20px;
    }
    .subscription-section h2 {
        font-size: 1.5rem;
    }
    .subscription-section .form-control {
        max-width: 100%;
    }
}

/* Quote Details Page */
.quote-details {
    padding: 40px 0;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.quote-container {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.quote-text-large {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #333;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
}

.author-large {
    font-size: 1.75rem;
    font-family: 'Playfair Display', serif;
    color: #2c3e50;
    font-weight: 500;
    margin-top: 20px;
}

.quote-image-container {
    margin: 30px auto;
    max-width: 600px;
}

.quote-image {
    border: 8px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    max-width: 100%; /* Ensures it fits within container */
    height: auto; /* Maintains aspect ratio */
}

.content-section {
    margin-top: 40px;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 1.75rem;
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.text-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    text-align: left;
}

@media (max-width: 768px) {
    .quote-details {
        padding: 20px 0;
    }
    .quote-container {
        padding: 20px;
    }
    .quote-text-large {
        font-size: 1.75rem;
    }
    .author-large {
        font-size: 1.25rem;
    }
    .quote-image-container {
        max-width: 100%;
    }
    .quote-image {
        border-width: 4px;
        max-height: 250px; /* Limits image size on mobile */
    }
    .content-section {
        padding: 15px;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .text-content {
        font-size: 1rem;
    }
}

/* Simple Quote Card Styles for Homepage */
.simple-quote-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.date-icon {
    text-align: center;
    padding: 10px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    min-width: 70px;
    background-color: #f8f9fa;
}

.date-day {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    font-family: 'Playfair Display', serif;
}

.date-month {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.simple-quote-card .quote-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

.simple-quote-card .quote-author {
    color: #777;
    font-size: 1rem;
    margin-top: 8px;
}

.simple-quote-card img {
    max-height: 150px;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 768px) {
    .simple-quote-card {
        padding: 15px;
    }

    .date-icon {
        min-width: 60px;
        padding: 8px;
    }

    .date-day {
        font-size: 1.5rem;
    }

    .date-month {
        font-size: 0.7rem;
    }

    .simple-quote-card .quote-text {
        font-size: 1rem;
    }

    .simple-quote-card img {
        max-height: 120px;
        margin-bottom: 15px;
    }
}