/* Utility CSS Classes - Replace Inline Styles */

/* Display Classes */
.hidden { display: none !important; }
.show { display: block !important; }
.inline-block { display: inline-block !important; }
.flex { display: flex !important; }
.grid { display: grid !important; }

/* Visibility Classes */
.invisible { visibility: hidden !important; }
.visible { visibility: visible !important; }

/* Text Decoration Classes */
.no-decoration { text-decoration: none !important; }
.underline { text-decoration: underline !important; }

/* Color Classes */
.inherit-color { color: inherit !important; }
.text-white { color: white !important; }
.text-black { color: black !important; }
.text-gold { color: #d4af37 !important; }

/* Logo and Image Classes */
.logo-fallback { 
    display: none !important; 
}

.site-logo-hidden { 
    display: none !important; 
}

.company-link {
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.3s ease;
}

.company-link:hover {
    opacity: 0.8;
}

/* Read More Functionality */
.read-more-text {
    display: none;
}

.read-more-text.show {
    display: inline;
}

/* Blog-Specific Styles */

/* Breadcrumb Navigation */
.breadcrumb-container {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    margin: 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: ">";
    margin: 0 0.5rem;
    color: #6c757d;
}

.breadcrumb-link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #d4af37;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
}

/* Main Content Layout */
.main-content {
    padding: 2rem 0;
    margin-top: 80px; /* Account for fixed header */
}

.blog-article {
    max-width: none;
}

/* Article Header */
.article-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.category-tag, .publish-date, .read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.category-tag {
    background: #e8f4fd;
    color: #0066cc;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
    margin: 1rem 0;
}

.article-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-author {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #212529;
}

.author-title {
    font-size: 0.875rem;
    color: #6c757d;
}



/* Featured Image */
.featured-image {
    margin: 2rem 0;
    text-align: center;
}

.article-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.image-caption {
    font-size: 0.875rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Top 5 Gold IRA Companies Promotional Section */
.top-companies-promo {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    border-radius: 20px;
    margin: 2rem auto;
    max-width: 1000px;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
    overflow: hidden;
}

/* Promotional Banner Styles (for review pages) */
.top-companies-promo-banner {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.top-companies-promo-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    text-decoration: none;
}

.promo-banner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: white;
    padding: 0;
    border: none;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    transition: all 0.3s ease;
    width: 100%;
}

.promo-banner-button i {
    color: white;
    font-size: 1.1rem;
}



.promo-header {
    background: rgba(0,0,0,0.1);
    padding: 2rem;
    text-align: center;
}

.promo-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.promo-content {
    background: #faf8f3;
    padding: 2.5rem;
}

.promo-intro {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2c2c2c;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-text {
    color: #d4af37;
    font-weight: 600;
}

.best-company-highlight {
    background: white;
    border: 3px solid #d4af37;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.rank-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.rank-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.rank-label {
    color: #d4af37;
    font-weight: 700;
    font-size: 0.875rem;
    text-align: center;
    letter-spacing: 1px;
}

.company-info {
    flex: 1;
}

.company-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #2c2c2c;
    margin-bottom: 1rem;
}

.company-name {
    color: #d4af37;
    font-weight: 700;
}

.company-links {
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
}

.review-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.review-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.official-link {
    color: #28a745;
    text-decoration: none;
    font-weight: 600;
}

.official-link:hover {
    color: #1e7e34;
    text-decoration: underline;
}

.promo-cta {
    text-align: center;
    margin-top: 2rem;
}

