:root {
    --primary-color: #fffb04;
    --primary-dark: #e6e204;
    --secondary-color: #1a1a1a;
    --bg-light: #ffffff;
    --bg-gradient: linear-gradient(135deg, #fffb04 0%, #ffeb3b 100%);
    --text-dark: #212529;
    --border-radius: 1.5rem;
    --soft-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fdfdfd;
    color: var(--text-dark);
}

/* Elegant Background for specific sections or body */
.bg-saintek-gradient {
    background: var(--bg-gradient);
}

.text-primary-color {
    color: var(--primary-color) !important;
}

.bg-primary-color {
    background-color: var(--primary-color) !important;
}

.btn-primary-color {
    background: var(--bg-gradient);
    color: #000;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 251, 4, 0.3);
    transition: all 0.3s ease;
}

.btn-primary-color:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 251, 4, 0.4);
    color: #000;
}

/* Rounded Utilities */
.rounded-4 {
    border-radius: var(--border-radius) !important;
}

.rounded-bottom-4 {
    border-bottom-left-radius: var(--border-radius) !important;
    border-bottom-right-radius: var(--border-radius) !important;
}

/* Header & Search */
.site-header {
    border-bottom: 1px solid rgba(0,0,0,0.03);
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Custom Logo Styling */
.custom-logo {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.site-branding:hover .custom-logo {
    transform: scale(1.05);
}

.site-title-wrapper {
    line-height: 1.2;
}

.site-description {
    font-size: 0.75rem;
    opacity: 0.8;
}

.header-search .form-control {
    border-radius: 50px;
    padding-left: 15px;
    background-color: #f0f0f0 !important;
}

/* Navigation Menu */
.main-navigation .nav-pills .nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.main-navigation .nav-pills .nav-link:hover,
.main-navigation .nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: #000;
}

/* Dropdown Submenu */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 15px;
    padding: 10px;
    margin-top: 10px !important;
}

.dropdown-item {
    border-radius: 10px;
    padding: 8px 15px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: #000;
}

/* Translate Widget Desktop */
#google_translate_element {
    min-width: 150px;
}

.goog-te-gadget-simple {
    background-color: transparent !important;
    border: 1px solid #eee !important;
    padding: 5px 10px !important;
    border-radius: 50px !important;
    font-family: 'Poppins', sans-serif !important;
}

.goog-te-gadget-icon {
    display: none !important;
}

.goog-te-menu-value span {
    color: var(--secondary-color) !important;
    font-size: 0.85rem !important;
}

/* Hide Google Translate Banner */
body {
    top: 0 !important;
}
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}
.goog-logo-link {
    display: none !important;
}
.goog-te-gadget {
    color: transparent !important;
}

/* Mobile Actions */
.header-actions .btn-link {
    text-decoration: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f9fa;
}

.header-actions .btn-link:hover {
    background: #e9ecef;
}

/* Footer Quick Links */
.footer-quick-links li {
    margin-bottom: 12px;
}

.footer-quick-links a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 4px 0;
}

.footer-quick-links a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    font-size: 0.8rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.footer-quick-links a:hover {
    color: var(--primary-color) !important;
    padding-left: 8px;
}

.footer-quick-links a:hover::before {
    transform: translateX(3px);
}

/* Mobile Accordion Menu */
.mobile-accordion-menu .nav-item {
    border-bottom: 1px solid #f0f0f0 !important;
}

.mobile-accordion-menu .nav-link {
    font-weight: 500;
    font-size: 1rem;
    padding-left: 20px !important;
}

.mobile-accordion-menu .submenu {
    list-style: none;
    background-color: #f9f9f9;
}

.mobile-accordion-menu .submenu .nav-link {
    font-size: 0.9rem;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    color: #555 !important;
}

