/* ================================================
   FMC Internal Linker — Frontend Widget Styles
   CollegeDekho-inspired design
   ================================================ */

/* =========================
   In-Content Contextual Links
   ========================= */
a.fmc-internal-link {
    color: #3F51B5;
    text-decoration: none;
    border-bottom: 1px dashed #3F51B5;
    font-weight: 500;
    transition: color 0.2s, border-color 0.2s;
}
a.fmc-internal-link:hover {
    color: #1A237E;
    border-bottom-style: solid;
}

/* =========================
   Important Links Table
   ========================= */
.fmc-important-links-widget {
    margin: 40px 0 30px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.fmc-important-links-header {
    padding: 14px 20px;
    text-align: center;
}
.fmc-important-links-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.fmc-important-links-body {
    padding: 0;
}
.fmc-important-links-table {
    width: 100%;
    border-collapse: collapse;
}
.fmc-important-links-table td {
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    width: 50%;
    text-align: center;
}
.fmc-important-links-table a.fmc-important-link {
    color: #3F51B5;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}
.fmc-important-links-table a.fmc-important-link:hover {
    color: #1A237E;
    text-decoration: underline;
}

/* =========================
   Related Articles Grid
   ========================= */
.fmc-related-articles-widget {
    margin: 40px 0 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.fmc-section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}
.fmc-section-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
}
.fmc-section-tabs {
    display: flex;
    gap: 20px;
}
.fmc-tab {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    padding-bottom: 10px;
    border-bottom: 3px solid transparent;
    margin-bottom: -12px;
}
.fmc-tab.active {
    color: #FF6B35;
    border-bottom-color: #FF6B35;
}
.fmc-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.fmc-related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.fmc-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.fmc-related-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}
.fmc-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.fmc-related-card:hover .fmc-related-image img {
    transform: scale(1.05);
}
.fmc-related-content {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.fmc-category-badge {
    display: inline-block;
    background: #EEF1FF;
    color: #3F51B5;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    align-self: flex-start;
}
.fmc-related-content h4 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fmc-related-date {
    font-size: 12px;
    color: #999;
    margin-top: auto;
}

/* =========================
   People Also Read
   ========================= */
.fmc-also-read-widget {
    margin: 30px 0;
    background: #F8F9FF;
    border-radius: 10px;
    border: 1px solid #E8EAF6;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.fmc-also-read-header {
    padding: 14px 20px;
    background: #EEF1FF;
    border-bottom: 1px solid #E8EAF6;
}
.fmc-also-read-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #3F51B5;
}
.fmc-also-read-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.fmc-also-read-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid #E8EAF6;
    transition: background 0.15s;
}
.fmc-also-read-item:last-child {
    border-bottom: none;
}
.fmc-also-read-item:hover {
    background: #EEF1FF;
}
.fmc-also-read-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.fmc-also-read-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fmc-also-read-text {
    flex: 1;
}
.fmc-also-read-text a {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fmc-also-read-text a:hover {
    color: #3F51B5;
}
.fmc-also-read-category {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================
   E-E-A-T Footer
   ========================= */
.fmc-eeat-footer {
    background: #1A1A2E;
    color: #ccc;
    padding: 50px 0 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin-top: 40px;
}
.fmc-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}
.fmc-footer-logo {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
}
.fmc-footer-tagline {
    color: #999;
    font-size: 14px;
    margin: 0 0 20px;
}
.fmc-footer-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #aaa;
    line-height: 1.5;
    margin-bottom: 20px;
}
.fmc-footer-address svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #FF6B35;
}
.fmc-social-links {
    display: flex;
    gap: 12px;
}
.fmc-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: background 0.2s, transform 0.2s;
}
.fmc-social-icon:hover {
    transform: translateY(-2px);
}
.fmc-social-instagram:hover { background: #E1306C; }
.fmc-social-twitter:hover { background: #1DA1F2; }
.fmc-social-facebook:hover { background: #4267B2; }
.fmc-social-linkedin:hover { background: #0077B5; }
.fmc-social-youtube:hover { background: #FF0000; }

.fmc-footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    position: relative;
    padding-bottom: 10px;
}
.fmc-footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #FF6B35;
}
.fmc-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.fmc-footer-col ul li {
    margin-bottom: 8px;
}
.fmc-footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.fmc-footer-col ul li a:hover {
    color: #FF6B35;
}
.fmc-cat-count {
    color: #666;
    font-size: 11px;
}
.fmc-footer-cat-list {
    columns: 2;
    column-gap: 16px;
}
.fmc-footer-bottom {
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}
.fmc-footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1024px) {
    .fmc-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fmc-footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .fmc-related-grid {
        grid-template-columns: 1fr;
    }
    .fmc-footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .fmc-important-links-table td {
        display: block;
        width: 100%;
        border-right: none;
    }
    .fmc-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .fmc-footer-cat-list {
        columns: 1;
    }
}
