/*
Theme Name:     Elektrocentrum Kaplice
Theme URI:      https://elektrocentrumkaplice.cz
Description:    Child theme for Divi – customized for Elektrocentrum Kaplice
Author:         David Klhufek
Author URI:     https://phirebase.com
Template:       Divi
Version:        1.0.0
License:        GNU General Public License v2 or later
License URI:    https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    elektrocentrum-kaplice
*/

/* === Scroll to Top Button === */
.et_pb_scroll_top.et-pb-icon {
    color: black;
    right: 30px;
    bottom: 30px;
    padding: 8px;
    border-radius: 30px;
    background: #fdc710; 
    font-size: 32px;
    transition: all 0.1s ease-in-out;
}

.et_pb_scroll_top.et-pb-icon:hover {
    bottom: 32px;
    background: #fdc710;
    transition: all 0.1s ease-in-out;
    box-shadow: 0 10px 15px #00000044;
}

/* === Scroll Top Animations === */
.et_pb_scroll_top.et-visible {
    animation: fadeInBottom 1s cubic-bezier(0.50, 0, 0.16, 1);
}
.et_pb_scroll_top.et-hidden {
    opacity: 0;
    animation: fadeOutBottom 1s cubic-bezier(0.77, 0, 0.175, 1);
}

/* === Mobile Menu Styling === */
ul#mobile_menu.et_mobile_menu a,
ul#top-menu a {
    text-transform: uppercase;
}

/* === Image Titles Off === */
.mfp-title {
    display: none;
}

/* === Animated Menu Link Underline === */
#top-menu a::after {
    content: "";
    display: block;
    height: 2px;
    width: 0;
    background-color: #fdc710; 
    transition: width 0.3s ease;
    margin-top: 4px;
}

#top-menu a.active-menu::after {
    width: 100%;
}

/* === Responsive Divi Column Grid with Spacing (Class: .icon-grid) === */
/* Desktop: 6 columns (default)
   Tablet: 3 columns with spacing
   Mobile: 2 columns with spacing 
*/
/* Tablet layout - 3 columns with spacing */
@media (max-width: 980px) {
  .icon-grid .et_pb_column {
    width: calc(33.333% - 20px) !important;
    margin: 10px !important;
    float: left;
    clear: none !important;
    box-sizing: border-box;
  }

  .icon-grid .et_pb_column:nth-child(3n+1) {
    clear: left;
  }
}

/* Mobile layout - 2 columns with spacing */
@media (max-width: 767px) {
  .icon-grid .et_pb_column {
    width: calc(50% - 20px) !important;
    margin: 10px !important;
    float: left;
    clear: none !important;
    box-sizing: border-box;
  }

  .icon-grid .et_pb_column:nth-child(odd) {
    clear: left;
  }
}

