/*
Theme Name: Ber Eğitim
Theme URI: https://beregitim.com
Author: Ber Eğitim
Author URI: https://beregitim.com
Description: Kulvar Akademi tarzında tek sayfalık eğitim teması. Basit yönetim paneli ile kolay içerik yönetimi.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ber-egitim
*/

/* === Scroll offset for fixed navbar === */
html {
    scroll-padding-top: 150px;
}

/* === CF7 Spinner Override === */
.wpcf7-spinner {
    width: 30px;
    height: 30px;
    background-color: transparent;
    opacity: 1;
    border: 3px solid rgba(44, 190, 218, 0.2);
    border-top-color: #2cbeda;
    border-radius: 50%;
    animation: ber-spin 0.7s linear infinite;
    margin: 0 12px;
    vertical-align: middle;
}
.wpcf7-spinner::before {
    display: none;
}
.ber-newsletter-cf7 .wpcf7-spinner {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
}
@keyframes ber-spin {
    to { transform: rotate(360deg); }
}

/* === İletişim Formu === */
.ber-contact-cf7 .wpcf7-form-control-wrap {
    display: block;
}
.ber-contact-cf7 input.wpcf7-form-control:not([type="submit"]),
.ber-contact-cf7 textarea.wpcf7-form-control {
    width: 100%;
}
/* Submit button: input can't use ::before, so apply bg directly */
.ber-contact-cf7 input.btn-custom {
    background-color: #004aad;
    color: #fff;
    cursor: pointer;
    border: 2px solid #004aad;
    transition: all 0.3s;
}
.ber-contact-cf7 input.btn-custom:hover {
    background-color: transparent;
    color: #004aad;
}
.ber-contact-cf7 .wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 4px;
}
.ber-contact-cf7 .wpcf7-response-output {
    margin: 15px 0 0;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
}

/* === Bülten Formu === */
.ber-newsletter-cf7 .sub-btn {
    padding-top: 0;
}
.ber-newsletter-cf7 .wpcf7-submit {
    cursor: pointer;
    border: none;
}
.ber-newsletter-cf7 .wpcf7-not-valid-tip {
    color: #fff;
    font-size: 14px;
    margin-top: 4px;
}
.ber-newsletter-cf7 .wpcf7-response-output {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    margin: 10px 0 0;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 15px;
}

/* Service card image height matches text card */
#service .grid > div > .tilt-effect {
    height: 100%;
}
#service .grid > div > .tilt-effect > .w-full {
    height: 100%;
}

/* Mobile hero floating icons */
.hero-float-mobile {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
.hero-float-mobile img {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
}
.hero-float-mobile-1 {
    left: 10%;
    top: 20%;
}
.hero-float-mobile-2 {
    right: 10%;
    top: 15%;
}
.hero-float-mobile-3 {
    left: 8%;
    bottom: 20%;
}

/* === About decorative image (kep - now in Home section above Ber Eğitim) === */
.deco-about-kep {
    text-align: center;
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
}
.deco-about-left-img {
    max-width: 75px;
}
@media (min-width: 1024px) {
    .deco-about-kep {
        text-align: left;
        margin-bottom: 8px;
        justify-content: flex-start;
    }
    .deco-about-left-img {
        max-width: 90px;
    }
}

/* === About hero grid (Deneme Sınavı section) === */
.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 1280px) {
    .about-hero-grid {
        grid-template-columns: 40% 60%;
        gap: 50px;
    }
}

/* === Promo image edge fade === */
.hero-promo-img {
    -webkit-mask-image: radial-gradient(ellipse 85% 85% at center, black 50%, transparent 90%);
    mask-image: radial-gradient(ellipse 85% 85% at center, black 50%, transparent 90%);
}

/* === About section floating icons === */
.about-float {
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 767px) {
    .about-float {
        display: none;
    }
}

/* === Footer layout === */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
}
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 25% 50% 25%;
    }
    .md\:text-center {
        text-align: center;
    }
    .md\:text-right {
        text-align: right;
    }
    .md\:justify-end {
        justify-content: flex-end;
    }
}

/* === Footer menu 2 columns === */
.footer-menu-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
@media (min-width: 768px) {
    .footer-menu-cols {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* === Footer logo alignment fix === */

/* === Footer link hover === */
.bg-\[\#2cbeda\] a:hover {
    color: #004aad !important;
}

/* === Map Overlay & Custom Marker === */
.map-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: pointer;
    display: block;
}
.map-custom-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    pointer-events: none;
}
.map-custom-marker img {
    width: 50px;
    height: auto;
    animation: markerBounce 2s ease-in-out infinite;
}
@keyframes markerBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* === Hero about text paragraphs === */
.hero-about-text p {
    margin-bottom: 20px;
}
.hero-about-text p:last-child {
    margin-bottom: 0;
}

/* === Packages Section === */
.pkg-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}
@media (min-width: 768px) {
    .pkg-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}
