/* Global Font Family - Koh Santepheap */
body,
h1, h2, h3, h4, h5, h6,
p, span, div, a, li, td, th,
.navbar, .card, .btn,
input, textarea, select, option,
.blog-content, .dashboard-content,
.form-group label, .form-control,
.table, .modal, .alert,
.content-title, .page-title,
.banner-content h2, .section-title {
    font-family: 'Koh Santepheap', serif !important;
}

/* Ensure font loads properly for all text elements - EXCEPT icons */
* {
    font-family: 'Koh Santepheap', serif !important;
}

/* Preserve FontAwesome font for icon elements - CRITICAL FIX */
i,
.fa,
.fas,
.far,
.fal,
.fab,
[class^="fa-"],
[class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", FontAwesome !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Double override for nested i tags inside icon containers */
.info-icon i,
.contact-info i,
.icon i,
.fa-icon i,
span[class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", FontAwesome !important;
}

/* ====================================
   INCREASED FONT SIZE FOR BODY TEXT ONLY
   ==================================== */

/* Base body text size increase */
body {
    font-size: 18px !important;
    line-height: 1.7 !important;
}

p {
    font-size: 18px !important;
    line-height: 1.7 !important;
}

/* List items */
li {
    font-size: 18px !important;
    line-height: 1.7 !important;
}

/* Blog content text */
.blog-content,
.post-content,
article {
    font-size: 18px !important;
    line-height: 1.8 !important;
}

.blog-excerpt {
    font-size: 16px !important;
}

/* Card text */
.card-text {
    font-size: 16px !important;
    line-height: 1.6 !important;
}

/* Table text */
table,
td {
    font-size: 16px !important;
}

.table td {
    padding: 12px 10px !important;
}

/* Small text elements */
small,
.small {
    font-size: 15px !important;
}

/* Modal body text */
.modal-body {
    font-size: 17px !important;
}

/* Responsive adjustments for body text */
@media (max-width: 768px) {
    body {
        font-size: 16px !important;
    }

    p {
        font-size: 16px !important;
    }

    li {
        font-size: 16px !important;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 15px !important;
    }

    p {
        font-size: 15px !important;
    }

    li {
        font-size: 15px !important;
    }
}

/* ====================================
   NEW NAVIGATION MENU STYLES
   ==================================== */

/* Custom styles for the menu icon */
.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-icon-line {
    width: 100%;
    height: 3px;
    background-color: #07294D;
    transition: all 0.3s ease;
    border-radius: 9999px;
}

/* Active state for the icon when menu is open */
.menu-icon.active .menu-icon-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-icon.active .menu-icon-line:nth-child(2) {
    opacity: 0;
}

.menu-icon.active .menu-icon-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu slide-in/out animation */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Header area styling */
.header-area {
    position: relative;
    width: 100%;
    z-index: 1000;
}

/* Header top section - normal positioning */
.header-top {
    background: #07294d;
    padding: 0.75rem 0;
    position: relative;
    z-index: 999;
}

/* Navigation section - normal positioning */
.navigation-section {
    position: relative;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1050;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Sticky dropdown navigation */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1060;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show sticky dropdown */
.sticky-nav.show {
    transform: translateY(0);
}

/* Navigation container */
.navigation-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    min-height: 70px;
}

/* Logo styling */
.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.header-logo:hover img {
    transform: scale(1.05);
}

/* Desktop menu */
.desktop-menu {
    display: none;
    flex-grow: 1;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
    }
    
    .menu-icon {
        display: none;
    }
}

.desktop-menu li a {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #07294D;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.desktop-menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #0c8b51, #07294D);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.desktop-menu li a:hover::before,
.desktop-menu li a.active::before {
    width: 100%;
}

.desktop-menu li a:hover,
.desktop-menu li a.active {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 41, 77, 0.3);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, #07294D 0%, #0a3d5c 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 5rem 1.5rem 1.5rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    list-style: none;
    margin: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none;
    }
}

.mobile-menu li {
    width: 100%;
}

.mobile-menu li a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.mobile-menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: width 0.3s ease;
    z-index: -1;
}

.mobile-menu li a:hover::before,
.mobile-menu li a.active::before {
    width: 100%;
}

