/* ==========================================================================
   COMPONENTS: BUTTONS, CARDS, FAQ, TIMELINE, MODALS, ETC.
   ========================================================================== */

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:active {
    transform: scale(0.97);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(26, 95, 122, 0.4);
}

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ===== HERO CARDS & QUICK LINKS ===== */
.hero-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.hero-card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.hero-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.hero-card-subtitle {
    font-size: 14px;
    color: var(--gray);
}

.quick-links {
    display: grid;
    gap: 15px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--light);
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-link:hover {
    background: white;
    border-color: var(--primary);
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(26, 95, 122, 0.1);
}

.quick-link i {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.quick-link span {
    font-weight: 600;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    animation: floatCard 4s ease-in-out infinite;
}

.floating-card-1 {
    top: -30px;
    right: -30px;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: -20px;
    left: -40px;
    animation-delay: 2s;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.floating-card-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-card-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.floating-card-icon.green {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.floating-card-icon.gold {
    background: rgba(255, 193, 7, 0.1);
    color: var(--gold);
}

.floating-card-text strong {
    display: block;
    font-size: 18px;
    color: var(--dark);
}

.floating-card-text span {
    font-size: 12px;
    color: var(--gray);
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26, 95, 122, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: white;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.service-description {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.service-link:hover {
    gap: 12px;
}

/* ===== PROGRAMS GRID ===== */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.program-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.program-image {
    height: 160px;
    background: var(--gradient);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: white;
}

.program-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: var(--dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.program-content {
    padding: 25px;
}

.program-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.program-info {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.program-info span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--gray);
}

.program-info i {
    color: var(--primary);
}

.program-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.program-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

/* ===== FEATURES (WHY CHOOSE US) ===== */
.features-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.features-image {
    position: relative;
}

.features-list {
    display: grid;
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateX(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(26, 95, 122, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.feature-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.feature-content p {
    color: var(--gray);
    line-height: 1.6;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-quote {
    font-size: 60px;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: serif;
}

.testimonial-text {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 55px;
    height: 55px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.testimonial-info h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

.testimonial-info span {
    font-size: 13px;
    color: var(--gray);
}

.testimonial-rating {
    margin-top: 15px;
    color: var(--gold);
}

/* ===== NEWS CARDS ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 50px;
}

.news-content {
    padding: 25px;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 12px;
}

.news-date i {
    color: var(--primary);
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-excerpt {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ===== DIRECTOR GENERAL LETTER ===== */
.dg-section {
    background: linear-gradient(135deg, var(--light) 0%, white 100%);
}

.dg-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: start;
}

.dg-image .image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.director-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: 65% 20%;
    display: block;
    background: var(--gradient);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.image-wrapper:hover .image-overlay {
    transform: translateY(0);
}

.director-info h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.director-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.message-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
}

.message-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 30px;
    font-size: 6rem;
    color: var(--gold);
    font-family: serif;
    opacity: 0.3;
}

.greeting {
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.message-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--gray);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.signature {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--light);
}

.signature-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

.signature-title {
    color: var(--primary);
    font-size: 0.95rem;
}

/* ===== ABOUT & TIMELINE ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--gray);
}

.mission-vision {
    display: grid;
    gap: 2rem;
}

.mission,
.vision {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border-right: 4px solid var(--gold);
}

.mission h3,
.vision h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.mission p,
.vision p {
    color: var(--gray);
    line-height: 1.8;
}

.timeline {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.timeline-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 2rem;
    text-align: center;
}

.timeline-items {
    position: relative;
    padding-right: 30px;
}

.timeline-items::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding: 1.5rem 2rem 1.5rem 0;
    margin-bottom: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 1.8rem;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary);
}

.timeline-year {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.timeline-content h4 {
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== EDUCATIONAL PLATFORM SECTION ===== */
.platform-section {
    background: linear-gradient(135deg, var(--light) 0%, white 100%);
}

.platform-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.platform-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 2rem;
}

.platform-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.platform-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.platform-feature-icon {
    font-size: 2rem;
    min-width: 50px;
}

.platform-feature h4 {
    color: var(--dark);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.platform-feature p {
    color: var(--gray);
    font-size: 0.9rem;
}

.platform-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.platform-mockup {
    position: relative;
}

.mockup-screen {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.mockup-header {
    background: var(--dark);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

.mockup-dots span:nth-child(2) {
    background: #ffbd2e;
}

.mockup-dots span:nth-child(3) {
    background: #27ca40;
}

.mockup-url {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    flex: 1;
    text-align: center;
}

.mockup-content img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.floating-stats {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-bubble {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
    animation: floatCard 4s ease-in-out infinite;
}

.stat-bubble:nth-child(2) {
    animation-delay: 1s;
}

.stat-bubble:nth-child(3) {
    animation-delay: 2s;
}

.stat-bubble .stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-bubble .stat-text {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ===== TWO-LEVEL FAQ ACCORDION ===== */
.faq-section {
    background: linear-gradient(180deg, white 0%, var(--light) 50%, white 100%);
    position: relative;
    overflow: hidden;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-group {
    margin-bottom: 16px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.faq-group.active {
    box-shadow: 0 8px 35px rgba(26, 95, 122, 0.12);
    border-color: var(--primary);
}

.faq-group-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 25px;
    background: white;
    cursor: pointer;
    border: none;
    width: 100%;
    font-family: inherit;
    transition: all 0.3s ease;
}

.faq-group.active .faq-group-header {
    background: var(--gradient);
    color: white;
}

.faq-group-header .group-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-group.active .faq-group-header .group-icon {
    background: rgba(255, 255, 255, 0.2);
}

.faq-group-header .group-title {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    text-align: right;
    transition: color 0.3s ease;
}

.faq-group.active .faq-group-header .group-title {
    color: white;
}

.faq-group-header .group-count {
    background: rgba(26, 95, 122, 0.1);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.faq-group.active .faq-group-header .group-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.faq-group-header .group-chevron {
    font-size: 14px;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-group.active .faq-group-header .group-chevron {
    transform: rotate(180deg);
    color: white;
}

.faq-group-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--light);
}

.faq-group-body-inner {
    padding: 15px 20px 20px;
}

/* FAQ Item */
.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(26, 95, 122, 0.15);
}

.faq-item.active {
    border-color: rgba(46, 125, 50, 0.4);
    box-shadow: 0 8px 30px rgba(46, 125, 50, 0.1);
    background: rgba(46, 125, 50, 0.03);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    text-align: right;
    transition: color 0.3s ease;
    line-height: 1.6;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-num {
    min-width: 38px;
    height: 38px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-item.active .faq-num {
    background: linear-gradient(135deg, #2e7d32, #43a047);
    transform: scale(1.05);
}

.faq-question-text {
    flex: 1;
}

.faq-chevron {
    color: var(--primary);
    font-size: 14px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: #2e7d32;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
    padding: 0 25px 22px 25px;
    color: var(--gray);
    line-height: 2;
    font-size: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 18px;
    margin: 0 15px;
}

.faq-answer-inner p {
    margin-bottom: 10px;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.faq-answer-inner strong {
    color: var(--dark);
}

.faq-answer-inner a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed rgba(26, 95, 122, 0.4);
    transition: all 0.3s;
}

.faq-answer-inner a:hover {
    border-bottom-style: solid;
}

.faq-list {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.faq-list li {
    padding: 4px 20px 4px 0;
    position: relative;
}

.faq-list li::before {
    content: '—';
    position: absolute;
    right: 0;
    color: var(--primary);
    font-weight: 700;
}

.faq-steps {
    padding-right: 25px;
    margin: 8px 0;
}

.faq-steps li {
    padding: 4px 0;
}

.faq-note {
    background: rgba(255, 152, 0, 0.08);
    border-right: 4px solid #ff9800;
    border-radius: 10px;
    padding: 15px 20px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.9;
    color: #5d4037;
}

.faq-note strong {
    color: #e65100;
}

.faq-note i {
    color: #ff9800;
    margin-left: 6px;
}

.faq-cta-box {
    text-align: center;
    margin-top: 50px;
    padding: 35px;
    background: var(--gradient);
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.faq-cta-box p {
    margin-bottom: 18px;
    font-size: 19px;
    font-weight: 700;
    position: relative;
}

/* Special Business FAQ Group */
.faq-group--business {
    border: 2px solid rgba(183, 149, 11, 0.25);
    background: linear-gradient(135deg, rgba(255, 248, 225, 0.5), rgba(255, 243, 205, 0.3));
    position: relative;
    overflow: visible;
}

.faq-group--business::before {
    content: '⭐ خاص بالمؤسسات';
    position: absolute;
    top: -14px;
    left: 25px;
    background: var(--gradient-gold);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 18px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(249, 168, 37, 0.35);
    z-index: 1;
    letter-spacing: 0.5px;
}

.faq-group--business .faq-group-header .group-icon {
    background: var(--gradient-gold);
}

.faq-group--business .faq-group-header .group-title {
    color: #5d4037;
}

.faq-group--business .faq-group-header .group-count {
    background: rgba(249, 168, 37, 0.15);
    color: #e65100;
}

.faq-group--business .faq-group-header .group-chevron {
    color: #f9a825;
}

.faq-group--business.active {
    border-color: #f9a825;
    box-shadow: 0 8px 35px rgba(249, 168, 37, 0.18);
}

.faq-group--business.active .faq-group-header {
    background: var(--gradient-gold);
}

.faq-group--business.active .faq-group-header .group-icon {
    background: rgba(255, 255, 255, 0.25);
}

.faq-group--business.active .faq-group-header .group-count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.faq-group--business.active .faq-group-header .group-chevron {
    color: white;
}

.faq-group--business .faq-group-body {
    background: rgba(255, 248, 225, 0.4);
}

/* ===== DEPARTMENT CONTACT CARDS ===== */
.departments-section {
    background-color: var(--light);
    padding-bottom: 80px;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.department-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 5px solid var(--primary);
    display: flex;
    flex-direction: column;
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.department-card.blue-border { border-top-color: var(--primary); }
.department-card.green-border { border-top-color: var(--success); }
.department-card.gold-border { border-top-color: var(--gold); }
.department-card.teal-border { border-top-color: var(--secondary); }

.department-header {
    padding: 25px;
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0.5), white);
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.department-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    font-size: 24px;
    color: var(--primary);
}

.department-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.department-subtitle {
    font-size: 0.9rem;
    color: var(--gray);
}

.department-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--gray);
    font-size: 0.95rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 35px;
    height: 35px;
    background: rgba(26, 95, 122, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
}

.contact-action {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--light);
    color: var(--dark);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-action:hover {
    background: var(--primary);
    color: white;
}

/* ===== PROGRAMS TABS & TABLE ===== */
.programs-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 14px;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.programs-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.programs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.programs-table thead {
    background: var(--gradient);
    color: white;
}

.programs-table th {
    padding: 16px 12px;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.programs-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    vertical-align: middle;
}

.programs-table tbody tr:hover {
    background: rgba(26, 95, 122, 0.05);
}

.programs-table tbody tr:last-child td {
    border-bottom: none;
}

.certificate-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.certificate-badge.cap {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.certificate-badge.cmp {
    background: rgba(26, 95, 122, 0.1);
    color: var(--primary);
}

.certificate-badge.tech {
    background: rgba(155, 89, 182, 0.1);
    color: #8e44ad;
}

.certificate-badge.ts {
    background: rgba(230, 126, 34, 0.1);
    color: #d35400;
}

.lang-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin: 1px;
}

.lang-badge.fr {
    background: rgba(52, 152, 219, 0.1);
    color: #2980b9;
}

.lang-badge.ar {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.price-tag {
    font-weight: 700;
    color: var(--primary);
}

.duration-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--gray);
}

/* ===== INTERNATIONAL COOPERATION ===== */
.cooperation-section {
    background: var(--light);
}

.cooperation-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.cooperation-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto;
}

.cooperation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.partners-grid {
    display: grid;
    gap: 1.5rem;
}

.partner-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.partner-flag {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.partner-info h4 {
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.partner-info > p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.partner-programs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.program-badge-small {
    background: rgba(26, 95, 122, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.projects-timeline {
    display: grid;
    gap: 1.5rem;
}

.project-item {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 1.5rem;
}

.project-year-badge {
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    height: fit-content;
}

.project-content h4 {
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.project-content > p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.project-partners {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.partner-tag {
    background: var(--light);
    color: var(--dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-status {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-status.completed {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.project-status.active {
    background: rgba(255, 193, 7, 0.1);
    color: #d68910;
}

.cooperation-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.cooperation-stats .stat-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.cooperation-stats .stat-card:hover {
    transform: translateY(-5px);
}

.cooperation-stats .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cooperation-stats .stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.cooperation-stats .stat-card .stat-label {
    color: var(--gray);
    font-size: 1rem;
}

/* ===== REGISTRATION STEPS (FAQ Component) ===== */

.ppm-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    text-align: right;
}

.ppm-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.ppm-step.step-active {
    border-color: var(--primary);
    background: rgba(26, 95, 122, .04);
    box-shadow: 0 4px 14px rgba(26, 95, 122, .1);
}

.ppm-step.step-warning {
    border-color: var(--gold);
    background: rgba(255, 193, 7, .05);
}

.ppm-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-active .ppm-step-num {
    background: var(--gradient);
    color: #fff;
}

.step-warning .ppm-step-num {
    background: var(--gold);
    color: #1a1a2e;
}

.ppm-step-content {
    flex: 1;
    min-width: 0;
}

.ppm-step-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.step-active .ppm-step-label { color: var(--primary); }
.step-warning .ppm-step-label { color: #b57a00; }

.ppm-step-text {
    font-size: 13px;
    color: var(--dark);
    font-weight: 600;
    line-height: 1.5;
}

.ppm-step-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    padding: 5px 12px;
    border: 1.5px solid var(--primary);
    border-radius: 6px;
    transition: background .2s, color .2s;
}

.ppm-step-link:hover {
    background: var(--primary);
    color: #fff;
}



/* ===== ANNEXES PAGE SPECIFIC STYLES ===== */
.page-header {
    background: linear-gradient(rgba(26, 95, 122, 0.85), rgba(21, 152, 149, 0.85));
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.annex-feature {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    transition: var(--transition);
}

.annex-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.annex-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 5px solid var(--primary);
}

.annex-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.annex-info p {
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.annex-visual {
    position: relative;
    height: 100%;
    min-height: 350px;
    cursor: pointer;
    overflow: hidden;
}

.annex-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.annex-visual:hover img {
    transform: scale(1.05);
}

.zoom-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.border-blue { border-right-color: var(--primary); }
.border-blue h3 { color: var(--primary); }
.border-green { border-right-color: var(--success); }
.border-green h3 { color: var(--success); }
.border-gold { border-right-color: var(--gold); }
.border-gold h3 { color: #d4ac0d; }
.border-teal { border-right-color: var(--secondary); }
.border-teal h3 { color: var(--secondary); }
.border-red { border-right-color: var(--danger); }
.border-red h3 { color: var(--danger); }

@media (max-width: 992px) {
    .annex-feature {
        grid-template-columns: 1fr;
    }
    .annex-info {
        border-right: none;
        border-top: 5px solid var(--primary);
        padding: 25px;
    }
    .annex-visual {
        min-height: 250px;
    }
}
