body {
    min-height: 100vh;
    background: #fff;
}

.navbar {
    border-bottom: 2px solid #c4302b;
    background: #fff !important;
}

.navbar-brand span {
    color: #c4302b;
}
.blog-post-container{
    border: 2px solid #c4302b;
   
}
label.youtube-label {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
    display: block;
    font-weight: 500;
  }
.hero-section {
    min-height: 45vh;
    background: none;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.hero-section h1 {
    color: #c4302b;
    letter-spacing: -1px;
}

.hero-section p {
    color: #282828;
    font-weight: 500;
}

.input-group.input-group-lg .form-control {
    font-size: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 2rem;
    
}

.input-group.input-group-lg .btn {
    font-size: 1.25rem;
    border-radius: 0 2rem 2rem 0;
    padding-left: 2rem;
    padding-right: 2rem;
}

.btn-danger, .btn-outline-danger {
    background: #c4302b;
    border: none;
    color: #fff;
    transition: transform 0.2s, background 0.2s;
}

.btn-danger:hover, .btn-outline-danger:hover {
    background: #a7281a;
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-danger {
    background: #fff;
    color: #c4302b;
    border: 2px solid #c4302b;
}

.btn-outline-danger:hover {
    background: #c4302b;
    color: #fff;
}

.form-control:focus, .form-select:focus {
    border-color: #c4302b;
    box-shadow: 0 0 0 0.25rem rgba(196, 48, 43, 0.15);
}

#blogTitle, #blogContent, #blogKeywords {
    min-height: 50px;
    max-height: 300px;
    overflow-y: auto;
}

#blogContent {
    white-space: pre-wrap;
}

#blogKeywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keyword-tag {
    background-color: #f8d7da;
    color: #c4302b;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    border: 1px solid #c4302b;
}

/* --- Custom styles for new sections --- */
.card.shadow-sm.rounded-4 {
  border: none;
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px rgba(44,44,44,0.07);
}

.carousel .card {
  min-height: 220px;
}

.carousel .card-title {
  color: #c4302b;
  font-weight: 600;
}

.carousel .badge {
  font-size: 0.95rem;
  padding: 0.5em 1em;
  border-radius: 1rem;
}

.blockquote {
  font-size: 1.1rem;
  color: #282828;
}

.blockquote-footer {
  color: #c4302b;
  font-size: 0.95rem;
}

section.bg-light, section.bg-white {
  border-radius: 0;
  margin-bottom: 0;
}

section {
  margin-bottom: 0;
}

