/* Training Homepage College Styles */

/* Container Wrapper */
.collage-page {
    width: 100%;
}

.collage-page-full-width {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Make Flexible Training section full width in collage page */
.collage-page-full-width .training-formats-section > div {
    padding: 0px 100px !important;
    max-width: 100% !important;
}

/* Flexible Training Formats - Mobile Responsive (Collage Page Only) */
@media (max-width: 768px) {
    .collage-page-full-width .training-formats-section > div {
        padding: 0 15px !important;
    }
    
    .collage-page-full-width .training-formats-section h2 {
        font-size: 28px !important;
        line-height: 36px !important;
        margin-bottom: 15px !important;
    }
    
    .collage-page-full-width .training-formats-section p[style*="margin: 0 150px"] {
        margin: 0 15px 30px 15px !important;
        font-size: 16px !important;
        line-height: 22px !important;
    }
    
    .collage-page-full-width .training-formats-section > div > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .collage-page-full-width .training-format-box {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 350px !important;
    }
    
    .collage-page-full-width .training-format-box img {
        width: 100% !important;
        height: 180px !important;
    }
    
    .collage-page-full-width .training-format-content h3 {
        font-size: 16px !important;
        line-height: 22px !important;
    }
    
    .collage-page-full-width .training-format-content p {
        font-size: 14px !important;
        line-height: 20px !important;
        margin: 0 20px 15px 20px !important;
    }
    
    .collage-page-full-width .training-format-content .view-more-btn {
        margin: 0 20px 20px 20px !important;
        font-size: 12px !important;
    }
    
    .collage-page-full-width .training-format-content > div:first-child {
        margin: 20px 20px 10px 20px !important;
    }
    
    .collage-page-full-width .training-formats-section .hero-logo img {
        width: 80px !important;
        height: 80px !important;
    }
}

/* Hero Section */
.hero-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 75px 20px 90px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 616px;
}

.hero-logo {
    margin-bottom: 20px;
}

.hero-logo img {
    width: 119px;
    height: auto;
}

/* Main Button */
#heroMainButton {
    font-family: Inter;
    font-weight: 400;
    font-size: 16px;
    line-height: 25px;
    text-align: center;
    color: #666;
    padding: 6px 12px;
    opacity: 1;
    border-radius: 10px;
    border: 1px solid #d3d3d3;
    background: transparent;
    display: inline-block;
    margin-bottom: 20px;
    cursor: pointer;
}

/* Hero Title */
.hero-section h1 {
    font-family: Inter;
    font-weight: 700;
    font-size: 38px;
    line-height: 45px;
    color: #000000;
    margin-bottom: 20px;
}

.hero-section > div > p {
    font-family: Inter;
    font-size: 16px;
    width: 35rem;
    line-height: 24px;
    font-weight: 400;
    color: #0A0A0A;
    opacity: 1;
    margin-bottom: 20px;
}

/* Icons Row */
.icons-row {
    display: flex;
    gap: 24px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.icon-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-item > div:first-child {
    width: 40px;
    height: 40px;
    border: 1px solid #E5E5EB;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: white;
}

.icon-item span {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0px;
    color: #000000;
    white-space: nowrap;
}

/* Buttons Row */
.buttons-row {
    width: 100%;
    max-width: 612px;
    display: flex;
    flex-direction: row;
    gap: 25px;
    align-items: center;
    height: 46px;
    opacity: 1;
}

.buttons-row a {
    width: 174px;
    height: 46px;
    min-height: 36px;
    opacity: 1;
    border-radius: 5px;
    padding: 10px;
    background-color: white;
    color: #666666;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Inter;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #666666;
}

.buttons-row a:hover {
    background-color: #00388B;
    color: white;
    border-color: #00388B;
}

/* Hero Video */
.hero-video {
    flex-shrink: 0;
    position: relative;
    max-width: 500px;
}

.video-container {
    position: relative;
    width: 100%;
}

.video-element {
    width: 100%;
    max-width: 500px;
    height: auto;
    opacity: 1;
}

/* Overlay Images */
.overlay-images {
    position: absolute;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    opacity: 1;
}

.overlay-images img {
    object-fit: cover;
    border-radius: 5px;
}

/* Play Button */
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    z-index: 4;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Training Cards Container - افقی کنار هم */
.training-cards-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 16px;
    margin-top: 24px;
    width: 100%;
}

