/*
Theme Name:     Hello Elementor Child
Template:       hello-elementor
Theme URI:      https://example.com
Description:    Child theme for Hello Elementor
Author:         Your Name
Version:        1.0
Text Domain:    hello-elementor-child
*/

@import url("../hello-elementor/style.css"); /* optional, not required with enqueueing */

/* STAJLING PO FAJLOVIMA

- header u header.css
- footer u footer.css
- template header u template-header.css
- archive-content u archive.css
- single-content u single.css

- ovde opšte postavke i ceo template container


*/

/* === Base: Desktop styles (default) === */
/* Applies to wide screens (≥1025px) */

/*
Theme Name: EssentialTheme
Description: Custom theme for Kielo airline agency
Author: You
Version: 1.0
*/

/* ------------------------------
   1. RESET & BASE
------------------------------ */
html {
  box-sizing: border-box;
  font-size: 16px; /* base size for rem */
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  font-size: 1rem; /* 16px */
  line-height: 1.375; /* ~22px */
  color: var(--color-black);
  background: #fff;
}

/* Images & media */
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Links */
a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Lists */
ul,
ol {
  list-style: none;
}

/* ------------------------------
   2. VARIABLES (mirror Elementor)
------------------------------ */
:root {
  /* Brand colors */
  --color-primary: #06274f; /* Kielo Blue */
  --color-secondary: #95d22e; /* Kielo Green */
  --color-black: #000;
  --color-white: #fff;

  /* Typography scale */
  --fs-hero: 60px;
  --lh-hero: 50px;

  --fs-section: 48px;
  --lh-section: normal;

  --fs-subsection: 32px;
  --lh-subsection: normal;

  --fs-texttitle: 28px;
  --lh-texttitle: normal;

  --fs-body: 16px;
  --lh-body: 22px;

  --fs-small: 14px;
  --lh-small: normal;

  --fs-highlight: 20px;
  --lh-highlight: 20px;
}

/* ------------------------------
   3. TYPOGRAPHY
------------------------------ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: inherit;
  font-weight: 700;
  color: var(--color-primary);
}

h1 {
  font-size: 48px;
  line-height: var(--lh-hero);
}
h2 {
  font-size: 28px;
  line-height: var(--lh-section);
  margin: 30px 0;
}
h3 {
  font-size: 24px;
  line-height: var(--lh-subsection);
}
h4 {
  font-size: 20px;
  line-height: var(--lh-texttitle);
}

/*
h1 {
  font-size: var(--fs-hero);
  line-height: var(--lh-hero);
}
h2 {
  font-size: var(--fs-section);
  line-height: var(--lh-section);
}
h3 {
  font-size: var(--fs-subsection);
  line-height: var(--lh-subsection);
}
h4 {
  font-size: var(--fs-texttitle);
  line-height: var(--lh-texttitle);
}

h5 {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 600;
}
h6 {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  font-weight: 500;
}

*/

/* Paragraphs */
p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin-bottom: 1em;
}

/* ------------------------------
   4. ELEMENTOR GLOBAL FONTS
   (semantic helpers)
------------------------------ */

.hero-text-small {
  font-size: 32px;
  font-weight: 500;
  line-height: 32px;
}

/*-------------------------------------------------------------------------------------*/

/*-------------------------------------------------------------------------------------*/

/* responsiveness: allow wrapping on small screens */
@media (max-width: 768px) {
  .bar-wrapper {
    gap: 16px;
    flex-wrap: wrap;
  }
  .bar-item {
    white-space: normal;
  }
  .bar-item img {
    max-width: 48px;
  }
}

.hero-title {
  font-family: "Inter", sans-serif;
  font-size: var(--fs-hero);
  line-height: var(--lh-hero);
  font-weight: 700;
  color: var(--color-white);
}

.section-title {
  font-family: "Inter", sans-serif;
  font-size: var(--fs-section);
  line-height: var(--lh-section);
  font-weight: 700;
  color: var(--color-secondary);
}

.subsection-title {
  font-family: "Inter", sans-serif;
  font-size: var(--fs-subsection);
  line-height: var(--lh-subsection);
  font-weight: 700;
  color: var(--color-primary);
}