.mobile-menu li a:hover,
.mobile-menu li a.active {
    transform: translateX(8px);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Header top wrapper styling moved above */

.header-top-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-top-left,
.header-top-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-meta,
.header-link {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-meta a,
.header-link a {
    font-size: 0.875rem;
    color: #8d8d8d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-meta a {
    color: white;
}

.header-meta a:hover {
    color: #8d8d8d;
}

.header-link a:hover,
.header-link a.active {
    color: white;
}

/* Remove body padding since we're using sticky positioning */
body {
    padding-top: 0;
}

/* Mobile overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modern hamburger icon effects */
.menu-icon:hover {
    transform: scale(1.1);
}

.menu-icon:active {
    transform: scale(0.95);
}

/* Remove old scroll effects - we'll use natural sticky behavior */

/* ====================================
   BEAUTIFUL SCROLL TO TOP BUTTON STYLES
   ==================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
    animation: pulseGlow 2s infinite alternate;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    animation: none;
}

.scroll-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #07294D 0%, #0c8b51 50%, #07294D 100%);
    background-size: 200% 200%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 32px rgba(7, 41, 77, 0.3),
        0 0 0 0 rgba(7, 41, 77, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gradientShift 3s ease infinite;
}

.scroll-to-top:hover .scroll-icon {
    box-shadow: 
        0 12px 48px rgba(7, 41, 77, 0.4),
        0 0 30px rgba(12, 139, 81, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    background-size: 300% 300%;
}

.scroll-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-to-top:hover .scroll-icon::before {
    opacity: 1;
    animation: rotate 2s linear infinite;
}

.scroll-icon i {
    color: white;
    font-size: 24px;
    font-weight: 900;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.scroll-to-top:hover .scroll-icon i {
    transform: translateY(-3px);
    font-size: 26px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Pulse glow animation */
@keyframes pulseGlow {
    0% {
        box-shadow: 
            0 8px 32px rgba(7, 41, 77, 0.3),
            0 0 0 0 rgba(7, 41, 77, 0.4);
    }
    100% {
        box-shadow: 
            0 8px 32px rgba(7, 41, 77, 0.3),
            0 0 0 15px rgba(7, 41, 77, 0);
    }
}

/* Gradient shift animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Rotate animation for the shine effect */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 25px;
        right: 25px;
    }
    
    .scroll-icon {
        width: 55px;
        height: 55px;
    }
    
    .scroll-icon i {
        font-size: 20px;
    }
    
    .scroll-to-top:hover .scroll-icon i {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-icon {
        width: 50px;
        height: 50px;
    }
    
    .scroll-icon i {
        font-size: 18px;
    }
    
    .scroll-to-top:hover .scroll-icon i {
        font-size: 20px;
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    body {
        padding-top: 0; /* No padding needed with sticky */
    }
    
    .header-top-wrapper {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .header-logo img {
        height: 40px;
    }
    
    .mobile-menu {
        width: 280px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 0; /* No padding needed with sticky */
    }
    
    .header-logo img {
        height: 35px;
    }
    
    .mobile-menu {
        width: 250px;
    }
    
    .navigation-container {
        padding: 0 0.5rem;
    }
}

/* ====================================
   PAGE BANNER HEIGHT FIXES
   ==================================== */

/* Override original banner styles to work with fixed header */
.page-banner {
    padding-top: 0 !important;
}

.banner-content {
    padding-top: 20px !important;
    padding-bottom: 30px !important;
}

/* Responsive banner adjustments */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .page-banner {
        padding-top: 0 !important;
    }
    
    .banner-content {
        padding-top: 15px !important;
        padding-bottom: 25px !important;
    }
}

@media (max-width: 767px) {
    .page-banner {
        padding-top: 0 !important;
    }
    
    .banner-content {
        padding-top: 10px !important;
        padding-bottom: 20px !important;
    }
}

@media (max-width: 576px) {
    .page-banner {
        padding-top: 0 !important;
    }
    
    .banner-content {
        padding-top: 5px !important;
        padding-bottom: 15px !important;
    }
}

/* Admin Panel Styles */
.navbar-brand img {
    max-width: 150px !important;
    height: auto !important;
}

.admin-wrapper,
.admin-wrapper *,
.admin-sidebar,
.admin-content,
.admin-header {
    font-family: 'Koh Santepheap', serif !important;
}

/* Blog image styles */
.blog-image {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 250px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.blog-image:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .blog-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .blog-image {
        height: 180px;
    }
}

/* ====================================
   MODERN BLOG SECTION STYLES
   ==================================== */

.modern-blog {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.blog-cards-row {
    display: flex;
    flex-wrap: wrap;
}

.blog-card-col {
    display: flex;
    margin-bottom: 30px;
}

.modern-blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.modern-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modern-blog-card.featured {
    border: 2px solid #07294D;
    transform: scale(1.02);
}

.modern-blog-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.blog-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.blog-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-blog-card:hover .blog-image-wrapper img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.blog-category span {
    background: linear-gradient(135deg, #07294D, #0c8b51);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-content-wrapper {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 13px;
}

.meta-item i {
    color: #07294D;
    font-size: 12px;
}

.modern-blog-card .blog-title {
    margin-bottom: 15px;
    line-height: 1.4;
}

.modern-blog-card .blog-title a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: color 0.3s ease;
}

.modern-blog-card .blog-title a:hover {
    color: #07294D;
}

.blog-excerpt {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.read-more-btn {
    color: #07294D;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: #0c8b51;
    gap: 12px;
}

.read-more-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

.blog-engagement {
    display: flex;
    align-items: center;
    gap: 15px;
}

.comments-count {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    font-size: 13px;
}

.comments-count i {
    color: #07294D;
    font-size: 12px;
}

.view-all-blogs-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #07294D, #0c8b51);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(7, 41, 77, 0.3);
}

.view-all-blogs-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(7, 41, 77, 0.4);
    color: white;
    text-decoration: none;
}

.view-all-blogs-btn i {
    transition: transform 0.3s ease;
}

.view-all-blogs-btn:hover i {
    transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modern-blog {
        padding: 60px 0;
    }
    
    .modern-blog-card.featured {
        transform: none;
    }
    
    .modern-blog-card.featured:hover {
        transform: translateY(-8px);
    }
    
    .blog-image-wrapper {
        height: 200px;
    }
    
    .blog-content-wrapper {
        padding: 20px;
    }
    
    .blog-meta {
        gap: 15px;
    }
    
    .blog-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .modern-blog {
        padding: 50px 0;
    }
    
    .blog-image-wrapper {
        height: 180px;
    }
    
    .blog-content-wrapper {
        padding: 15px;
    }
    
    .view-all-blogs-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ====================================
   MODERN COMMENTS SECTION STYLES
   ==================================== */

.modern-comments-section {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #07294D;
}

.comments-header {
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.comments-title {
    font-size: 28px;
    font-weight: 700;
    color: #07294D;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comments-subtitle {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

.no-comments {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-comments-icon {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-comments h4 {
    font-size: 24px;
    color: #495057;
    margin-bottom: 10px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modern-comment-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.modern-comment-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.comment-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #07294D, #0c8b51);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.author-name {
    font-size: 18px;
    font-weight: 600;
    color: #07294D;
    margin: 0;
}

.comment-date {
    font-size: 14px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-number {
    background: #e9ecef;
    color: #495057;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.comment-text {
    margin-bottom: 20px;
}

.comment-text p {
    color: #333;
    line-height: 1.6;
    margin: 0;
    font-size: 15px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    background: none;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 20px;
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #f8f9fa;
    border-color: #07294D;
    color: #07294D;
}

.like-btn:hover {
    background: #e8f5e8;
    border-color: #0c8b51;
    color: #0c8b51;
}

.action-btn.liked {
    background: #e8f5e8;
    border-color: #0c8b51;
    color: #0c8b51;
}

.action-btn.active {
    background: #e3f2fd;
    border-color: #07294D;
    color: #07294D;
}

.like-count {
    background: #0c8b51;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    margin-left: 4px;
}

/* Reply indicator styles */
.reply-indicator {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.reply-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #07294D;
}

.reply-info i {
    font-size: 16px;
}

.reply-info span {
    flex: 1;
    font-weight: 500;
}

.cancel-reply-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.cancel-reply-btn:hover {
    background: #d32f2f;
    transform: translateY(-1px);
}

/* Responsive design */
@media (max-width: 768px) {
    .modern-comments-section {
        padding: 20px;
        margin: 30px 0;
    }
    
    .comments-title {
        font-size: 24px;
        flex-direction: column;
        gap: 5px;
    }
    
    .modern-comment-card {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .avatar-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
        align-self: flex-start;
    }
    
    .comment-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .comment-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .modern-comments-section {
        padding: 15px;
    }
    
    .modern-comment-card {
        padding: 15px;
    }
    
    .action-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ====================================
   FEATURES SECTION FIXES
   ==================================== */

.features-wrapper {
    position: relative;
}

.features-image {
    position: relative;
    z-index: 1;
}

.features-mask {
    z-index: 2 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50px !important;
    transform: translateY(-50%) !important;
}

@media (max-width: 991px) {
    .features-mask {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 50px auto 0 !important;
    }
}



/* ====================================
   ADMIN SETTINGS COMPONENT STYLES
   ==================================== */

/* Settings Tabs */
.settings-tabs .nav-tabs {
    border: none;
    margin-bottom: 0;
}

.settings-tabs .nav-link {
    border: 2px solid #e9ecef !important;
    border-radius: 6px !important;
    margin: 3px !important;
    padding: 10px 15px !important;
    background: #fff !important;
    color: #495057 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.settings-tabs .nav-link:hover {
    border-color: #007bff !important;
    background: #f8f9fa !important;
    color: #007bff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,123,255,0.15);
}

.settings-tabs .nav-link.active {
    border-color: #007bff !important;
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.settings-tabs .nav-link i {
    margin-right: 8px;
    font-size: 14px;
}

/* Settings Content */
.settings-content {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    min-height: 400px;
}

.settings-section {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.settings-section h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
    position: relative;
}

.settings-section h4:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

/* Form Groups */
.settings-section .form-group {
    margin-bottom: 20px;
}

.settings-section .form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.settings-section .form-control {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.settings-section .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    background: #fff;
}

.settings-section .form-check {
    margin: 12px 0;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.settings-section .form-check:hover {
    background: #f8f9fa;
}

.settings-section .form-check-input {
    margin-top: 5px;
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #007bff;
}

/* Save Buttons */
.settings-content .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
    transition: all 0.3s ease;
}

.settings-content .btn-success:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.4);
}

/* Responsive settings tabs */
@media (max-width: 768px) {
    .settings-tabs .nav-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .settings-tabs .nav-link {
        width: 100%;
        justify-content: center;
        margin: 2px 0 !important;
    }
    
    .settings-content {
        margin-top: 20px;
        padding: 20px !important;
    }
}

/* ====================================
   NEW TAILWIND-STYLE GO TO TOP BUTTON
   ==================================== */

/* Tailwind utility classes for the new go-to-top button */
.fixed {
    position: fixed;
}

.bottom-5 {
    bottom: 1.25rem; /* 20px */
}

.right-5 {
    right: 1.25rem; /* 20px */
}

.z-50 {
    z-index: 50;
}

.p-3 {
    padding: 0.75rem; /* 12px */
}

.bg-blue-600 {
    background-color: #2563eb;
}

.text-white {
    color: #ffffff;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hover\:bg-blue-700:hover {
    background-color: #1d4ed8;
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-4:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.5);
}

.focus\:ring-blue-300:focus {
    box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.5);
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1;
}

.translate-y-0 {
    transform: translateY(0);
}

.translate-y-4 {
    transform: translateY(1rem); /* 16px */
}

.h-6 {
    height: 1.5rem; /* 24px */
}

.w-6 {
    width: 1.5rem; /* 24px */
}

/* Enhanced button with smooth transitions and modern styling */
#toTopBtn {
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#toTopBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -3px rgba(37, 99, 235, 0.3), 0 10px 10px -2px rgba(37, 99, 235, 0.1);
}

#toTopBtn svg {
    transition: transform 0.2s ease;
}

#toTopBtn:hover svg {
    transform: translateY(-1px);
}

/* ====================================
   HEART ICON FALLBACK
   ==================================== */

/* Heart icon with fallback */
.heart-icon i {
    position: relative;
}

.heart-icon i.fas.fa-heart::before {
    content: "\f004";
}

/* Fallback to emoji if Font Awesome fails */
.heart-icon i.fas.fa-heart::after {
    content: "❤️";
    position: absolute;
    left: 0;
    top: 0;
    font-family: Arial, sans-serif;
    font-style: normal;
    font-weight: normal;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show emoji fallback if Font Awesome content is empty */
.heart-icon i.fas.fa-heart:empty::after,
.heart-icon i.fas.fa-heart[aria-hidden="true"]:not([class*="fa-"])::after {
    opacity: 1;
}

/* ====================================
   FOOTER BG_COVER HEIGHT FIX
   ==================================== */

/* Override bg_cover for footer to prevent height collapse */
.footer-area.bg_cover {
    height: auto !important;
    min-height: auto !important;
    padding: 60px 0 0 !important;
}

/* Ensure all bg_cover elements have proper minimum heights */
.bg_cover {
    min-height: 100px;
}

/* Page banners should maintain their set heights */
.page-banner-bg.bg_cover {
    height: 200px !important;
    min-height: 200px !important;
}

/* ====================================
   CRITICAL FONTAWESOME ICON FIX - OVERRIDE KHANDECORATION FONT
   ==================================== */

/* Override Koh Santepheap font for ALL icon elements */
i[class*="fa-"],
i.fas,
i.far,
i.fal,
i.fab,
.fas,
.far,
.fal,
.fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", FontAwesome, "Font Awesome 5 Free" !important;
    font-weight: inherit !important;
    font-size: inherit !important;
    font-style: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    display: inline !important;
}

/* Ensure proper font weight for icon weights */
i.fas, .fas {
    font-weight: 900 !important;
}

i.far, .far {
    font-weight: 400 !important;
}

i.fal, .fal {
    font-weight: 300 !important;
}

i.fab, .fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* ====================================
   RESPONSIVE TAGLINE
   ==================================== */

.tagline-responsive {
    white-space: nowrap !important;
}

@media (max-width: 768px) {
    .tagline-responsive {
        white-space: normal !important;
    }
}
