/**
 * Student Service Page Premium Design Styles
 * 
 * Following Gateway College architecture:
 * - Uses .cpt-scope namespace for isolation
 * - Works with cpt-isolation.css for Astra overrides
 * - Full-width sections with centered content containers
 * - Uses theme font-family (no custom imports)
 * 
 * Brand Colors:
 * - Navy: #262474
 * - Blue: #1b60aa
 * - Teal: #24906b
 * - Green: #6db460
 * 
 * @package Gateway_College
 * @since 1.0.0
 */

/* ==============================================
   CSS Variables & Base Styles
   ============================================== */

.cpt-scope[data-page="student-service"] {
    --gateway-navy: #262474;
    --gateway-blue: #1b60aa;
    --gateway-teal: #24906b;
    --gateway-green: #6db460;
    --gateway-gray-100: #f7f9fb;
    --gateway-gray-600: #6b7280;
    --gateway-gray-800: #374151;
    --gateway-black: #1a1a2e;
    --gateway-white: #ffffff;
}

/* ==============================================
   Hero Section - Gradient Background
   ============================================== */

.cpt-scope .gw-student-service-hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #1b60aa 0%, #262474 40%, #24906b 100%);
    margin-top: -4em !important;
}

.cpt-scope .gw-student-service-hero-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.cpt-scope .gw-student-service-hero-content {
    z-index: 2;
    position: relative;
    margin-bottom: 80px;
    padding-left: 24px;
    padding-right: 24px;
}

.cpt-scope .gw-student-service-display-title {
    margin: 0 0 1rem 0;
    color: var(--gateway-white);
    opacity: 0;
    animation: fadeUpStudentService 0.6s ease forwards 0.4s;
}

@keyframes fadeUpStudentService {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cpt-scope .gw-student-service-hero-description {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    opacity: 0;
    animation: fadeUpStudentService 0.6s ease forwards 0.6s;
}

/* ==============================================
   Section Base Styles
   ============================================== */

.cpt-scope .gw-student-service-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 80px 24px;
}

.cpt-scope .gw-student-service-section-white {
    background: #ffffff;
}

.cpt-scope .gw-student-service-section-gray {
    background: var(--gateway-gray-100);
}

.cpt-scope .gw-student-service-container {
    max-width: 1200px;
    margin: 0 auto;
        padding: 0 24px;
}

.cpt-scope .gw-student-service-section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 12px;
}

.cpt-scope .gw-student-service-section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin: 0 0 48px 0;
    color: var(--gateway-navy);
}

/* Color utilities */
.cpt-scope .gw-student-service-text-navy { color: var(--gateway-navy); }
.cpt-scope .gw-student-service-text-blue { color: var(--gateway-blue); }
.cpt-scope .gw-student-service-text-teal { color: var(--gateway-teal); }
.cpt-scope .gw-student-service-text-green { color: var(--gateway-green); }

/* ==============================================
   Cards Grid - Internship Section
   ============================================== */

.cpt-scope .gw-student-service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.cpt-scope .gw-student-service-card {
    background: var(--gateway-white);
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(38, 36, 116, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cpt-scope .gw-student-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 60px rgba(38, 36, 116, 0.12);
}

/* Card corner variants - 3 rounded + 1 square (60px radius) */
.cpt-scope .gw-student-service-card-corner-br {
    border-radius: 60px 60px 0 60px;
}

.cpt-scope .gw-student-service-card-corner-bl {
    border-radius: 60px 60px 60px 0;
}

.cpt-scope .gw-student-service-card-corner-tr {
    border-radius: 60px 0 60px 60px;
}

.cpt-scope .gw-student-service-card-corner-tl {
    border-radius: 0 60px 60px 60px;
}

.cpt-scope .gw-student-service-card-number {
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 140px;
    font-weight: 800;
    color: rgba(38, 36, 116, 0.04);
    line-height: 1;
    pointer-events: none;
}

.cpt-scope .gw-student-service-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gateway-navy);
    margin: 0 0 20px 0;
    position: relative;
}

.cpt-scope .gw-student-service-card-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--gateway-teal), var(--gateway-green));
    border-radius: 2px;
    margin-top: 16px;
}

.cpt-scope .gw-student-service-card-text {
    color: var(--gateway-gray-600);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
    position: relative;
}

.cpt-scope .gw-student-service-tag {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(36, 144, 107, 0.1), rgba(109, 180, 96, 0.1));
    color: var(--gateway-teal);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    margin-top: 20px;
}

/* ==============================================
   Support Section - Icon Cards
   ============================================== */

.cpt-scope .gw-student-service-support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.cpt-scope .gw-student-service-support-card {
    background: var(--gateway-gray-100);
    border-radius: 60px 60px 60px 0;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(38, 36, 116, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cpt-scope .gw-student-service-support-card:nth-child(2) {
    border-radius: 60px 60px 0 60px;
}

.cpt-scope .gw-student-service-support-card:nth-child(3) {
    border-radius: 0 60px 60px 60px;
}

.cpt-scope .gw-student-service-support-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 60px rgba(38, 36, 116, 0.12);
}

.cpt-scope .gw-student-service-support-icon {
    width: 72px;
    height: 72px;
    border-radius: 24px 24px 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.cpt-scope .gw-student-service-support-icon svg {
    width: 32px;
    height: 32px;
}

.cpt-scope .gw-student-service-icon-purple {
    background: linear-gradient(135deg, var(--gateway-navy), var(--gateway-blue));
}

.cpt-scope .gw-student-service-icon-blue {
    background: linear-gradient(135deg, var(--gateway-blue), var(--gateway-teal));
}

.cpt-scope .gw-student-service-icon-green {
    background: linear-gradient(135deg, var(--gateway-teal), var(--gateway-green));
}

.cpt-scope .gw-student-service-support-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gateway-navy);
    margin: 0 0 16px 0;
}

