/* Animated Shine Heading */
.shine-heading .elementor-heading-title {
    background: linear-gradient(
        110deg,
        #1B334B 0%,
        #1B334B 30%,
        #568F81 45%,
        #8FC5B7 50%,
        #568F81 55%,
        #1B334B 70%,
        #1B334B 100%
    );

    background-size: 250% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: textShine 5s linear infinite;
}

@keyframes textShine {
    0% {
        background-position: 100% center;
    }

    100% {
        background-position: -100% center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shine-heading .elementor-heading-title {
        animation: none;
    }
}

/* ========================================
   SITE-WIDE POLISH - BUTTONS & COMPONENTS
   ======================================== */

/* Consistent Button Styling - all primary buttons */
.elementor-button,
.elementor-widget-button .elementor-button,
button.wp-element-button,
.wpcf7-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    text-align: center !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 10px !important;
    min-height: 48px !important;
    line-height: 1.2 !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Button text should always center and wrap properly */
.elementor-button-text {
    text-align: center !important;
    white-space: nowrap !important;
}

/* Primary (orange) button hover */
.elementor-button[style*="F5A623"]:hover,
.elementor-button[style*="f5a623"]:hover,
.elementor-element [style*="background-color: #F5A623"]:hover,
.elementor-widget-button .elementor-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(245, 166, 35, 0.35) !important;
    filter: brightness(1.05) !important;
}

/* Icon-box icon alignment polish */
.elementor-icon-box-wrapper {
    align-items: flex-start !important;
}
.elementor-icon-box-icon {
    flex-shrink: 0 !important;
}
.elementor-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Icon circle backgrounds - cleaner */
.elementor-widget-icon-box .elementor-icon {
    transition: all 0.3s ease !important;
}
.elementor-widget-icon-box:hover .elementor-icon {
    transform: scale(1.08) !important;
}

/* Card hover effects for Elementor containers used as cards */
.elementor-element.e-con[style*="border-radius"]:hover,
.elementor-top-section[style*="background-color"]:hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* Resources page - Download buttons smaller and cleaner */
.page-id-17 .elementor-widget-button .elementor-button {
    padding: 12px 22px !important;
    font-size: 14px !important;
    min-height: 42px !important;
    border-radius: 8px !important;
}
.page-id-17 .elementor-button-text {
    font-weight: 600 !important;
}

/* Hide the ugly default form icons/badge wrapping */
.page-id-17 .elementor-widget-button .elementor-button:hover {
    background-color: #1b334b !important;
    color: #ffffff !important;
}
.page-id-17 .elementor-widget-button .elementor-button:hover .elementor-button-text,
.page-id-17 .elementor-widget-button .elementor-button:hover .elementor-button-icon {
    color: #ffffff !important;
}

/* Form inputs polish - all forms */
.elementor-field-group input[type="text"],
.elementor-field-group input[type="email"],
.elementor-field-group input[type="tel"],
.elementor-field-group textarea,
.elementor-field-group select,
input.elementor-field-textual,
textarea.elementor-field-textual,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
    border: 1.5px solid #e4e8ef !important;
    border-radius: 10px !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    transition: all 0.2s ease !important;
    background: #ffffff !important;
}
.elementor-field-group input:focus,
.elementor-field-group textarea:focus,
.elementor-field-group select:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    border-color: #5f9ea0 !important;
    box-shadow: 0 0 0 4px rgba(95, 158, 160, 0.15) !important;
    outline: none !important;
}

/* Navigation menu polish - better hover and active state */
.elementor-nav-menu li a {
    transition: color 0.2s ease !important;
    position: relative !important;
}
.elementor-nav-menu li a:hover,
.elementor-nav-menu li.current-menu-item a {
    color: #f5a623 !important;
}

