:root {
    --somind-primary: #ff8040;
    --somind-primary-dark: #e66c2c;
    --somind-primary-light: #ffaa7a;
    --somind-dark: #1a1a1a;
    --somind-grey: #f5f5f5;
    --somind-text: #333333;
}

/* ---- Primary Color Override ---- */
.text-theme,
.text-primary,
a.text-theme:hover {
    color: var(--somind-primary) !important;
}

.bg-theme,
.background-theme,
.btn-primary,
.btn-theme,
.post-meta-category a,
.pagination .page-item.active .page-link,
.widget .tags a:hover,
#header .header-extras .p-dropdown > a:hover,
.icon-box.effect .icon a,
.icon-box.effect.small:hover .icon a,
.carousel .owl-dots .owl-dot.active span {
    background-color: var(--somind-primary) !important;
}

.btn-primary:hover,
.btn-theme:hover {
    background-color: var(--somind-primary-dark) !important;
    border-color: var(--somind-primary-dark) !important;
}

.btn-primary,
.btn-theme {
    border-color: var(--somind-primary) !important;
}

.btn-outline-primary,
.btn-outline.btn-theme {
    color: var(--somind-primary) !important;
    border-color: var(--somind-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline.btn-theme:hover {
    background-color: var(--somind-primary) !important;
    color: #fff !important;
}

/* Progress Bar */
.p-progress-bar-container.color .p-progress-bar > span {
    background-color: var(--somind-primary) !important;
}

/* Icon Box */
.icon-box.effect .icon a {
    background-color: var(--somind-primary) !important;
}

.icon-box.effect.small .icon i {
    color: var(--somind-primary);
}

.icon-box.effect.small:hover .icon i {
    color: #fff;
}

/* Separator */
.seperator i {
    color: var(--somind-primary);
}

/* Counter */
.counter span {
    color: var(--somind-primary);
}

/* Topbar */
#topbar {
    background-color: var(--somind-primary);
}

#topbar.topbar-transparent.dark {
    background-color: rgba(255, 128, 64, 0.95);
}

/* Header */
#header #mainMenu nav > ul > li > a:hover,
#header #mainMenu nav > ul > li.current > a {
    color: var(--somind-primary) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.hero-section .bg-overlay {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(255, 128, 64, 0.6) 100%);
}

/* President Section */
.president-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.president-image {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--somind-primary);
    box-shadow: 0 10px 40px rgba(255, 128, 64, 0.3);
}

.president-placeholder {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 5px solid var(--somind-primary);
    box-shadow: 0 10px 40px rgba(255, 128, 64, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.president-placeholder i {
    font-size: 80px;
    color: var(--somind-primary);
}

/* Services Section */
.service-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255, 128, 64, 0.2);
}

.service-card .icon-box .icon {
    background: linear-gradient(135deg, var(--somind-primary) 0%, var(--somind-primary-dark) 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-card .icon-box .icon i {
    color: #fff;
    font-size: 32px;
}

/* Project Cards */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 128, 64, 0.25);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #fff;
}

.project-overlay h4 {
    color: #fff;
    margin-bottom: 5px;
}

.project-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Client Logos */
.client-logo {
    padding: 20px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Testimonials */
.testimonial-item {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.attestation-item {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial-item:before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 40px;
    color: var(--somind-primary);
    opacity: 0.2;
}

/* Page Title */
.page-title-section {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(255, 128, 64, 0.7) 100%);
    padding: 100px 0;
}

.page-title-section h1 {
    color: #fff;
    font-weight: 700;
}

.page-title-section .breadcrumb {
    background: transparent;
}

.page-title-section .breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.page-title-section .breadcrumb .active {
    color: var(--somind-primary);
}

/* Article Cards */
.article-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 10px 40px rgba(255, 128, 64, 0.15);
}

.article-card .post-image img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

/* About Page */
.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 30px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--somind-primary);
    border-radius: 50%;
}

.timeline-item:after {
    content: '';
    position: absolute;
    left: 9px;
    top: 25px;
    width: 2px;
    height: calc(100% + 10px);
    background: var(--somind-primary);
    opacity: 0.3;
}

.timeline-item:last-child:after {
    display: none;
}

/* Footer */
#footer {
    background: var(--somind-dark);
}

#footer .footer-content {
    background: var(--somind-dark);
}

#footer .copyright-content {
    background: rgba(0, 0, 0, 0.3);
}

#footer a:hover {
    color: var(--somind-primary) !important;
}

/* Scroll Top */
#scrollTop {
    background-color: var(--somind-primary) !important;
}

#scrollTop:hover {
    background-color: var(--somind-primary-dark) !important;
}

/* Form Elements */
.form-control:focus {
    border-color: var(--somind-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 128, 64, 0.25);
}

/* Links */
a {
    color: var(--somind-primary);
}

a:hover {
    color: var(--somind-primary-dark);
}

/* Selection */
::selection {
    background: var(--somind-primary);
    color: #fff;
}

::-moz-selection {
    background: var(--somind-primary);
    color: #fff;
}

/* Carousel Owl Dots */
.carousel .owl-dots .owl-dot span {
    border-color: var(--somind-primary);
}

/* Widget Tags */
.widget .tags a:hover {
    background-color: var(--somind-primary) !important;
    border-color: var(--somind-primary) !important;
}

/* Info Boxes */
.info-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.info-box i {
    font-size: 40px;
    color: var(--somind-primary);
    margin-bottom: 15px;
}

/* Logo Styling */
#logo .logo-somind {
    font-weight: 700;
    font-size: 28px;
    color: var(--somind-primary);
    text-decoration: none;
}

