/* ========================================
   HOME PAGE STYLES
   ======================================== */

/* Features Section */
.features-section {
    position: relative;
    overflow: hidden;
}

.feature-card {
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(78, 149, 37, 0.1) !important;
    border-color: rgba(78, 149, 37, 0.2);
}

.feature-card .feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: rgba(78, 149, 37, 0.15) !important;
}

.feature-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(78, 149, 37, 0.05) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 0;
}

.feature-card:hover .feature-hover-overlay {
    opacity: 1;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--palmiye-primary, #4e9525) !important;
    margin: 0 auto;
}

/* Counter Animation */
.counter-number {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
}

/* Responsive Adjustments for Features */
@media (max-width: 768px) {
    .features-section {
        padding: 3rem 0;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
    
    .counter-item {
        margin-bottom: 30px;
    }
}

/* ========================================
   VIDEO SHOWCASE SECTION
   ======================================== */

.video-showcase-section {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
    padding: 100px 0; /* Increased padding for wider feel */
}

.video-wrapper {
    position: relative;
    height: 400px; /* Reduced height for better mobile */
    overflow: hidden;
    background: #000;
    border-radius: 15px; /* Added rounded corners */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); /* Softer shadow */
}

.showcase-video,
.showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-wrapper:hover .showcase-video,
.video-wrapper:hover .showcase-image {
    transform: scale(1.05);
}