/* هر باکس محتوایی */
.training-card {
    flex: 1;
    min-width: 0;
    height: 160px;
    border-radius: 5px;
    box-shadow: 1px 3px 5px 0px rgba(0, 0, 0, 0.15);
    background: white;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.training-card:hover {
    transform: translateY(-2px);
    box-shadow: 2px 5px 10px 0px rgba(0, 0, 0, 0.2);
}

/* عکس درون هر باکس */
.training-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 8px;
}

/* لیبل با آیکون و متن */
.training-card .card-label {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.training-card .card-label span {
    font-family: Inter;
    font-size: 9px;
    font-weight: 700;
    color: #333;
    text-align: center;
    line-height: 1.2;
}

.training-card .card-label svg {
    flex-shrink: 0;
}

/* Section Container */
.section-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 48px 0;
}

.section-container.centered {
    text-align: center;
}

/* Section Titles */
.section-title-main {
    font-family: Inter;
    font-weight: 700;
    font-size: 38px;
    line-height: 45px;
    color: #000000;
    text-align: left;
    margin-bottom: 24px;
}

.section-title-main.centered {
    text-align: center;
}

.section-description-main {
    font-family: Inter;
    font-size: 18px;
    line-height: 27px;
    font-weight: 400;
    color: #000000;
    text-align: left;
    margin-bottom: 32px;
}

.section-description-centered {
    font-family: Inter;
    font-size: 18px;
    line-height: 27px;
    font-weight: 400;
    color: #0A0A0A;
    max-width: 800px;
    margin: 0 auto;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 40px;
}

.course-item.course-reverse {
    flex-direction: row-reverse;
}

.course-image {
    width: 400px;
    height: 300px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-content {
    flex: 1;
}

.course-title {
    font-family: Inter;
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    color: #000000;
    margin-bottom: 16px;
}

.course-description {
    font-family: Inter;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #666666;
    margin-bottom: 24px;
}

.course-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #00388B;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-family: Inter;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.course-button:hover {
    background-color: #002968;
}

/* Request Quote Section */
.request-quote-section {
    background-color: #F0F4FF;
    width: 100%;
}

/* Logo Center */
.logo-center {
    text-align: center;
    margin-bottom: 32px;
}

.logo-center img {
    width: 119px;
    height: 119px;
    opacity: 1;
    display: block;
    margin: 0 auto;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-top: 48px;
}

.benefits-grid > div {
    text-align: center;
}

.benefits-grid .icon-container {
    margin-bottom: 20px;
}

.benefits-grid svg {
    margin: 0 auto;
    display: block;
}

.benefits-grid h3 {
    font-family: Inter;
    font-weight: 700;
    font-size: 22px;
    line-height: 28px;
    color: #000000;
    margin-bottom: 16px;
}

.benefits-grid p {
    font-family: Inter;
    font-size: 18px;
    line-height: 27px;
    font-weight: 400;
    color: #0A0A0A;
}

/* Universities Grid */
.universities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.universities-grid > div {
    text-align: left;
}

.universities-grid div div {
    font-family: Inter;
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
    color: #000000;
}

/* University Logos */
.university-logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.university-logos-row > div {
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.university-logos-row img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Live Online Section */
.live-online-section {
    position: relative;
    background-image: url('../member/images/college.jpg');
    background-size: cover;
    background-position: center;
    min-height: 400px;
    width: 100%;
}

.live-online-section .blue-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 56, 139, 0.9);
    z-index: 1;
}