.pkg-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 35px 30px;
    height: 100%;
    transition: all 0.3s;
}
.pkg-card:hover {
    background: rgba(255,255,255,0.14);
}
.pkg-card-featured {
    background: rgba(44,190,218,0.15);
    border: 2px solid #2cbeda;
    position: relative;
    margin-top: 15px;
}
.pkg-card-featured:hover {
    background: rgba(44,190,218,0.22);
}
.pkg-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #2cbeda;
    color: #004aad;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.pkg-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
    background: rgba(44,190,218,0.2);
    color: #2cbeda;
}
.pkg-badge-featured {
    background: rgba(44,190,218,0.3);
}
.pkg-badge-vip {
    background: rgba(255,215,0,0.2);
    color: #ffd700;
}
.pkg-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pkg-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pkg-item:last-child {
    border-bottom: none;
}
.pkg-yes {
    color: rgba(255,255,255,0.9);
}
.pkg-no {
    color: rgba(255,255,255,0.3);
}
.pkg-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
}
.pkg-check {
    background: rgba(44,190,218,0.2);
    color: #2cbeda;
}
.pkg-cross {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.25);
}
.pkg-btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    text-decoration: none;
}
.pkg-btn-outline {
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    background: transparent;
}
.pkg-btn-outline:hover {
    background: #fff;
    color: #004aad;
    border-color: #fff;
}
.pkg-btn-solid {
    background: #2cbeda;
    color: #004aad;
    border: 2px solid #2cbeda;
}
.pkg-btn-solid:hover {
    background: #fff;
    color: #004aad;
    border-color: #fff;
}

/* Hide wow elements until preloader finishes and animations start */
.wow {
    visibility: hidden;
}

/* === Animated text button (Kütüphane / Rezervasyon) === */
.btn-animated-text {
    width: 155px;
    height: 50px;
    line-height: 48px;
    text-align: center;
    overflow: hidden;
    position: relative;
}
.btn-word {
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    line-height: 48px;
    opacity: 0;
}
.btn-word-1 {
    animation: fadeWord 5s infinite;
}
.btn-word-2 {
    animation: fadeWord 5s 2.5s infinite;
}
@keyframes fadeWord {
    0%   { opacity: 0; transform: translateY(100%); }
    10%  { opacity: 1; transform: translateY(0); }
    40%  { opacity: 1; transform: translateY(0); }
    50%  { opacity: 0; transform: translateY(-100%); }
    100% { opacity: 0; transform: translateY(-100%); }
}

/* === Navbar menu spacing (50% reduced) === */
@media (min-width: 1024px) {
    .lg\:space-x-\[15px\] > :not([hidden]) ~ :not([hidden]) {
        --tw-space-x-reverse: 0;
        margin-right: calc(15px * var(--tw-space-x-reverse));
        margin-left: calc(15px * calc(1 - var(--tw-space-x-reverse)));
    }
}

/* === Navbar social icons: hide below xl === */
@media (min-width: 1280px) {
    .xl\:flex {
        display: flex;
    }
}

/* === Missing Tailwind utilities === */
@media (min-width: 1024px) {
    .lg\:max-w-\[50\%\] {
        max-width: 50%;
    }
}
@media (min-width: 1280px) {
    .xl\:text-left {
        text-align: left;
    }
    .xl\:justify-start {
        justify-content: flex-start;
    }
}

/* === Home Section Layout === */
.hero-home-container {
    padding-top: 120px;
    padding-bottom: 60px;
}
.hero-home-image {
    text-align: center;
    margin-bottom: 25px;
}
.hero-home-image img {
    width: 70%;
    max-width: 350px;
    height: auto;
    border-radius: 12px;
    margin: 0 auto;
}
.hero-home-text {
    text-align: center;
}

/* Tablet */
@media (min-width: 768px) {
    .hero-home-container {
        padding-top: 110px;
        padding-bottom: 80px;
    }
    .hero-home-image img {
        width: 60%;
        max-width: 400px;
    }
}

/* Desktop - float right */
@media (min-width: 1024px) {
    .hero-home-container {
        padding-top: 120px;
        padding-bottom: 80px;
    }
    .hero-home-image {
        float: right;
        width: 50%;
        margin-left: 40px;
        margin-bottom: 20px;
        text-align: right;
    }
    .hero-home-image img {
        width: 100%;
        max-width: none;
    }
    .hero-home-text {
        text-align: left;
    }
}

/* Large desktop */
@media (min-width: 1440px) {
    .hero-home-container {
        padding-top: 140px;
    }
    .hero-home-image {
        width: 55%;
    }
}

/* Extra large */
@media (min-width: 1680px) {
    .hero-home-container {
        padding-top: 160px;
    }
}
.hero-float-1 {
    left: 15%;
    top: 25%;
}
.hero-float-2 {
    right: 15%;
    top: 30%;
}
.hero-float-3 {
    left: 15%;
    bottom: 45%;
}