#logo .logo-somind span {
    color: #fff;
}

#header.dark #logo .logo-somind span,
#header:not([data-transparent="true"]) #logo .logo-somind span {
    color: var(--somind-dark);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .president-image,
    .president-placeholder {
        width: 200px;
        height: 200px;
    }
    
    /* Article card tablet */
    .article-card .post-image img {
        height: 200px;
    }
    
    /* Testimonial tablet */
    .testimonial-item,
    .attestation-item {
        padding: 30px;
    }
    
    /* Info box tablet */
    .info-box {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    /* Service card tablet */
    .service-card {
        margin-bottom: 20px;
    }
    
    .service-card .icon-box .icon {
        width: 70px;
        height: 70px;
    }
    
    .service-card .icon-box .icon i {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .president-image,
    .president-placeholder {
        width: 150px;
        height: 150px;
    }
    
    .president-placeholder i {
        font-size: 50px;
    }
    
    /* Article card mobile */
    .article-card {
        margin-bottom: 20px;
    }
    
    .article-card .post-image img {
        height: 180px;
    }
    
    /* Timeline mobile */
    .timeline-item {
        padding-left: 30px;
        margin-bottom: 25px;
    }
    
    .timeline-item:before {
        width: 16px;
        height: 16px;
    }
    
    .timeline-item:after {
        left: 7px;
        top: 20px;
    }
    
    /* Project cards mobile */
    .project-card img {
        height: 200px;
    }
    
    .project-overlay {
        padding: 20px 15px;
    }
    
    .project-overlay h4 {
        font-size: 1rem;
    }
    
    .project-overlay p {
        font-size: 12px;
    }
    
    /* Testimonial mobile */
    .testimonial-item,
    .attestation-item {
        padding: 25px 20px;
    }
    
    .testimonial-item:before {
        font-size: 30px;
        top: 15px;
        left: 15px;
    }
    
    /* Info box mobile */
    .info-box {
        padding: 20px 15px;
    }
    
    .info-box i {
        font-size: 32px;
        margin-bottom: 10px;
    }
    
    .info-box h5 {
        font-size: 0.95rem;
    }
    
    /* Service card mobile */
    .service-card .icon-box .icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .service-card .icon-box .icon i {
        font-size: 24px;
    }
    
    /* Page title mobile */
    .page-title-section {
        padding: 70px 0;
    }
    
    .page-title-section h1 {
        font-size: 1.5rem;
    }
    
    /* Stats counter mobile */
    .stat-counter {
        padding: 20px 15px;
    }
    
    .stat-counter .counter {
        font-size: 36px;
    }
    
    .stat-counter p {
        font-size: 12px;
    }
    
    /* Industrial icon mobile */
    .industrial-icon {
        width: 55px;
        height: 55px;
    }
    
    .industrial-icon i {
        font-size: 24px;
    }
    
    /* Feature list mobile */
    .feature-list li {
        padding: 8px 0;
        font-size: 0.9rem;
    }
    
    .feature-list li i {
        font-size: 16px;
        margin-right: 10px;
    }
    
    /* Map container mobile */
    .map-container iframe {
        height: 280px;
    }
    
    /* Logo mobile */
    #logo .logo-somind {
        font-size: 24px;
    }
}

@media (max-width: 575px) {
    .president-image,
    .president-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .president-placeholder i {
        font-size: 40px;
    }
    
    /* Article card extra small */
    .article-card .post-image img {
        height: 150px;
    }
    
    /* Project cards extra small */
    .project-card img {
        height: 160px;
    }
    
    .project-overlay {
        padding: 15px 10px;
    }
    
    .project-overlay h4 {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }
    
    .project-overlay p {
        font-size: 11px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Info box extra small */
    .info-box {
        padding: 15px 10px;
    }
    
    .info-box i {
        font-size: 28px;
    }
    
    /* Timeline extra small */
    .timeline-item {
        padding-left: 25px;
    }
    
    .timeline-item:before {
        width: 14px;
        height: 14px;
    }
    
    .timeline-item:after {
        left: 6px;
    }
    
    .timeline-item h5 {
        font-size: 0.95rem;
    }
    
    .timeline-item p {
        font-size: 0.85rem;
    }
    
    /* Stats counter extra small */
    .stat-counter .counter {
        font-size: 28px;
    }
    
    .stat-counter p {
        font-size: 11px;
        letter-spacing: 0;
    }
    
    /* Service card extra small */
    .service-card .icon-box .icon {
        width: 50px;
        height: 50px;
    }
    
    .service-card .icon-box .icon i {
        font-size: 20px;
    }
    
    /* Page title extra small */
    .page-title-section {
        padding: 50px 0;
    }
    
    .page-title-section h1 {
        font-size: 1.25rem;
    }
    
    /* Map container extra small */
    .map-container iframe {
        height: 220px;
    }
    
    /* Logo extra small */
    #logo .logo-somind {
        font-size: 20px;
    }
}

/* Industrial Theme Elements */
.industrial-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--somind-primary) 0%, var(--somind-primary-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.industrial-icon i {
    font-size: 30px;
    color: #fff;
}

/* Stats Counter */
.stat-counter {
    text-align: center;
    padding: 30px;
}

.stat-counter .counter {
    font-size: 48px;
    font-weight: 700;
    color: var(--somind-primary);
}

.stat-counter p {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* Feature List */
.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    color: var(--somind-primary);
    margin-right: 15px;
    font-size: 18px;
}

/* Navigation Active State */
#mainMenu nav > ul > li.active > a {
    color: var(--somind-primary) !important;
}

/* Map Container */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}