.text-title,
.sidebar-title {
  font-family: "Inter", sans-serif;
  font-size: var(--fs-texttitle);
  line-height: var(--lh-texttitle);
  font-weight: 700;
  color: var(--color-primary);
}

.body-text {
  font-family: "Inter", sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 500;
  color: var(--color-black);
}

.small-text {
  font-family: "Inter", sans-serif;
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  font-weight: 400;
  color: var(--color-black);
}

.hero-body {
  font-family: "Inter", sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 500;
  color: var(--color-white);
}

.highlight-text {
  font-family: "Inter", sans-serif;
  font-size: var(--fs-highlight);
  line-height: var(--lh-highlight);
  font-weight: 500;
  color: var(--color-white);
}

.subtitle-text {
  font-family: "Inter", sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--color-black);
}

/* ------------------------------
   4. LAYOUT
------------------------------ */



/* ======================================
   UNIVERSAL CONTAINER STYLING
   Works for Elementor boxed sections AND 
   your custom template .container wrapper
   ====================================== */

/* Applies to all boxed Flex containers */
.section.container {
  /* max-width: 1300px;       1240px content + 30px padding each side */
   /* padding-left: 30px !important;
  /* padding-right: 30px;  /* left/right breathing room */
  /* margin: 0 auto;         /* center the container */
  /* box-sizing: border-box; */
}


/* Optional tablet adjustments */
@media (max-width: 1024px) {
  section.container {
    padding: 0;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .section.container {
    padding: 0;
  }
}



/* Temlpate, Header & Footer align with container */
.template-container,
.template-header,
.site-header-inner,
.site-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0;
}

/* ------------------------------
   5. BREAKPOINTS
------------------------------ */
@media (max-width: 1024px) {
  /* Tablet */
  :root {
    --fs-h1: 2.75rem; /* 44px */
    --fs-h2: 2.25rem; /* 36px */
    --fs-h3: 1.5rem; /* 24px */
  }
}

@media (max-width: 768px) {
  /* Mobile */
  :root {
    --fs-h1: 2rem; /* 32px */
    --fs-h2: 1.75rem; /* 28px */
    --fs-h3: 1.25rem; /* 20px */
  }

  .template-container {
    padding: 0 20px;
  }
}




/* Restore normal bulleted and numbered lists in post/page body */
.single-content .post-body ul,
.single-content .post-body ol {
    margin: 1em 0;               /* vertical spacing around list */
    padding-left: 40px;          /* standard indentation */
}

.single-content .post-body ul {
    list-style-type: disc;       /* filled bullets */
}

.single-content .post-body ol {
    list-style-type: decimal;    /* regular numbers */
}

.single-content .post-body li {
    font-size: 16px;             /* match body text */
    line-height: 1.6;
    margin: 0.5em 0;             /* spacing between items */
}




/* ------------------------------- Kielo contact box shortcode */

.callkielo-box {
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    color: #06274F;
    border-top: 2px solid #95D22E;
    border-bottom: 2px solid #95D22E;
    padding: 20px 60px;
    margin: 40px 0;
    text-align: center;
}

.callkielo-box a {
    color: #95D22E;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 768px) {
	.callkielo-box {
		padding: 20px 20px;
	}
}



/* ------------------------------- ANTRFILE  Base styling */
.antrfile-box {
    background-color: #f0f0f0;
    padding: 20px 20px 10px 20px;
    border-radius: 15px;
    margin: 20px 0;
    width: 100%;
    clear: both; /* resets before the next antrfile starts */
	box-sizing: border-box; /* so padding doesn’t push it wider */
}

/* Alignment on desktop */
@media (min-width: 769px) {
    .antrfile-align-left {
        float: left;
        margin-right: 20px; /* space between box and text */
        margin-bottom: 20px; /* space under the box */
    }
    .antrfile-align-right {
        float: right;
        margin-left: 20px;
        margin-bottom: 20px;
    }
    .antrfile-align-center {
        margin-left: auto;
        margin-right: auto;
        display: table; /* keeps it centered */
        float: none;
    }
}

/* Title styling */
.antrfile-title {
    background-color: #06274F;
    color: #ffffff;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 10px 10px 0 0;
    margin: -20px -20px 15px -20px;
}

/* Content styling */
.antrfile-content {
    color: inherit;
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
}




