@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

html {
    scroll-behavior: smooth !important;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
.header-title,
.header-subtitle,
.header-tagline,
.menu-links .item .item-link,
p,
a,
span,
li,
div {
    font-family: 'Outfit', sans-serif !important;
}

body {
    background-color: #FFF9F0 !important;
    overflow-x: visible !important;
    color: #333 !important;
}

/* Override Theme Defaults for Orange Cream */
.header,
.footer,
.article-first,
.article-head,
.article-box {
    background-color: #FFF9F0 !important;
    color: #333 !important;
}

.header-title,
.header-subtitle,
.header-tagline,
.header-box {
    color: #333 !important;
}

/* Header Action Buttons (GitHub, LinkedIn, Resume) */
.menu-links .list-reset {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.menu-links .item {
    list-style: none !important;
    margin: 0 !important;
    width: auto !important;
}

.menu-links .item .item-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: #FFFDF8;
    border: 1px solid #f58506;
    color: #f58506 !important;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.menu-links .item .item-link i {
    color: inherit !important;
    margin-right: 6px;
    font-size: 1.3em;
}

.menu-links .item .item-link:hover {
    background-color: #f58506;
    color: #fff !important;
}

/* Colored Icons Global */
i.icon,
i.ion,
.sidebar-list a i {
    color: #f58506 !important;
    font-size: 1.3em;
    vertical-align: middle;
}

.sidebar-list a i {
    margin-right: 10px;
}

.sidebar-list a:hover i,
.sidebar-list a.active i {
    color: #f58506 !important;
}

.header-subtitle {
    border-bottom: 2px solid #f58506 !important;
}

.footer-top .logo-text,
.footer-bottom .copyright p,
.footer-bottom .copyright p a,
.footer-bottom .footer-social ul li a {
    color: #555 !important;
}

.footer-bottom .copyright p a:hover,
.footer-bottom .footer-social ul li a:hover {
    color: #f58506 !important;
}

.article-first .article-content-first .article-title a,
.article .article-content .article-title a {
    color: #333 !important;
}

.article-first .article-content-first .article-title a:hover,
.article .article-content .article-title a:hover {
    color: #f58506 !important;
}

.article-first .article-content-first .article-excerpt,
.article .article-content .article-excerpt {
    color: #555 !important;
}

.article-first .article-content-first .article-date .date,
.article .article-content .article-info .article-date {
    color: #999 !important;
}

/* Sidebar Styling */
.sidebar {
    position: relative;
}

.sidebar-content {
    background: #FFFDF8;
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 20px;
    border: 1px solid #e0e0e0;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px 0;
    padding-bottom: 5px;
}

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

.sidebar-list li {
    margin-bottom: 8px;
}

.sidebar-list a {
    color: #555;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.sidebar-list a:hover {
    color: #f58506;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transform: translateX(4px);
}

.sidebar-list a.active {
    color: #f58506;
    background-color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #f58506;
}

/* Project Cards Styling */
.projects-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0;
}

.project-card {
    background: #FFFDF8;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #f58506;
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 4px 12px rgba(245, 133, 6, 0.15);
    transform: translateY(-2px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.project-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.project-header h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-header h3 a:hover {
    color: #f58506;
}

.project-category {
    background: #f58506;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.project-description {
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tech-tag {
    background: #e0e0e0;
    color: #333;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.project-date {
    color: #999;
    font-size: 14px;
    margin: 10px 0 0 0;
}

/* Experience Page Styling */
.experience-item {
    background: #FFFDF8;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #f58506;
    border-radius: 4px;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.experience-header h3 {
    margin: 0;
    color: #333;
    flex: 1;
}

.duration {
    color: #f58506;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    margin-left: 20px;
}

.experience-item .company {
    color: #f58506;
    font-weight: 500;
    margin: 0 0 10px 0;
}

.experience-item p {
    margin: 5px 0;
    line-height: 1.6;
    color: #555;
}

.highlights {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.highlights li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: #555;
}

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

/* Skills Grid Styling */
.skills-section {
    margin: 30px 0;
}

.skills-section h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f58506;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.skill-category {
    background: #FFFDF8;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.skill-category:hover {
    box-shadow: 0 4px 12px rgba(245, 133, 6, 0.15);
    transform: translateY(-2px);
}

.skill-category h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.skills-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-badge {
    background-color: #fff;
    color: #f58506;
    border: 1px solid #f58506;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.skill-badge:hover {
    background-color: #f58506;
    color: #fff !important;
}

/* Tags and Tools Styling */
.tools-list,
.domains-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.tool-tag,
.domain-tag {
    background: #e8e8e8;
    color: #333;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #d0d0d0;
    transition: all 0.3s ease;
}

.tool-tag:hover,
.domain-tag:hover {
    background: #f58506;
    color: white;
    border-color: #f58506;
}

/* Certification Styling */
.certification-item {
    background: #FFFDF8;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #f58506;
}

.certification-item h3 {
    margin: 0 0 8px 0;
    color: #333;
}

.certification-item .issuer {
    color: #f58506;
    font-weight: 500;
    margin: 0 0 5px 0;
}

.certification-item .date {
    color: #999;
    font-size: 14px;
    margin: 0 0 10px 0;
}

.certification-item p {
    margin: 5px 0;
    line-height: 1.6;
    color: #555;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .sidebar {
        margin-bottom: 30px;
    }

    .sidebar-content {
        position: relative;
        top: 0;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .duration {
        margin-left: 0;
        margin-top: 5px;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-category {
        margin-top: 8px;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-top: 15px;
}

.btn-primary {
    background-color: #f58506;
    color: #fff !important;
    border: 1px solid #f58506;
}

.btn-primary:hover {
    background-color: #d17005;
    color: #fff !important;
}

.btn-secondary {
    background-color: transparent;
    color: #f58506 !important;
    border: 1px solid #f58506;
}

.btn-secondary:hover {
    background-color: #f58506;
    color: #fff !important;
}

/* Table Styling - Maximum Specificity Override */
.container .col table,
.container .col-t-9 table,
.article-content table,
.post-content table,
table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 25px 0 !important;
    font-size: 15px !important;
    background-color: #FFFDF8 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e0e0e0 !important;
}

.container .col table thead tr,
.container .col table thead th,
table thead tr,
table thead th {
    background-color: #f58506 !important;
    color: #ffffff !important;
}

table th {
    background-color: #f58506 !important;
    color: #ffffff !important;
    padding: 12px 15px !important;
    border: 1px solid #e0e0e0 !important;
    font-weight: 600 !important;
    text-align: left !important;
}

.container .col table td,
table td {
    padding: 12px 15px !important;
    border: 1px solid #e0e0e0 !important;
    color: #333 !important;
    background-color: #FFFDF8 !important;
}

table tbody tr {
    border-bottom: 1px solid #eeeeee !important;
}

.container .col table tbody tr:nth-of-type(even) td,
table tbody tr:nth-of-type(even) td {
    background-color: #f9f9f9 !important;
}

.container .col table tbody tr:hover td,
table tbody tr:hover td {
    background-color: #fff1e0 !important;
}

table tbody tr:last-of-type {
    border-bottom: 2px solid #f58506 !important;
}

/* Responsive Table Wrapper */
@media screen and (max-width: 600px) {
    .container .col table,
    table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }
}