.cpt-scope .gw-student-service-support-text {
    color: var(--gateway-gray-600);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

.cpt-scope .gw-student-service-support-list {
    list-style: none;
    margin: 20px 0 0 0;
    padding: 0;
}

.cpt-scope .gw-student-service-support-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--gateway-gray-600);
}

.cpt-scope .gw-student-service-support-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--gateway-green);
    border-radius: 50%;
}

/* ==============================================
   FAQ Section - Two Column Layout
   ============================================== */

.cpt-scope .gw-student-service-faq-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.cpt-scope .gw-student-service-faq-intro {
    position: sticky;
    top: 100px;
}

.cpt-scope .gw-student-service-faq-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--gateway-navy);
    letter-spacing: -1px;
    margin: 0 0 20px 0;
}

.cpt-scope .gw-student-service-faq-desc {
    color: var(--gateway-gray-600);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0 0 32px 0;
}

.cpt-scope .gw-student-service-contact-btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--gateway-navy), var(--gateway-blue));
    color: var(--gateway-white);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.cpt-scope .gw-student-service-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(38, 36, 116, 0.3);
}

/* FAQ List */
.cpt-scope .gw-student-service-faq-list {
    display: flex;
    flex-direction: column;
}

.cpt-scope .gw-student-service-faq-item {
    border-bottom: 1px solid #e8ecf0;
}

.cpt-scope .gw-student-service-faq-item:last-child {
    border-bottom: none;
}

.cpt-scope .gw-student-service-faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 24px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-family: inherit;
}

.cpt-scope .gw-student-service-faq-question span {
    color: var(--gateway-navy);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.5;
}

.cpt-scope .gw-student-service-faq-question:hover span {
    color: var(--gateway-blue);
}

.cpt-scope .gw-student-service-faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--gateway-navy);
}

.cpt-scope .gw-student-service-faq-icon svg {
    transition: transform 0.3s ease;
}

.cpt-scope .gw-student-service-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.cpt-scope .gw-student-service-faq-answer p {
    color: var(--gateway-gray-600);
    line-height: 1.7;
    padding-right: 52px;
    margin: 0;
}

/* FAQ Open State */
.cpt-scope .gw-student-service-faq-open .gw-student-service-faq-icon {
    background: var(--gateway-teal);
    color: white;
}

.cpt-scope .gw-student-service-faq-open .gw-student-service-faq-icon svg {
    transform: rotate(180deg);
}

.cpt-scope .gw-student-service-faq-open .gw-student-service-faq-answer {
    max-height: 300px;
    padding-bottom: 24px;
}

/* ==============================================
   CTA Banner Section
   ============================================== */

.cpt-scope .gw-student-service-cta-banner {
    background: linear-gradient(135deg, var(--gateway-navy) 0%, var(--gateway-blue) 50%, var(--gateway-teal) 100%);
    border-radius: 60px 60px 60px 0;
    padding: 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cpt-scope .gw-student-service-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.cpt-scope .gw-student-service-cta-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gateway-white);
    margin: 0 0 16px 0;
    position: relative;
}

.cpt-scope .gw-student-service-cta-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin: 0 0 32px 0;
    position: relative;
}

.cpt-scope .gw-student-service-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: var(--gateway-white);
    color: var(--gateway-navy);
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.cpt-scope .gw-student-service-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    color: var(--gateway-navy);
}

/* ==============================================
   Responsive Design
   ============================================== */

@media (max-width: 992px) {
    .cpt-scope .gw-student-service-support-grid {
        grid-template-columns: 1fr;
    }
    
    .cpt-scope .gw-student-service-support-card,
    .cpt-scope .gw-student-service-support-card:nth-child(2),
    .cpt-scope .gw-student-service-support-card:nth-child(3) {
        border-radius: 60px 60px 60px 0;
    }
    
    .cpt-scope .gw-student-service-faq-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cpt-scope .gw-student-service-faq-intro {
        position: static;
    }
}

@media (max-width: 768px) {
    .cpt-scope .gw-student-service-section {
        padding: 60px 20px;
    }
    
    .cpt-scope .gw-student-service-hero-grid {
        min-height: 400px;
    }
    
    .cpt-scope .gw-student-service-display-title {
        font-size: 3rem;
    }
    
    .cpt-scope .gw-student-service-hero-content {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .cpt-scope .gw-student-service-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .cpt-scope .gw-student-service-card {
        padding: 32px;
    }
    
    .cpt-scope .gw-student-service-card-number {
        font-size: 100px;
    }
    
    .cpt-scope .gw-student-service-support-card {
        padding: 32px;
    }
    
    .cpt-scope .gw-student-service-faq-title {
        font-size: 2rem;
    }
    
    .cpt-scope .gw-student-service-faq-question span {
        font-size: 0.95rem;
    }
    
    .cpt-scope .gw-student-service-faq-answer p {
        padding-right: 0;
    }
    
    .cpt-scope .gw-student-service-cta-banner {
        padding: 48px 32px;
        border-radius: 40px 40px 40px 0;
    }
    
    .cpt-scope .gw-student-service-cta-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .cpt-scope .gw-student-service-display-title {
        font-size: 2.5rem;
    }
    
    .cpt-scope .gw-student-service-section-title {
        font-size: 1.75rem;
    }
    
    .cpt-scope .gw-student-service-cta-btn {
        padding: 16px 32px;
        width: 100%;
        justify-content: center;
    }
}