:root {
    --primary-color: #1e4c9a;
    --secondary-color: #D6E4F0;
    --text-color: #333;
    --white: #ffffff;
}

#nav-portfolio {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
}

body {
    line-height: 1.6;
}

/* Raising Stars Section */
.raising-stars {
    padding: 4rem 5%;
    text-align: center;
}

.companies-slider {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    margin-top: 2rem;
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 36px;
    align-items: center;
    justify-content: center;
}

.company-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 250px;
}

.company-logo-p {
    width: 200px;
    height: auto;
    object-fit: cover;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transform: scale(0.8);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Esteemed Partner Section */
.esteemed-partner {
    text-align: center;
    padding: 4rem 5%;
}

.partner-logo img {
    max-width: 800px;
    margin-top: 2rem;
}

/* Incubated Companies Section */
.incubated-companies {
    padding: 60px 40px;
    background-color: #fff5f3;
    position: relative;
    text-align: center;
    border-radius: 36px;
    max-width: 1200px;
    margin: 0 auto 2rem;
    border: 3.5px solid #2a74c8;
}

.incubated-companies h2 {
    color: var(--primary-color);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
}

.subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 40px;
}

.companies-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.company-card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.353), 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 2rem;
    align-items: center;
    text-align: left;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
    max-width: 1250px;
    min-height: 260px;
}

.company-logo {
    width: 200px;
    height: auto;
    object-fit: cover;
    margin-right: 2rem;
}

.company-card img {
    width: 200px;
    height: auto;
    object-fit: cover;
    margin-right: 2rem;
}

.company-info {
    flex: 1;
    min-width: 500px;
}

.company-info h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.company-info p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.know-more {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.know-more:hover {
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 10px;
}

.navigation-arrows {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.navigation {
    display: flex;
    gap: 4rem;
    justify-content: end;
    align-items: flex-end;
    margin-top: 1.5rem;
}

.nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1E4C9A;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.nav-btn:hover {
    background: whitesmoke;
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.navigation-arrows button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.navigation-arrows button:hover {
    background-color: #163c7a;
}

/* Success Stories Section */
.success-stories {
    padding: 4rem 5%;
    text-align: center;
}

.stories-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;  /* Ensures cards are centered */
    padding: 1rem;
    flex-wrap: wrap;  /* Allows wrapping of cards on smaller screens */
}

.success-stories-s {
    background-color: #D6E4F0;
    text-align: center;
    max-width: 100%;
    margin: 0 auto 5rem;
    padding: 0.1rem 2rem;
    margin-top: 2rem;
}

h1 {
    color: #1e3a8a;
    font-size: 2rem;
    margin: 3rem 0 0.5rem;
}

.subtitle-s {
    color: #475569;
    margin-bottom: 3rem;
}

.cards-container-s {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;  /* Allows cards to wrap on smaller screens */
    justify-content: center;  /* Center the cards */
}

.card-s {
    margin-top: 0.5rem;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    width: 320px; /* Set a default width */
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}

.card-s:hover {
    transform: translateY(-5px);
}

.company-logo-s {
    width: 160px;
    height: 160px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo-s img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.5rem;
}

.testimonial-s {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.author-s {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.author-image-s {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info-s h3 {
    color: #1e3a8a;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.author-info-s p {
    color: #6b7280;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .success-stories-s {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .card-s {
        width: 280px;  /* Adjust width on medium screens */
        padding: 1.5rem;
    }

    .cards-container-s {
        gap: 1.5rem; /* Reduce gap between cards */
    }

    .navigation {
        gap: 10rem;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    .subtitle-s {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .card-s {
        width: 100%;  
        padding: 1.25rem;
    }

    .cards-container-s {
        gap: 1rem; 
    }
}

@media screen and (max-width: 600px) {
    .company-card{
        flex-direction: column;
        text-align: center;
    }

    .know-more{
        position: static;
        transform: none;
        margin-top: 1rem;
        align-items: center;
    }

    .company-info{
        min-width: auto;
        text-align: left;
    }

    .company-info p{
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .company-card img{
        margin: 0;
        width: auto;
        height: 40px;
    }
}