/* Video Play Button Overlay */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--palmiye-primary);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.play-btn:hover {
    transform: scale(1.1);
    background: white;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

/* Video Controls Overlay */
.video-controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px 30px 30px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.play-pause-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--palmiye-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.play-pause-btn:hover {
    transform: scale(1.1);
    background: white;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.video-info {
    text-align: right;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-wrapper:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.overlay-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--palmiye-primary);
}

.overlay-content span {
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-content {
    height: 400px; /* Match video wrapper height */
    display: flex;
    align-items: center;
    padding: 0 60px; /* Reduced padding for more content space */
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.content-wrapper {
    width: 100%;
    padding: 0; /* Removed horizontal padding for more space */
}

.video-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.25rem; /* Further reduced font-size for better fit */
    font-weight: 700;
    color: var(--palmiye-dark);
    margin-bottom: 1.25rem;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.section-description {
    font-size: 1rem; /* Further reduced font-size for better fit */
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.section-description h1,
.section-description h2,
.section-description h3,
.section-description h4,
.section-description h5,
.section-description h6 {
    color: var(--palmiye-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-description p {
    margin-bottom: 1rem;
}

.section-description ul,
.section-description ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.section-description li {
    margin-bottom: 0.5rem;
}

.feature-list {
    margin-bottom: 1.5rem; /* Reduced margin */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem; /* Further reduced gap */
}

.feature-item {
    display: flex;
    align-items: center;
    color: var(--palmiye-dark);
    padding: 0.5rem; /* Further reduced padding */
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px; /* Smaller border radius */
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: white;
}

.feature-item i {
    color: var(--palmiye-primary);
    margin-right: 0.75rem; /* Reduced margin */
    font-size: 1.25rem; /* Smaller icon */
    flex-shrink: 0;
}

.feature-item span {
    font-size: 0.9rem; /* Smaller text */
    font-weight: 500;
    line-height: 1.3; /* Tighter line height */
}

.action-buttons {
    display: flex;
    gap: 0.75rem; /* Further reduced gap */
    flex-wrap: wrap;
}

.btn-outline-modern {
    background: transparent;
    border: 2px solid var(--palmiye-primary);
    color: var(--palmiye-primary);
    transition: all 0.3s ease;
}

.btn-outline-modern:hover {
    background: var(--palmiye-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Video Section Button Styles */
.video-showcase-section .btn-modern {
    padding: 0.75rem 1.5rem; /* Smaller padding */
    font-size: 0.9rem; /* Smaller font */
    border-radius: 8px; /* Smaller border radius */
}

.video-showcase-section .btn-modern i {
    font-size: 0.9rem; /* Smaller icon */
    margin-left: 0.5rem; /* Reduced margin */
}

/* Responsive Video Section */
@media (max-width: 1199px) {
    .video-wrapper,
    .video-content {
        height: 350px;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 991px) {
    .video-wrapper,
    .video-content {
        height: 300px;
    }
    
    .video-content {
        padding: 40px 40px; /* Optimized padding for better content fit */
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
        gap: 0.75rem; /* Consistent with desktop */
    }
    
    /* Responsive column adjustment */
    .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .video-wrapper {
        height: 400px;
    }
    
    .video-content {
        height: auto;
        padding: 60px 30px; /* Optimized padding for mobile */
    }
    
    .section-title {
        font-size: 1.75rem; /* Smaller title */
    }
    
    .play-pause-btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .video-controls-overlay {
        padding: 30px 20px 20px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.75rem; /* Consistent gap */
    }
    
    .feature-list {
        gap: 0.5rem; /* Even smaller gap on mobile */
    }
    
    .feature-item {
        padding: 0.4rem; /* Smaller padding on mobile */
    }
}

@media (max-width: 575px) {
    .video-wrapper {
        height: 350px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1.1rem;
    }
}

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

/* Modern Blog Section Styles */
.blog-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.blog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e2e8f0" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23e2e8f0" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23cbd5e1" opacity="0.05"/><circle cx="10" cy="50" r="0.5" fill="%23cbd5e1" opacity="0.05"/><circle cx="90" cy="30" r="0.5" fill="%23cbd5e1" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* Modern Blog Card */
.blog-card-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(78, 149, 37, 0.2);
}

/* Modern Blog Image */
.blog-image-modern {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.blog-img-modern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card-modern:hover .blog-img-modern {
    transform: scale(1.08);
}

/* Modern Blog Content */
.blog-content-modern {
    padding: 2.5rem;
    position: relative;
    background: white;
}

/* Category Tags */
.blog-categories-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.category-tag {
    background: rgba(78, 149, 37, 0.1);
    color: var(--palmiye-primary, #4E9525);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    border: 1px solid rgba(78, 149, 37, 0.2);
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: var(--palmiye-primary, #4E9525);
    color: white;
    transform: translateY(-2px);
}

/* Modern Blog Title */
.blog-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.3;
    color: var(--palmiye-dark, #1a202c);
    text-align: left;
}

/* Modern Discover Button */
.blog-action-modern {
    display: flex;
    justify-content: flex-start;
    margin-top: 1.5rem;
}

.discover-btn-modern {
    background: white;
    color: var(--palmiye-primary, #4E9525);
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(78, 149, 37, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
}

.discover-btn-modern:hover {
    background: var(--palmiye-primary, #4E9525);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(78, 149, 37, 0.3);
    border-color: var(--palmiye-primary, #4E9525);
}

.discover-btn-modern i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.discover-btn-modern:hover i {
    transform: translateX(3px);
}

/* Blog CTA Button */
.blog-section .btn-modern {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(78, 149, 37, 0.3);
}

.blog-section .btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(78, 149, 37, 0.4);
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
    .blog-section {
        padding: 60px 0;
    }
    
    .blog-image-modern {
        height: 250px;
    }

    .blog-content-modern {
        padding: 2rem;
    }

    .blog-title-modern {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .blog-categories-modern {
        margin-bottom: 1rem;
    }

    .category-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .discover-btn-modern {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .blog-section .btn-modern {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }
}

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

    .blog-content-modern {
        padding: 1.5rem;
    }

    .blog-title-modern {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }

    .blog-categories-modern {
        gap: 0.4rem;
    }

    .category-tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .discover-btn-modern {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Animation for modern blog cards */
.blog-card-modern {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUpModern 0.8s ease-out forwards;
}

.blog-card-modern:nth-child(1) { animation-delay: 0.2s; }
.blog-card-modern:nth-child(2) { animation-delay: 0.4s; }

@keyframes fadeInUpModern {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin Panel Integration - No color picker needed */