/* Section spacing improvements */
.elementor-section:not(:first-child) {
    margin-top: 0;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Better focus indicators for accessibility */
*:focus-visible {
    outline: 2px solid #f5a623 !important;
    outline-offset: 2px !important;
    border-radius: 4px;
}

/* Image polish - subtle shadow on card images */
.elementor-widget-image img {
    border-radius: inherit;
}

/* Testimonial / Card hover lift effect */
.elementor-widget-wrap > .elementor-element:hover .elementor-icon-box-icon .elementor-icon {
    background-color: #f5a623 !important;
    color: #ffffff !important;
}

/* Mobile improvements */
@media (max-width: 768px) {
    .elementor-button {
        min-height: 44px !important;
        padding: 12px 20px !important;
        font-size: 15px !important;
    }
    h1, h2, h3 { word-break: normal !important; }
}

/* ========================================
   TGG CUSTOM COMPONENTS
   ======================================== */

/* Enhanced TGG Reels (video review cards) - already added inline but reinforced here */
.tgg-reels{max-width:1140px;margin:0 auto;padding:40px 20px;font-family:inherit}
.tgg-reels__head{text-align:center;margin-bottom:40px}
.tgg-reels__head .tgg-eyebrow{display:inline-block;background:#f5a623;color:#fff;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;letter-spacing:.5px;margin-bottom:16px}
.tgg-reels__head h3{font-size:36px;color:#1a2a4a;margin:0 0 12px;font-weight:700;line-height:1.2}
.tgg-reels__head p{font-size:16px;color:#5a6478;max-width:620px;margin:0 auto;line-height:1.6}
.tgg-reels__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;max-width:900px;margin:0 auto}
.tgg-reel{aspect-ratio:9/16;background:linear-gradient(135deg,#1a2a4a 0%,#2d4068 100%);border-radius:16px;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:20px;box-shadow:0 10px 30px rgba(26,42,74,.15);transition:transform .3s ease}
.tgg-reel:hover{transform:translateY(-4px)}
.tgg-reel__play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:60px;height:60px;background:rgba(245,166,35,.95);border-radius:50%;display:flex;align-items:center;justify-content:center}
.tgg-reel__play svg{width:28px;height:28px;fill:#fff;margin-left:3px}
.tgg-reel__tag{position:absolute;top:16px;left:16px;background:rgba(255,255,255,.15);backdrop-filter:blur(4px);color:#fff;padding:6px 12px;border-radius:12px;font-size:12px;font-weight:500}
.tgg-reel__soon{position:absolute;bottom:16px;left:16px;right:16px;background:#f5a623;color:#1a2a4a;padding:10px 14px;border-radius:10px;font-size:13px;font-weight:600;text-align:center;letter-spacing:.3px}

/* ========================================
   TGG FREE DOWNLOADS - complete redesign
   ======================================== */
.tgg-downloads{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:24px;margin:40px 0}
.tgg-dcard{background:#fff;border-radius:18px;padding:28px 24px 24px;box-shadow:0 2px 8px rgba(26,42,74,.06);border:1px solid rgba(26,42,74,.06);display:flex;flex-direction:column;transition:all .3s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}
.tgg-dcard:hover{transform:translateY(-6px);box-shadow:0 20px 40px rgba(26,42,74,.12);border-color:#f5a623}
.tgg-dcard__top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.tgg-dcard__icon{width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#1b334b,#2d4a6b);color:#f5a623;flex-shrink:0}
.tgg-dcard__icon svg{width:28px;height:28px}
.tgg-dcard.science .tgg-dcard__icon{background:linear-gradient(135deg,#5f9ea0,#7bb5b8)}
.tgg-dcard.science .tgg-dcard__icon{color:#fff}
.tgg-dcard.test .tgg-dcard__icon{background:linear-gradient(135deg,#f5a623,#f7bb55);color:#1b334b}
.tgg-dcard.coming .tgg-dcard__icon{background:linear-gradient(135deg,#e4e8ef,#f3f5f9);color:#8a94a6}
.tgg-dcard__badge{background:#f3f5f9;color:#1b334b;padding:5px 12px;border-radius:20px;font-size:11px;font-weight:700;letter-spacing:.5px;text-transform:uppercase}
.tgg-dcard.science .tgg-dcard__badge{background:#e4f1f2;color:#2d6a6c}
.tgg-dcard.test .tgg-dcard__badge{background:#fef3dc;color:#8a5a0a}
.tgg-dcard.coming .tgg-dcard__badge{background:#f3f5f9;color:#5a6478}
.tgg-dcard__title{font-size:19px;color:#1b334b;font-weight:700;margin:0 0 10px;line-height:1.3}
.tgg-dcard__desc{font-size:14px;color:#5a6478;line-height:1.55;margin:0 0 18px;flex:1}
.tgg-dcard__meta{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:18px;font-size:12.5px;color:#8a94a6}
.tgg-dcard__meta span{display:inline-flex;align-items:center;gap:5px}
.tgg-dcard__meta svg{width:14px;height:14px;opacity:.7}
.tgg-dcard__btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#f5a623;color:#1b334b;padding:12px 20px;border-radius:10px;font-size:14px;font-weight:700;text-decoration:none;transition:all .25s ease;border:none;cursor:pointer;width:100%}
.tgg-dcard__btn:hover{background:#1b334b;color:#fff;transform:translateY(-2px)}
.tgg-dcard__btn svg{width:16px;height:16px}
.tgg-dcard.coming .tgg-dcard__btn{background:#f3f5f9;color:#8a94a6;cursor:default}
.tgg-dcard.coming .tgg-dcard__btn:hover{background:#f3f5f9;color:#8a94a6;transform:none}
.tgg-dcard__ribbon{position:absolute;top:14px;right:-30px;background:#5f9ea0;color:#fff;padding:3px 36px;font-size:10px;font-weight:700;letter-spacing:1px;transform:rotate(45deg);text-transform:uppercase}
@media (max-width:600px){.tgg-downloads{grid-template-columns:1fr;gap:16px}.tgg-dcard{padding:22px 20px}}

/* ========================================
   TGG CONTACT ENHANCEMENTS
   ======================================== */
.tgg-contact-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;margin:30px 0}
.tgg-ccard{background:#fff;border-radius:16px;padding:28px 24px;box-shadow:0 2px 8px rgba(26,42,74,.06);text-align:center;border:1px solid rgba(26,42,74,.06);transition:all .3s ease}
.tgg-ccard:hover{transform:translateY(-4px);box-shadow:0 16px 32px rgba(26,42,74,.1);border-color:#5f9ea0}
.tgg-ccard__icon{width:60px;height:60px;border-radius:16px;background:linear-gradient(135deg,#1b334b,#2d4a6b);color:#f5a623;margin:0 auto 16px;display:flex;align-items:center;justify-content:center}
.tgg-ccard__icon svg{width:30px;height:30px}
.tgg-ccard__title{font-size:17px;color:#1b334b;font-weight:700;margin:0 0 8px}
.tgg-ccard__value{font-size:15px;color:#5a6478;line-height:1.5;margin:0}
.tgg-ccard__value a{color:#5f9ea0;text-decoration:none;font-weight:600}
.tgg-ccard__value a:hover{color:#f5a623}

/* Section header polish */
.tgg-section-eyebrow{display:inline-block;background:rgba(245,166,35,.12);color:#8a5a0a;padding:6px 14px;border-radius:16px;font-size:12px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;margin-bottom:14px}

/* === Good Grade homepage alignment fixes (added by Claude, Oct 2026) === */

/* Hero: "Book a Free Session" + "Explore Services" buttons same height, centered on one line */
.elementor-element-2cedd4f { align-items: center !important; }
.elementor-element-165d9c1 .elementor-button,
.elementor-element-4715592 .elementor-button {
  min-height: 52px; box-sizing: border-box; align-items: center;
}

/* Hero image: center it on tablet (was pushed to the right) */
@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-element-d7ca743 { width: 80% !important; margin-left: auto !important; margin-right: auto !important; text-align: center !important; }
}

/* Results stats: "Dozens" lines up with the number counters; all labels the same size and centered */
.elementor-element-4b03045 .elementor-heading-title { line-height: 41px !important; }
.elementor-element-613e993 .elementor-counter-title { text-align: center !important; }
.elementor-element-613e993 .elementor-counter-title,
.elementor-element-e9d70ab, .elementor-element-e9d70ab p {
  font-size: 20px !important; font-weight: 400 !important; line-height: 36px !important; margin: 0 !important;
}
.elementor-element-6d198df > .e-con { padding-top: 10px !important; }

/* Services (phone): Math cards the same width as the Science cards */
@media (max-width: 767px) {
  .elementor-element-9c9fbcd, .elementor-element-f2604a3 { padding: 0 !important; }
}

/* "Choose Your Path" cards: icons, headings and buttons line up across all three cards */
.elementor-element-f99c62e > .e-con { justify-content: flex-start !important; padding-top: 48px !important; }
.elementor-element-7177eff {
  position: absolute !important; top: -20px; left: 50%; transform: translateX(-50%);
  margin: 0 !important; z-index: 2;
}
.elementor-element-f6ffb09, .elementor-element-1a1ef07, .elementor-element-07ce216 { margin: 0 !important; flex-grow: 1; }
.elementor-element-9fc6154, .elementor-element-9478b09, .elementor-element-506805a { padding: 0 !important; margin-top: auto !important; }
.elementor-element-9fc6154 .elementor-button, .elementor-element-9478b09 .elementor-button, .elementor-element-506805a .elementor-button {
  min-height: 62px; box-sizing: border-box; align-items: center;
}

/* Blog cards (tablet): center the 3rd card instead of leaving it stranded on the left */
@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-element-6451b80 .ue_post_grid_item:last-child:nth-child(odd) {
    grid-column: 1 / -1; justify-self: center; width: calc(50% - 15px) !important;
  }
}

/* "Trusted by Dozens of Students" pill: keep on one line on tablet */
.elementor-element-c10321c { width: auto !important; }
.elementor-element-c10321c .elementor-icon-list-text { white-space: nowrap; }

/* Footer bottom bar: keep "Terms of Service" clear of the chat bubble */
@media (min-width: 1025px) { .elementor-element-8452a1a { padding-right: 90px !important; } }
@media (max-width: 767px) { .elementor-element-8452a1a { padding-bottom: 72px !important; } }

/* Footer: keep content off the screen edges on laptop-size screens */
.elementor-element-cbce632, .elementor-element-5dd48b5 { padding-left: 20px !important; padding-right: 20px !important; }
/* === end homepage alignment fixes === */


/* Services page hero: no empty gap above "Tutoring plans" — shorter photo, text and photo aligned at the top. Desktop only. (Nov 15, 2026, approved by Brandon) */
@media (min-width:1025px){
body.page-id-15 .elementor-element-2f42829{min-height:0 !important;}
body.page-id-15 .elementor-element-2f42829 > .e-con-inner{justify-content:flex-start !important;padding-top:56px !important;padding-bottom:48px !important;}
body.page-id-15 .elementor-element-35e8e57{margin-top:-30px !important;}
body.page-id-15 .elementor-element-35e8e57 img{height:450px !important;}
}