/* Revenue Calculator Styles */
.revenue-calculator-section {
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

/* Calculator Grid Layout */
.calculator-grid {
    display: grid;
    grid-template-columns: minmax(400px, 1fr) minmax(400px, 1fr);
    gap: 2rem;
    align-items: start;
}

.calculator-inputs {
    max-width: 500px;
}

.calculator-results {
    position: sticky;
    top: 2rem;
    min-height: 500px;
}

.initial-state-content {
    max-width: 400px;
}

.initial-state-content .fas {
    transition: all 0.3s ease;
}

.initial-state-content:hover .fas {
    opacity: 0.5 !important;
    transform: scale(1.1);
}

.revenue-preview {
    border: 2px dashed #e9ecef;
    border-radius: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
}

/* Platform Table Styles */
.platform-table {
    font-size: 0.9rem;
    width: 100%;
    table-layout: fixed;
}

/* Ensure table responsiveness */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.platform-table th {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 0.5rem;
    border-bottom: 2px solid #e9ecef;
    text-align: center;
    position: relative;
}

.platform-table th .fa-info-circle {
    font-size: 0.7rem;
    cursor: help;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.platform-table th .fa-info-circle:hover {
    opacity: 1;
}

.platform-table th .d-flex {
    min-width: 0;
    flex-wrap: nowrap;
}

.platform-table th:first-child {
    text-align: left;
    width: 35%;
}

.platform-table th:not(:first-child) {
    width: 21.67%;
}

.platform-table td {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
    border-bottom: 1px solid #f8f9fa;
    text-align: center;
}

.platform-table td:first-child {
    text-align: left;
}

.platform-name {
    font-weight: 500;
    color: #495057;
    display: flex;
    align-items: center;
}

.platform-name i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.platform-radio {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #c4302b;
}

.platform-radio:checked {
    background-color: #c4302b;
    border-color: #c4302b;
}

.platform-radio:focus {
    box-shadow: 0 0 0 0.25rem rgba(196, 48, 43, 0.15);
}

/* Revenue Display Styles */
.revenue-number-display {
    font-size: 3rem;
    font-weight: 900;
    color: #c4302b;
    line-height: 1;
    margin-bottom: 1rem;
}

.currency-symbol {
    font-size: 2.5rem;
    vertical-align: top;
    margin-right: 0.5rem;
}

.revenue-amount {
    display: inline-block;
    min-width: 200px;
    text-align: left;
}

.revenue-meter {
    max-width: 500px;
    margin: 0 auto;
}

.meter-container {
    background: #f8f9fa;
    border-radius: 1rem;
    overflow: hidden;
    height: 2rem;
    border: 2px solid #e9ecef;
}

.meter-bar {
    display: flex;
    height: 100%;
    width: 100%;
}

.meter-segment {
    height: 100%;
    transition: width 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
}

.current-revenue {
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.missed-revenue {
    background: linear-gradient(90deg, #c4302b, #a7281a);
}

/* Animation for revenue number */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.revenue-number-display {
    animation: countUp 0.5s ease-out;
}

/* Form validation styles */
.form-check-input:checked {
    background-color: #c4302b;
    border-color: #c4302b;
}

.form-check-input:focus {
    border-color: #c4302b;
    box-shadow: 0 0 0 0.25rem rgba(196, 48, 43, 0.15);
}

@media (max-width: 768px) {
    .navbar-brand span {
        font-size: 1.5rem !important;
    }
    .hero-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .input-group.input-group-lg .form-control,
    .input-group.input-group-lg .btn {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    .card.shadow-sm.rounded-4 {
      border-radius: 1rem;
    }
    
    /* Calculator Grid Mobile */
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .calculator-inputs {
        max-width: none;
    }
    
    .calculator-results {
        position: static;
        min-height: auto;
    }
    
    /* Platform Table Mobile */
    .platform-table {
        font-size: 0.75rem;
        min-width: 100%;
    }
    
    /* Prevent horizontal scroll on mobile */
    .table-responsive {
        overflow-x: visible;
    }
    
    .platform-table th:first-child {
        width: 40%;
    }
    
    .platform-table th:not(:first-child) {
        width: 20%;
    }
    
    .platform-table th {
        font-size: 0.65rem;
        padding: 0.4rem 0.2rem;
        white-space: nowrap;
    }
    
    .platform-table th .fa-info-circle {
        font-size: 0.5rem;
    }
    
    .platform-table th .d-flex {
        gap: 0.2rem;
    }
    
    .platform-table td {
        padding: 0.4rem 0.2rem;
        vertical-align: middle;
    }
    
    .platform-name {
        font-size: 0.75rem;
        min-width: 80px;
    }
    
    .platform-name i {
        font-size: 0.9rem;
        width: 16px;
    }
    
    .platform-radio {
        width: 0.9rem;
        height: 0.9rem;
    }
    
    /* Revenue Display Mobile */
    .revenue-number-display {
        font-size: 2rem;
    }
    
    .currency-symbol {
        font-size: 1.5rem;
    }
    
    .revenue-amount {
        min-width: 120px;
    }
    
    .revenue-meter {
        max-width: 100%;
    }
    
    .meter-container {
        height: 1.5rem;
    }
    
    .meter-segment {
        font-size: 0.75rem;
    }
    
    /* Initial State Mobile */
    .initial-state-content {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .revenue-preview {
        padding: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .platform-table {
        font-size: 0.7rem;
    }
    
    .platform-table th {
        font-size: 0.6rem;
        padding: 0.3rem 0.15rem;
    }
    
    .platform-table th .fa-info-circle {
        font-size: 0.4rem;
    }
    
    .platform-table th .d-flex {
        gap: 0.1rem;
    }
    
    .platform-table td {
        padding: 0.3rem 0.15rem;
    }
    
    .platform-name {
        font-size: 0.7rem;
    }
    
    .platform-name i {
        font-size: 0.8rem;
        width: 14px;
    }
    
    .platform-radio {
        width: 0.8rem;
        height: 0.8rem;
    }
    
    .revenue-number-display {
        font-size: 1.8rem;
    }
    
    .currency-symbol {
        font-size: 1.3rem;
    }
    
    .revenue-amount {
        min-width: 100px;
    }
}