.view-all-btn {
    background: linear-gradient(135deg, #8b1538 0%, #a91d42 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.3);
}

.view-all-btn:hover {
    background: linear-gradient(135deg, #a91d42 0%, #8b1538 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.4);
    color: white;
    text-decoration: none;
}

/* Mobile responsive adjustments for promo section */
@media (max-width: 768px) {
    .promo-title {
        font-size: 2rem !important;
    }
    
    .best-company-highlight {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1.5rem !important;
    }
    
    .rank-badge {
        min-width: auto !important;
    }
    
    .promo-content {
        padding: 1.5rem !important;
    }
    
    .view-all-btn {
        padding: 0.875rem 2rem !important;
        font-size: 1rem !important;
    }
    
    /* Promotional banner mobile styles */
    .top-companies-promo-banner {
        padding: 1.5rem !important;
        margin: 1rem 0 !important;
        border-radius: 15px !important;
    }
    
    .promo-banner-button {
        padding: 0 !important;
        font-size: 1rem !important;
        margin: 0 !important;
        background: transparent !important;
        color: white !important;
    }
    
    .promo-banner-button i {
        font-size: 1rem !important;
    }
}

/* Table of Contents */
.table-of-contents {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 600px;
}

.toc-title {
    color: #212529;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.1rem;
    padding-left: 1rem;
    position: relative;
}

.toc-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
}

.toc-link {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 0.1rem 0;
}

.toc-link:hover {
    color: #d4af37;
    padding-left: 0.5rem;
}

/* Article Content */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    text-align: justify;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section p {
    text-align: justify;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 0.75rem;
}

.section-title i {
    color: #d4af37;
}

.lead-paragraph {
    font-size: 1.125rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #f0ad4e;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.highlight-title {
    color: #856404;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-box {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.warning-box h3 {
    color: #721c24;
    margin-bottom: 1rem;
}

.mistake-list {
    list-style: none;
    padding: 0;
}

.mistake-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.mistake-list li::before {
    content: "⚠️";
    position: absolute;
    left: 0;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #d4af37;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.benefit-card h3 {
    color: #212529;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.benefit-card p {
    color: #6c757d;
    line-height: 1.6;
    text-align: justify;
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

/* Metals Grid */
.metals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.metal-category {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
}

.metal-title {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
}

.metal-specs {
    list-style: none;
    padding: 0;
}

.metal-specs li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
    position: relative;
    padding-left: 1.5rem;
}

.metal-specs li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Strategy Cards */
.strategy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.strategy-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.strategy-card h3 {
    color: #212529;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.strategy-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.pros-cons {
    margin-top: 1rem;
}

.pros h4 {
    color: #28a745;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.pros ul {
    list-style: none;
    padding: 0;
}

.pros li {
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: #495057;
}

.pros li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.allocation-example {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.allocation-example h4 {
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 0.875rem;
    font-weight: 600;
}

.allocation-example ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.allocation-example li {
    padding: 0.25rem 0;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Checklist */
.checklist-box {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.checklist-title {
    color: #0c5460;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: #495057;
    line-height: 1.6;
}

.checklist-item i {
    color: #28a745;
    font-size: 1.125rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.checklist-item .checklist-text {
    flex: 1;
    word-wrap: break-word;
    hyphens: auto;
}

/* Tax Info Grid */
.tax-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tax-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tax-card h3 {
    color: #212529;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.tax-card ul {
    list-style: none;
    padding: 0;
}

.tax-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #495057;
    border-bottom: 1px solid #f8f9fa;
}

.tax-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
    font-size: 1.25rem;
}

/* Steps Container - Compact Design */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.step:hover {
    border-color: #d4af37;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.step-number {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: #212529;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.step-content p {
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem;
}

/* FAQ Section - Improved Design */
.faq-section {
    margin: 3rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-container {
    margin-top: 2rem;
}

.faq-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.faq-item:hover {
    border-color: #d4af37;
}

.faq-item.active {
    border-color: #d4af37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    cursor: pointer !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-family: inherit;
    outline: none;
    pointer-events: auto !important;
    position: relative;
    z-index: 2;
    transform: none;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question span {
    flex: 1;
    text-align: left;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    cursor: pointer !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.faq-question i {
    color: #d4af37;
    transition: transform 0.3s ease;
    cursor: pointer !important;
    flex-shrink: 0;
    font-size: 18px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 1.25rem;
    margin: 0;
    color: #495057;
    line-height: 1.6;
}



/* Related Articles - Improved Design */
.related-articles {
    margin: 3rem 0;
    background: #f8f9fa;
    padding: 3rem 0;
    border-radius: 12px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.related-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-content {
    padding: 1.5rem;
}

.related-title {
    margin-bottom: 0.75rem;
}

.related-link {
    color: #212529;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-link:hover {
    color: #d4af37;
}

.related-excerpt {
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6c757d;
    border-top: 1px solid #f8f9fa;
    padding-top: 0.75rem;
}

/* Article CTA - Centered and Improved */
.article-cta {
    background: linear-gradient(135deg, #212529 0%, #495057 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    color: #dee2e6;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button.primary {
    background: #d4af37;
    color: white;
}

.cta-button.primary:hover {
    background: #b8941f;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.cta-button.secondary:hover {
    background: white;
    color: #212529;
}

/* Layout Utilities */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.margin-auto { margin: 0 auto !important; }
.margin-bottom-1 { margin-bottom: 1rem !important; }
.margin-bottom-2 { margin-bottom: 2rem !important; }
.margin-top-1 { margin-top: 1rem !important; }
.margin-top-2 { margin-top: 2rem !important; }

.padding-1 { padding: 1rem !important; }
.padding-2 { padding: 2rem !important; }
.padding-x-1 { padding-left: 1rem !important; padding-right: 1rem !important; }
.padding-y-1 { padding-top: 1rem !important; padding-bottom: 1rem !important; }

/* Width and Sizing */
.w-full { width: 100% !important; }
.w-auto { width: auto !important; }
.max-w-300 { max-width: 300px !important; }
.max-w-500 { max-width: 500px !important; }
.max-w-700 { max-width: 700px !important; }

/* Flexbox */
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }

/* Grid */
.grid-cols-1 { grid-template-columns: 1fr !important; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
.gap-1 { gap: 1rem !important; }
.gap-2 { gap: 2rem !important; }

/* Position */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }

/* Transform */
.transform-none { transform: none !important; }

/* Background */
.bg-transparent { background: transparent !important; }
.bg-white { background: white !important; }
.bg-gray-light { background: #f8f9fa !important; }

/* Border */
.border-none { border: none !important; }
.border-radius-6 { border-radius: 6px !important; }
.border-radius-12 { border-radius: 12px !important; }
.border-radius-20 { border-radius: 20px !important; }

/* Font */
.font-bold { font-weight: bold !important; }
.font-600 { font-weight: 600 !important; }
.font-700 { font-weight: 700 !important; }

/* Font Size */
.text-sm { font-size: 0.875rem !important; }
.text-base { font-size: 1rem !important; }
.text-lg { font-size: 1.125rem !important; }
.text-xl { font-size: 1.25rem !important; }

/* Business Logic Classes */
.company-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.company-details {
    flex: 1;
    min-width: 0;
}

.rating-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    text-align: center;
}

/* Featured Element Styling */
.featured-element {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #f0ad4e;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: #856404;
}

/* Mobile Responsive Classes */
@media (max-width: 768px) {
    .main-content {
        margin-top: 70px; /* Smaller margin for mobile header */
    }
    
    .mobile-hidden { display: none !important; }
    .mobile-block { display: block !important; }
    .mobile-flex { display: flex !important; }
    .mobile-grid { display: grid !important; }
    .mobile-text-center { text-align: center !important; }
    .mobile-grid-cols-1 { grid-template-columns: 1fr !important; }
    .mobile-grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
    .mobile-flex-col { flex-direction: column !important; }
    .mobile-items-center { align-items: center !important; }
    .mobile-justify-center { justify-content: center !important; }
    .mobile-w-full { width: 100% !important; }
    .mobile-max-w-none { max-width: none !important; }
    .mobile-margin-auto { margin: 0 auto !important; }
    .mobile-padding-1 { padding: 1rem !important; }
    .mobile-gap-1 { gap: 1rem !important; }
    
    /* Enhanced Mobile Blog Optimizations */
    .article-title {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
    
    .article-meta {
        flex-direction: column !important;
        gap: 0.75rem !important;
        font-size: 0.875rem !important;
    }
    
    .article-author {
        justify-content: center !important;
        font-size: 0.875rem !important;
    }

    .section-title {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
        gap: 0.5rem !important;
        margin-bottom: 1.25rem !important;
    }

    /* Content and Layout */
    .content-section {
        margin-bottom: 2rem !important;
        padding: 0 0.5rem !important;
    }

    .lead-paragraph {
        font-size: 1.0625rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.25rem !important;
    }

    /* Grid Layouts */
    .benefits-grid,
    .strategy-cards,
    .metals-grid,
    .tax-info-grid,
    .related-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .steps-container {
        gap: 1rem !important;
        grid-template-columns: 1fr !important;
    }
    
    .step {
        padding: 1.25rem !important;
    }
    
    .step-number {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.875rem !important;
        min-width: 35px !important;
        flex-shrink: 0 !important;
    }

    /* Cards and Components */
    .benefit-card,
    .strategy-card,
    .tax-card {
        padding: 1.25rem !important;
        margin-bottom: 1rem !important;
    }

    /* Table of Contents Mobile */
    .table-of-contents {
        margin: 1.5rem auto !important;
        padding: 1.25rem !important;
        max-width: 100% !important;
    }

    .toc-title {
        font-size: 1.125rem !important;
        margin-bottom: 0.875rem !important;
    }

    .toc-link {
        font-size: 0.9375rem !important;
        line-height: 1.4 !important;
    }

    /* Buttons and CTAs */
    .cta-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.875rem !important;
    }
    
    .cta-button {
        width: 100% !important;
        max-width: none !important;
        padding: 1rem 1.5rem !important;
        font-size: 0.9375rem !important;
        min-height: 48px !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Hero Section Mobile */
    .hero-title {
        font-size: 1.875rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.875rem !important;
    }

    .hero-subtitle {
        font-size: 1.125rem !important;
        margin-bottom: 0.875rem !important;
    }

    .hero-description {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.5rem !important;
    }

    /* Touch Targets and Accessibility */
    .toc-link,
    .breadcrumb-link {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        padding: 0.5rem 0 !important;
    }

    /* Container and Spacing */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .article-content {
        padding: 0 !important;
    }

    /* Lists and Text */
    .metal-specs li,
    .checklist-item {
        font-size: 0.9375rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.5rem !important;
    }

    /* Images */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Performance Optimizations for Mobile */
    * {
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.3) !important;
    }

    .table-of-contents,
    .benefit-card,
    .strategy-card,
    .tax-card {
        transform: translateZ(0) !important;
        backface-visibility: hidden !important;
    }

    /* Improved scrolling performance */
    .main-content {
        overflow-x: hidden !important;
    }

    /* Better font rendering on mobile */
    body {
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        text-rendering: optimizeLegibility !important;
    }
}

/* Additional Mobile Performance Optimizations */
@media (max-width: 480px) {
    .article-title {
        font-size: 1.5rem !important;
    }

    .section-title {
        font-size: 1.125rem !important;
    }

    .hero-title {
        font-size: 1.625rem !important;
    }

    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .content-section {
        padding: 0 0.25rem !important;
    }

    .benefit-card,
    .strategy-card,
    .tax-card,
    .step {
        padding: 1rem !important;
    }

    .table-of-contents {
        padding: 1rem !important;
    }

    .toc-link {
        font-size: 0.875rem !important;
    }

    /* Phone button mobile adjustments */
    .nav-phone-btn {
        font-size: 0.875rem !important;
        padding: 0.5rem 0.75rem !important;
        margin: 0 0.5rem !important;
    }

    .nav-phone-btn span {
        display: none !important;
    }

    .nav-phone-btn i {
        font-size: 1.125rem !important;
    }
    
    /* Small mobile promotional banner styles */
    .top-companies-promo-banner {
        padding: 1rem !important;
        margin: 0.75rem 0 !important;
        border-radius: 12px !important;
    }
    
    .promo-banner-button {
        padding: 0 !important;
        font-size: 0.95rem !important;
        gap: 0.375rem !important;
        background: transparent !important;
        color: white !important;
        margin: 0 !important;
    }
    
    .promo-banner-button i {
        font-size: 0.95rem !important;
    }
}

/* Navigation Phone Button Styling */
.nav-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: white;
    text-decoration: none;
    padding: 0.625rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    margin-left: 1rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.nav-phone-btn:hover {
    background: linear-gradient(135deg, #b8941f 0%, #a67d1b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    color: white;
    text-decoration: none;
}

.nav-phone-btn i {
    font-size: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Mobile responsive for phone button */
@media (max-width: 768px) {
    .nav-phone-btn {
        margin-left: 0.5rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .nav-phone-btn span {
        display: none;
    }
    
    .nav-phone-btn i {
        font-size: 1.125rem;
    }
}

/* Small Mobile Classes */
@media (max-width: 480px) {
    .main-content {
        margin-top: 60px; /* Even smaller margin for very small screens */
    }
    
    .small-hidden { display: none !important; }
    .small-block { display: block !important; }
    .small-text-center { text-align: center !important; }
    .small-grid-cols-1 { grid-template-columns: 1fr !important; }
    .small-padding-1 { padding: 1rem !important; }
    .small-margin-1 { margin: 1rem !important; }
}

/* Animation Helpers */
.no-animation { 
    animation: none !important;
    transition: none !important;
}

.no-hover-transform:hover {
    transform: none !important;
}

/* Review Page Layout Classes */
.review-header-layout {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.company-title-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.specs-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.spec-item-layout {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
}

.spec-item-layout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #d4af37;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.final-verdict-layout {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    text-align: center;
}

.rating-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #d4af37;
    margin: 1rem 0;
}

.cta-section {
    background: linear-gradient(135deg, #212529 0%, #495057 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
}

/* Mobile Adjustments for Review Pages */
@media (max-width: 768px) {
    .review-header-layout {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .specs-grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .pros-cons-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .company-title-layout {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .specs-grid-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .final-verdict-layout {
        padding: 1.5rem;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
} 