/*
Theme Name: Grankare Child
Description: Child Theme for Grankare Theme
Author: zozothemes
Version: 1.0
Template: grankare
Tags: one-column, two-columns, right-sidebar, flexible-header, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
Text Domain: zozothemes
*/

/*Custom Style Code Right Here */
/* Desktop Layout */
.custom-content-block {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 20px;
}

/* Image Container (35% width, centered vertically) */
.image-container {
  flex: 0 0 35%;
  max-width: 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}
.image-container:hover img {
  transform: scale(1.05);
  cursor: pointer;
}

/* Text Container (65% width) */
.text-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Image Position Classes (Left/Right) */
.custom-content-block.left .image-container { order: 1; }
.custom-content-block.left .text-container { order: 2; }
.custom-content-block.right .image-container { order: 2; }
.custom-content-block.right .text-container { order: 1; }

/* Button Styles */
.custom-block-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-around;
    padding: 12px 35px 12px 35px;
    background-color: #20A653;
    color: #fff!important;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.8px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.button-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.button-arrow {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.3s ease;
    transform: rotate(315deg);
}

/* Hover Effects */
.custom-block-button:hover {
    background-color: #F48C23;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 91, 140, 0.3);
}

.custom-block-button:hover .button-arrow {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .custom-block-button {
        width: 100%;
        justify-content: center;
        padding: 12px 25px;
    }
    
    .button-content {
        gap: 8px;
    }
}

/* Mobile Stacking */
@media (max-width: 768px) {
  .custom-content-block {
    flex-direction: column;
    gap: 15px;
  }

  .image-container,
  .text-container {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    order: 0 !important;
  }

  /* Optional: Adjust image height on mobile */
  .image-container img {
    max-height: 250px;
    width: auto;
    margin: 0 auto;
  }
}
