/* --- Qualifications (Education) Section Styling --- */
.qualifications-section {
    padding: 80px 0; /* Consistent padding with other sections */
    background-color: #f8f8f8; /* Light background for a clean look */
    text-align: center;
}

.qualifications-section .section-header {
    margin-bottom: 50px;
}

.qualifications-section .section-title {
    font-size: 2.5rem;
    color: #2c3e50; /* Darker, professional title color */
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.qualifications-section .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #007bff; /* Primary accent color */
    margin: 10px auto 0;
    border-radius: 2px;
}

.qualifications-section .section-subtitle {
    font-size: 1.1rem;
    color: #777;
    max-width: 700px;
    margin: 0 auto;
}

.qualifications-container {
    display: flex; /* Use flexbox for layout */
    justify-content: center; /* Center the column if it's single */
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.qualifications-column {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    text-align: left;
    width: 100%; /* Ensure it takes full width as per your HTML */
    max-width: 800px; /* Optional: Set a max-width for content elegance */
}

.qualifications-subtitle {
    font-size: 1.8rem;
    color: #34495e; /* Slightly lighter dark color */
    margin-bottom: 25px;
    border-bottom: 2px solid #eee; /* Subtle underline */
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
}

.qualifications-subtitle i {
    color: #007bff; /* Accent color for icons */
    font-size: 1.5rem;
}

/* Academic Table Styling */
.academic-table-container {
    overflow-x: auto; /* Ensures table is scrollable on small screens */
}

.academic-table {
    width: 100%;
    border-collapse: collapse; /* Remove space between cells */
    margin-top: 20px;
    font-size: 0.95rem;
}

.academic-table th,
.academic-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0; /* Light border for rows */
    text-align: left;
}

.academic-table th {
    background-color: #f2f2f2; /* Light grey background for headers */
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.academic-table tbody tr:last-child td {
    border-bottom: none; /* No border for the last row */
}

.academic-table tbody tr:hover {
    background-color: #fefefe; /* Subtle hover effect */
}

.academic-table td strong {
    color: #007bff; /* Highlight the award/degree name */
}

/* Responsive adjustments for Qualifications */
@media (max-width: 768px) {
    .qualifications-column {
        padding: 30px;
    }
    .qualifications-subtitle {
        font-size: 1.5rem;
    }
    .academic-table th,
    .academic-table td {
        padding: 10px;
    }
}


/* --- Skills Section Styling --- */
.skills-section {
    padding: 80px 0;
    background-color: #ffffff; /* White background */
    text-align: center;
}

.skills-section .section-header {
    margin-bottom: 50px;
}

.skills-section .section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.skills-section .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #007bff;
    margin: 10px auto 0;
    border-radius: 2px;
}

.skills-section .section-subtitle {
    font-size: 1.1rem;
    color: #777;
    max-width: 700px;
    margin: 0 auto;
}

.skills-container {
    display: flex;
    flex-wrap: wrap; /* Allows columns to wrap on smaller screens */
    justify-content: center; /* Center columns */
    gap: 30px; /* Space between columns */
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-column {
    background-color: #fcfcfc; /* Slightly off-white for internal cards */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05); /* Lighter shadow */
    text-align: left;
    flex: 1; /* Allows columns to grow and shrink */
    min-width: 300px; /* Minimum width for columns before wrapping */
    max-width: 550px; /* Max width to prevent too wide columns */
}

.skills-subtitle {
    font-size: 1.8rem;
    color: #34495e;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-subtitle i {
    color: #007bff;
    font-size: 1.5rem;
}

/* Skills List Styling (Programming Languages, Frameworks, etc.) */
.skills-list h4 {
    font-size: 1.2rem;
    color: #444;
    margin-top: 20px;
    margin-bottom: 10px;
    border-left: 4px solid #007bff; /* Accent border */
    padding-left: 10px;
}

.skills-list ul {
    list-style: none; /* Remove default bullet points */
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Allow skills to wrap */
    gap: 8px; /* Space between list items */
}

.skills-list ul li {
    background-color: #eaf6ff; /* Light blue background for skill tags */
    color: #0056b3; /* Darker blue text */
    padding: 8px 15px;
    border-radius: 20px; /* Pill shape */
    font-size: 0.9rem;
    white-space: nowrap; /* Prevent breaking into multiple lines */
    border: 1px solid #cce0ff;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.skills-list ul li:hover {
    background-color: #d8edff;
    transform: translateY(-2px);
}


/* Language Table Styling */
.languages-table-container {
    overflow-x: auto;
    margin-top: 30px; /* Space from previous content */
}

.languages-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.languages-table th,
.languages-table td {
    padding: 12px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.languages-table th {
    background-color: #f2f2f2;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.languages-table tbody tr:hover {
    background-color: #fefefe;
}

/* Hobbies & Interests Grid Styling */
.hobbies-container {
    margin-top: 20px;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* 2-3 columns on larger screens */
    gap: 15px; /* Space between hobby items */
}

.hobby-item {
    background-color: #eaf9ed; /* Light green background */
    color: #28a745; /* Green text */
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid #d4edda;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.hobby-item:hover {
    background-color: #d1ecf1; /* Light blue on hover */
    color: #007bff;
    transform: translateY(-3px);
}

.hobby-item i {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #28a745; /* Icon color */
}
/* Adjusting hobby-item icon color on hover */
.hobby-item:hover i {
    color: #007bff; /* Change icon color on hover */
}


/* Responsive adjustments for Skills */
@media (max-width: 992px) {
    .skills-column {
        min-width: unset; /* Remove min-width to allow more flexible wrapping */
        flex-basis: 100%; /* Take full width on smaller screens */
        max-width: 600px; /* Keep a max width even when full width */
    }
    .skills-container {
        flex-direction: column; /* Stack columns vertically */
        align-items: center; /* Center stacked columns */
    }
    .hobbies-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* More compact hobby grid */
    }
}

@media (max-width: 576px) {
    .skills-list ul li {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    .languages-table th,
    .languages-table td {
        padding: 8px;
        font-size: 0.9rem;
    }
    .hobbies-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    .hobby-item {
        font-size: 0.8rem;
        padding: 10px;
    }
    .hobby-item i {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
}