/* IranCharter SEO Unbreakable V13 Stylesheet */

.ic-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.ic-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 1024px) {
    .ic-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ic-grid-4, .ic-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Force white text over images */
.text-white-force {
    color: #ffffff !important;
    fill: #ffffff !important;
}

.text-white-force h1, 
.text-white-force h2, 
.text-white-force h3, 
.text-white-force p, 
.text-white-force span, 
.text-white-force a {
    color: #ffffff !important;
}

/* Jump Links (Table of Contents) */
.ic-toc-container {
    background-color: #fdfdfd;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.ic-toc-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2b2b2b;
    border-bottom: 2px solid #ffc107;
    display: inline-block;
    padding-bottom: 5px;
}

.ic-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}

@media (max-width: 600px) {
    .ic-toc-list {
        grid-template-columns: 1fr;
    }
}

.ic-toc-list li {
    position: relative;
    padding-right: 15px;
}

.ic-toc-list li::before {
    content: "•";
    color: #ffc107;
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    right: 0;
    top: -2px;
}

.ic-toc-list a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ic-toc-list a:hover {
    color: #003d80;
    text-decoration: underline;
}

/* Travel Image Cards */
.ic-travel-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.ic-travel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.ic-travel-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.ic-travel-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ic-travel-card-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333333;
}

.ic-travel-card-desc {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.ic-travel-card-btn {
    margin-top: auto;
    background-color: #ffc107;
    color: #212529 !important;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.2s;
}

.ic-travel-card-btn:hover {
    background-color: #e0a800;
}

/* Trust Badges */
.ic-trust-badges-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: #f8f9fa;
    border: 1px dashed #ced4da;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
}

@media (max-width: 768px) {
    .ic-trust-badges-container {
        grid-template-columns: 1fr;
    }
}

.ic-trust-badge {
    padding: 10px;
}

.ic-trust-badge-icon {
    font-size: 2rem;
    color: #ffc107;
    margin-bottom: 10px;
}

.ic-trust-badge-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 5px;
}

.ic-trust-badge-desc {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Hero block styled for text layering over background */
.ic-hero-block {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ic-hero-block img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.ic-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.ic-hero-overlay h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.ic-hero-overlay p {
    font-size: 1.1rem;
    max-width: 800px;
    line-height: 1.6;
}

/* Highlight and Alert styling for informational text */
.ic-info-box {
    border-right: 5px solid #ffc107;
    background-color: #fffbeb;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

.ic-info-box-title {
    font-weight: bold;
    color: #856404;
    margin-bottom: 5px;
}

/* Article Styling rules */
.ic-article-p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444444;
    margin-bottom: 20px;
    text-align: justify;
}

.ic-article-h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #1a1a1a;
    border-right: 4px solid #ffc107;
    padding-right: 12px;
}

.ic-article-h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #2d2d2d;
}