.mobile-accordion-menu .btn-link {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.mobile-accordion-menu .btn-link[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.offcanvas-header {
    padding: 1.5rem;
}

.site-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.site-footer .social-links a:hover {
    background: var(--primary-color);
    color: #000 !important;
    transform: translateY(-3px);
}

.site-footer hr {
    opacity: 0.1;
}

/* Hero Carousel - Elegant Overlays */
.carousel-inner {
    max-height: 550px;
}

.carousel-item {
    position: relative;
}

/* Overlay gradient for readability without blocking */
.carousel-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
}

.carousel-caption {
    z-index: 2;
    bottom: 15%;
}

.carousel-caption h2 {
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.carousel-caption p {
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.5;
}

.carousel-indicators .active {
    opacity: 1;
    width: 30px;
    border-radius: 10px;
}

/* Featured Services Grid - Fix Icon Visibility */
.service-card .icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: var(--secondary-color) !important; /* Dark background for yellow icons */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-card .icon-wrapper i {
    color: var(--primary-color) !important; /* Yellow icon on dark background */
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: var(--bg-gradient) !important;
}

.service-card:hover .icon-wrapper i {
    color: #000 !important; /* Dark icon on yellow background when hovered */
}

.service-card span {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Cards & Sections */
.section-title {
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 4px;
    background: var(--bg-gradient);
    border-radius: 2px;
}

.card {
    border: none !important;
    box-shadow: var(--soft-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12) !important;
}

/* Latest News Thumbnail - Fix Aspect Ratio */
.latest-news .card {
    display: flex;
    flex-direction: column;
}

.latest-news .card-img-top {
    height: 200px; /* Fixed height for consistency */
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.latest-news .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.latest-news .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3rem; /* Limit height for uniform cards */
}

/* Stats Section with Gradient */
.stats-section {
    background: var(--secondary-color) !important;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    opacity: 0.05;
    border-radius: 50%;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    height: 75px;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0,0,0,0.05) !important;
    border-radius: 25px 25px 0 0;
}

.mobile-bottom-nav .nav-item {
    color: #888 !important;
}

.mobile-bottom-nav .nav-item.active {
    color: #000 !important;
    font-weight: 700;
}

.mobile-bottom-nav .nav-item.active i {
    color: var(--primary-color);
    transform: translateY(-5px);
    text-shadow: 0 0 10px rgba(255, 251, 4, 0.5);
}

/* Google Translate Widget */
.translate-widget {
    position: relative;
}

.translate-widget .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.translate-widget .dropdown-menu {
    min-width: auto;
    font-size: 0.875rem;
}

.translate-widget .dropdown-item {
    padding: 0.5rem 1rem;
}

.translate-widget .dropdown-item:hover {
    background-color: var(--primary-color);
    color: #000;
}

/* Hide Google Translate default widget */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Adjustments for Mobile App Look */
@media (max-width: 767.98px) {
    .carousel-inner {
        height: 300px;
    }
    
    .carousel-item {
        height: 300px !important;
    }
    
    .carousel-caption h2 {
        font-size: 1.75rem !important;
    }
    
    .service-card .icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .translate-widget {
        margin-left: auto;
        margin-right: 0.5rem;
    }
    
    .translate-widget .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }

    /* Adjusted Thumbnail for Mobile */
    .latest-news .card-img-top {
        height: 180px;
    }
}

/* Social Share Styling */
.social-share .share-btn {
    width: 35px;
    height: 35px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.9rem;
}

.social-share .share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15) !important;
}

.facebook-bg { background-color: #3b5998; }
.twitter-bg { background-color: #000000; } /* X Branding */
.whatsapp-bg { background-color: #25d366; }
.copy-bg { background-color: #6c757d; }

.social-share .share-btn i {
    transition: transform 0.3s ease;
}

.social-share .share-btn:active {
    transform: scale(0.95);
}

/* Random Animation for Single Post Carousel */
.carousel-item.random-anim-1.active img {
    animation: zoomIn 10s ease infinite alternate;
}

.carousel-item.random-anim-2.active img {
    animation: panRight 15s ease-in-out infinite alternate;
}

.carousel-item.random-anim-3.active img {
    animation: panLeft 15s ease-in-out infinite alternate;
}

@keyframes zoomIn {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

@keyframes panRight {
    from { transform: scale(1.1) translateX(-5%); }
    to { transform: scale(1.1) translateX(5%); }
}

@keyframes panLeft {
    from { transform: scale(1.1) translateX(5%); }
    to { transform: scale(1.1) translateX(-5%); }
}

/* Ensure indicators are visible on single carousel */
#singlePostCarousel .carousel-indicators [data-bs-target] {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

#singlePostCarousel .carousel-control-prev-icon,
#singlePostCarousel .carousel-control-next-icon {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Comment Area Styling */
.comments-area .comment-list {
    margin-top: 2rem;
}

.comment-body {
    transition: all 0.3s ease;
}

.comment-body:hover {
    background-color: #f8f9fa !important;
}

.comment-author-avatar img {
    border: 3px solid #fff;
}

.comment-meta .author-info h6 {
    font-size: 0.95rem;
}

.comment-text {
    font-size: 0.875rem;
    line-height: 1.6;
}

.reply-link .comment-reply-link {
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.reply-link .comment-reply-link:hover {
    background-color: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

/* Comment Form Styling */
.comment-form .form-control {
    border: 1px solid #eee;
    padding: 0.75rem 1rem;
}

.comment-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 251, 4, 0.1);
}

/* Math Captcha Styling */
.input-group-text {
    font-size: 0.9rem;
    color: #444;
}

.rounded-start-4 {
    border-top-left-radius: var(--border-radius) !important;
    border-bottom-left-radius: var(--border-radius) !important;
}

.rounded-end-4 {
    border-top-right-radius: var(--border-radius) !important;
    border-bottom-right-radius: var(--border-radius) !important;
}