.live-online-section .content {
    position: relative;
    z-index: 2;
    padding: 40px 65px;
}

.live-online-section .full-width-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
}

.live-online-section .inner-container {
    width: 100%;
}

.live-online-section .content-wrapper {
    width: 100%;
}

.live-online-section .grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.live-online-section .left-content {
    text-align: left;
}

.live-online-section .section-title {
    font-family: Inter;
    font-weight: 700;
    font-size: 38px;
    line-height: 45px;
    background: linear-gradient(90deg, #E8B600 0%, #FF9D00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.live-online-section .section-description {
    font-family: Inter;
    font-size: 18px;
    line-height: 27px;
    font-weight: 400;
    color: white;
}

.live-online-section .right-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.live-online-section .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: linear-gradient(90deg, #E8B600 0%, #FF9D00 100%);
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    font-family: Inter;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.live-online-section .cta-button:hover {
    background: linear-gradient(90deg, #FF9D00 0%, #E8B600 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 182, 0, 0.4);
}

.live-online-section .text-box-container {
    width: 100%;
}

.live-online-section .text-box {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 30px;
    text-align: justify;
}

.live-online-section .text-box p {
    font-family: Inter;
    font-size: 18px;
    line-height: 27px;
    font-weight: 400;
    color: white;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-section {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-section > div > p {
        width: 100%;
        max-width: 616px;
    }
    
    .courses-grid {
        gap: 32px;
    }
    
    .course-item {
        flex-direction: column !important;
    }
    
    .course-image {
        width: 100%;
    }
    
    .buttons-row {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .benefits-grid,
    .universities-grid {
        grid-template-columns: 1fr;
    }
    
    .live-online-section .grid-layout {
        grid-template-columns: 1fr;
        gap: 0px;
    }
    
    .live-online-section .right-content {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0 60px 0;
    }
    
    .hero-section h1 {
        font-size: 28px;
        line-height: 36px;
    }
    
    .icons-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .buttons-row {
        flex-direction: column;
        height: auto;
        gap: 12px;
    }
    
    .buttons-row a {
        width: 100%;
    }
    
    .course-title {
        font-size: 20px;
        line-height: 28px;
    }
    
    .live-online-section .section-title,
    .section-title-main {
        font-size: 28px;
        line-height: 36px;
    }
    
    .live-online-section .content {
        padding: 30px 15px !important;
    }
    
    .live-online-section .grid-layout {
        gap: 20px !important;
    }
    
    .video-element {
        margin-left: 0;
        margin-top: 0;
        max-width: 100%;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        flex-direction: column;
        padding: 40px 15px;
        gap: 30px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-section h1 {
        font-size: 28px;
        line-height: 36px;
        margin-bottom: 15px;
    }
    
    .hero-section > div > p {
        width: 100%;
        font-size: 14px;
        line-height: 21px;
        margin-bottom: 15px;
    }
    
    #heroMainButton {
        font-size: 14px;
        padding: 5px 10px;
        margin-bottom: 15px;
    }
    
    .icons-row {
        gap: 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .icon-item {
        gap: 10px;
    }
    
    .icon-item > div:first-child {
        width: 32px;
        height: 32px;
        padding: 6px;
    }
    
    .icon-item span {
        font-size: 14px;
        line-height: 20px;
    }
    
    /* Hero Video Mobile */
    .hero-video {
        max-width: 100%;
        width: 100%;
    }
    
    .video-element {
        max-width: 100%;
        width: 100%;
    }
    
    /* Three images below video - Mobile */
    .hero-video .flex {
        flex-direction: row;
        gap: 10px;
        margin-top: 15px;
    }
    
    .hero-video .flex > div {
        width: calc(33.333% - 7px) !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
    }
    
    .hero-video .flex > div img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }
    
    /* Hide training cards on mobile */
    .training-cards-container {
        display: none !important;
    }
    
    /* Hide EFTI logo in hero section on mobile */
    .hero-logo {
        display: none !important;
    }
}
