/* Custom CSS - Generic Reusable Styles for Hubstart Pages */

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
/* Header placeholder - creates space for fixed header */
.rp-placeholder-header {
    height: 80px;
}

@media (max-width: 1199px) {
    .rp-placeholder-header {
        height: 70px;
    }
}

/* ========================================
   LAYOUT & CONTAINERS
   ======================================== */
.content-wrapper {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.body-container {
    padding-top: 0;
}

/* Remove all padding from body-container--home */
.body-container--home {
    padding: 0 !important;
}

.container-fluid {
    max-width: 100%;
}

/* ========================================
   GRID SYSTEM
   ======================================== */
/* Ensure columns float properly in Bootstrap grid */
.row-fluid > [class*='span'] {
    float: left;
    min-height: 1px;
}

/* Vertical alignment for flexible layouts */
@media (min-width: 768px) {
    .vertical-align-row > .row-fluid {
        display: flex !important;
        flex-direction: row;
    }

    .vertical-align-center {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .vertical-align-center > div {
        flex-shrink: 0 !important;
    }
}

/* ========================================
   SECTIONS
   ======================================== */
/* Hero Section */
.hero-section {
    padding: 80px 0;
}

@media (max-width: 767px) {
    .hero-section {
        padding: 120px 0 50px 0;
    }
}

/* Section Spacing */
.section {
    padding: 80px 0;
}

.section-lg {
    padding: 100px 0;
}

.section-sm {
    padding: 50px 0;
}

.section-none {
    padding: 0;
}

@media (max-width: 767px) {
    .section {
        padding: 50px 0;
    }
    
    .section-lg {
        padding: 60px 0;
    }
    
    .section-sm {
        padding: 30px 0;
    }
}

/* Background Layers */
.bg-gradient-light {
    background: linear-gradient(rgba(250, 250, 250, 1), rgba(250, 250, 250, 1));
}

.bg-gradient-primary-light {
    background: linear-gradient(rgba(255, 144, 94, 0.1), rgba(255, 144, 94, 0.1));
}

.bg-pattern-orange {
    background-image: url('https://hubstart.io/hubfs/Hubstart%20V2/images/decor-bg-orange.svg');
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
}

.bg-pattern-testimonials {
    background-image: url('https://4057429.fs1.hubspotusercontent-na1.net/hubfs/4057429/Orphic-2022/bg-pattern/Testimonial3.svg');
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h2 {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 700;
}

h5 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
}

/* Text decorations */
.text-underline {
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

span[style*="text-decoration: underline"] {
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

@media (max-width: 1199px) {
    h2 {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    h5 {
        font-size: 18px;
    }
}

/* ========================================
   BUTTONS & CTAs
   ======================================== */
.main-button {
    display: flex;
    justify-content: flex-start;
    column-gap: 20px;
    row-gap: 20px;
}

/* Center button when parent has text-align: center */
.main-button[style*="text-align: center"],
.main-button.text-center {
    justify-content: center;
}

.main-button-wrapper {
    display: inline-block;
}

.main-button-wrapper .button.uk-button-primary {
    color: #FFFFFF;
    font-family: var(--font-primary);
    font-style: normal;
    font-weight: 600;
    text-decoration: none;
    font-size: 18px;
    border-radius: 8px;
    background-color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 9px 34px;
    transition: all 0.3s ease-in-out;
}

.main-button-wrapper .button.uk-button-primary:hover,
.main-button-wrapper .button.uk-button-primary:active {
    color: var(--color-primary);
    background-color: transparent;
    border-color: var(--color-primary);
}

@media (max-width: 767px) {
    .main-button {
        justify-content: flex-start;
    }

    .main-button-wrapper .button.uk-button-primary,
    .main-button-wrapper .button.uk-button-default {
        padding-left: 25px !important;
        padding-right: 25px !important;
        font-size: 16px;
    }
}

/* ========================================
   IMAGES
   ======================================== */
.main-image-wrapper {
    text-align: center;
}

.main-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

/* ========================================
   LOGO SLIDER
   ======================================== */
.logo-slider {
    padding: 40px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.logo-slider-image {
    max-width: 100%;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease-in-out;
}

.logo-slider-image:hover {
    opacity: 1;
}

/* Certificate Slider */
.certificate-slider {
    padding: 20px 0;
}

.certificate-slider img {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.certificate-slider img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
    padding: 60px 0;
}

.testimonial-container {
    padding: 15px;
}

.testimonials-item {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.testimonials-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.testimonials-item .description {
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 16px;
    line-height: 1.6;
}

.testimonials-item .profile-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.testimonials-item .profile-box img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.testimonials-item .profile-text-box .name {
    font-weight: 600;
    font-size: 16px;
    margin: 0;
    color: var(--color-heading);
}

.testimonials-item .profile-text-box .position {
    font-size: 14px;
    color: #666;
}

@media (max-width: 767px) {
    .testimonials-item {
        padding: 20px;
    }
}

/* ========================================
   SPACING UTILITIES
   ======================================== */
.mb-5 {
    margin-bottom: 5px !important;
}

.mb-10 {
    margin-bottom: 10px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.pt-2 {
    padding-top: 2rem !important;
}

.pb-2 {
    padding-bottom: 2rem !important;
}

.py-2 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.pt-30 {
    padding-top: 30px !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.pr-30 {
    padding-right: 30px !important;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
