/* --- Root Variables (Refined for better context) --- */
:root {
    --primary-color: #0d284a; /* Deep Navy Blue */
    --secondary-color: #f7b32d; /* Vibrant Gold Accent */
    --accent-color: #2db97e; /* A fresh green for a modern look */
    --star-color: #ffc107;
    --border-color: #e0e0e0;
    --dark-text: #2c3e50;
    --light-text: #ffffff;
    --card-bg: #ffffff; /* White background for a clean look */
    --shadow-color: rgba(0, 0, 0, 0.05);
}

/* --- Global Container --- */
.pccs-max-width-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Portfolio Section --- */
.pccs-portfolio-section {
    padding: 6rem 0; /* Adjusted padding for better vertical spacing */
    text-align: center;
    background-color: var(--light-text);
}

.pccs-section-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 3rem;
}

/* --- Category Header and Description --- */
.pccs-category-header {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding: 0 1rem;
    position: relative;
    /* On mobile, stack items for better readability */
    align-items: flex-start;
}

.pccs-course-category-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin: 0;
    text-align: left;
    position: relative;
    padding-left: 20px;
    padding-right: 10px;
}

.pccs-course-category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    width: 5px;
    background-color: var(--secondary-color);
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.pccs-category-description {
    color: var(--dark-text);
    opacity: 0.8;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    text-align: left;
}

/* --- Course Grid and Cards --- */
.pccs-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.pccs-portfolio-card {
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.pccs-portfolio-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.pccs-portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.pccs-portfolio-card.hidden {
    display: none;
}

.pccs-portfolio-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.pccs-image-wrapper {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
    background-color: #e9ecef;
}

.pccs-portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.pccs-portfolio-card:hover .pccs-portfolio-image {
    transform: scale(1.1);
}

.pccs-card-title {
    font-size: 1rem;
    font-weight: 600;
    padding: 1.5rem 1rem;
    margin: 0;
    color: var(--light-text);
    transition: color 0.4s ease;
}

.pccs-portfolio-card:hover .pccs-card-title {
    color: var(--light-text);
}

/* --- Show More Button --- */
.pccs-show-more-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.6rem 1.8rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem; /* Add space on mobile to separate from title */
    align-self: flex-start; /* Aligns the button to the left */
}

.pccs-show-more-btn:hover {
    background-color: var(--accent-color);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .pccs-portfolio-section {
        padding: 4rem 0; /* Reduced padding on mobile */
    }
   

    .pccs-show-more-btn {
        margin-top: 1rem;
        width: 100%; /* Make button full-width for easier tapping */
        text-align: center;
        align-self: center; /* Center the button */
        max-width: 250px;
    }
    
    .pccs-course-category-title, .pccs-category-description {
        padding-left: 1rem; /* Adjust padding to align with container */
    }

    .pccs-course-category-title::before {
        left: 1rem; /* Adjust the position of the yellow line */
    }
}

@media (max-width: 576px) {
    .pccs-portfolio-grid {
        gap: 1.5rem; /* Reduced gap between cards for a tighter layout */
    }
    .pccs-course-category-title::before {
        left: 0px; /* Adjust the position of the yellow line */
    }
    .pccs-category-header {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    padding: 0 1rem;
    position: relative;
    /* On mobile, stack items for better readability */
}
    
}