/* ------------------------------- Default WP gallery: horizontal thumbnails with fixed size */
.gallery {
    display: flex;
    flex-wrap: wrap;           /* wrap to next row if needed */
    gap: 16px;              /* horizontal and vertical gap */
}

.gallery-item {
    flex: 0 0 auto;            /* prevent shrinking */
    width: 118px;
    height: 92px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;         /* crop image to cover box */
    object-position: center;
    display: block;
}

/* Mobile breakpoint adjustments */
/* Mobile breakpoint: max-width 768px */
@media (max-width: 768px) {
    :root {
        --gallery-gap-mobile: 13px; /* horizontal gap */
        --gallery-gap-vertical: 20px; /* vertical gap */
    }
	
	/* Remove default bottom margin for images inside WordPress gallery */
.gallery-item img {
    margin: 0 !important; /* overrides theme single.css */
    padding: 0;           /* optional, just in case */
}

    .gallery {
        display: flex;
        flex-wrap: wrap;
        gap: var(--gallery-gap-vertical) var(--gallery-gap-mobile); /* row-gap column-gap */
    }

    .gallery-item {
        /* 3 items per row, taking horizontal gap into account */
        width: calc((100% - 2 * var(--gallery-gap-mobile)) / 3);
        height: calc(((100% - 2 * var(--gallery-gap-mobile)) / 3) * 0.7568); /* maintain aspect ratio */
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }
}





/* Add spacing around aligned images inside post/page content */
.single-content .post-body img.alignleft {
    margin: 0 20px 20px 0;   /* right + bottom spacing */
    float: left;
}

.single-content .post-body img.alignright {
    margin: 0 0 20px 20px;   /* left + bottom spacing */
    float: right;
}

.single-content .post-body img.aligncenter {
    display: block;
    margin: 20px auto;       /* vertical spacing only */
}




/* ---------------------Kielo table shortcode*/

.kielotable {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}

.kielotable th,
.kielotable td {
  height: 40px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
  vertical-align: middle;
  border: 1px solid #fff;
}

.kielotable thead th {
  background-color: #95D22E;
  color: #fff;
  font-weight: 700;
  border-bottom: none;
}

.kielotable thead th + th {
  border-left: 1px solid #fff;
}

.kielotable tbody td {
  background-color: #D9D9D9 !important; /* override theme zebra */
  color: #000;
}

.kielotable .first-col {
  text-align: left;
  padding-left: 20px;
  width: auto; /* fills remaining space */
}

.kielotable .fixed-col {
  text-align: center;
  width: 166px;
}

/* Kill unwanted theme hover effects */
.kielotable tbody tr:hover td {
  background-color: #D9D9D9 !important;
}

@media (max-width: 768px) {
	.kielotable .fixed-col {
		width: auto;
	}
}

/* Makes the images stretch to full width of container - applied on "Akcije" which are smaller by design, on home page and on images for "korisne informacije", which are also small*/




.width-helper-class {
	width: calc((100% - 60px) / 3);
}

@media (max-width: 768px) {
	.width-helper-class {
	width: 100%;
	}

}





/* TEAM MEMBERS SECTIONS */

.team-par { 
 flex: 0 0 auto; /* don’t grow, don’t shrink, size = content */
  width: auto;    /* shrink-wrap to children */
  display: flex;  /* keeps members inside aligned horizontally */
  
}


/* Mobile layout */
@media (max-width: 767px) {
  .team-par {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;          /* real gap here */
    width: 100%;        /* take full row */
    justify-content: flex-start;
		height: 100%;
  }

  .team-par .member {
    flex: 1 1 calc(50% - 10px); /* two per row, auto-calc with gap */
    max-width: calc(50% - 10px);
  }

  /* last mid-container (only one member) */
  .team-par:last-child .member {
   flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
	
	
	 .team-par {
    align-items: flex-start;  /* prevent stretching */
    margin-bottom: 30px;      /* separate each row */
  }

  .team-par .member {
    display: flex;
    flex-direction: column;   /* ensure vertical stacking inside each card */
    align-items: center;
    justify-content: flex-start;
  }

  .team-par img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* optional, ensures consistent spacing between image and text */
  .team-par .member * + * {
    /* margin-top: 10px; */
  }
	
	

}