/* Variables for Theme */
:root {
    --primary-color: #5d3f9e; /* Premium Purple */
    --primary-dark: #463077;
    --primary-light: #8e7ec2;
    --secondary-color: #f7b731; /* Accent Gold/Yellow (Contrast) */
    --text-dark: #333;
    --text-light: #f4f4f4;
    --bg-light: #ffffff;
    --bg-dark: #f0f0f5;
    --font-family: 'Poppins', sans-serif;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.section-padding {
    padding: 60px 0;
}

.text-center {
    text-align: center;
}

/* Header/Navigation */
header {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-light);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li a {
    color: var(--text-light);
    padding: 5px 15px;
    transition: color 0.3s;
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

/* Section Headers */
.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.1em;
    color: #555;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.3s, transform 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: #e0a32d; /* Slightly darker secondary color */
    transform: translateY(-2px);
}

/* HR Button (reusing secondary color for background) */
.hr-button {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding: 10px 20px;
    font-size: 1.05em;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.hr-button:hover {
    background-color: #e0a32d;
    transform: translateY(-2px);
}

/* New style for the Hiring Partners section background */
#hiring-partners.bg-accent {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

#hiring-partners.bg-accent .section-header h2,
#hiring-partners.bg-accent .section-header p {
    color: var(--text-dark);
}

/* Course Cards */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--bg-light);
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.course-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-card h3 {
    font-size: 1.4em;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.course-card p {
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    padding: 0 25px 25px 25px;
    gap: 15px;
}

.card-footer .btn {
    flex: 1;
    text-align: center;
    padding: 10px 15px;
    text-transform: uppercase;
    font-size: 0.9em;
}

.btn-details {
    background-color: var(--primary-light);
    color: var(--text-dark);
}

.btn-details:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-enquire {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.btn-enquire:hover {
    background-color: #e0a32d;
}

/* Hiring Partners Logo Grid */
.partner-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 30px;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.partner-logo {
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.2s;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 100px; /* Uniform height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s, opacity 0.3s;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-dark);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-card blockquote {
    font-style: italic;
    color: #444;
    margin-bottom: 15px;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--primary-dark);
    display: block;
}

.testimonial-card .role {
    font-size: 0.9em;
    color: #777;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-card {
    background: var(--bg-dark);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2em;
}

.contact-card p a {
    color: var(--primary-dark);
    font-weight: 500;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    width: 100%;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: var(--primary-dark);
}

/* Floating Widget/Modal Styles (from index.html) */
#floating-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
}

#enquiry-toggle-btn {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    position: relative;
}

#enquiry-toggle-btn:hover {
    transform: scale(1.05);
}

#enquiry-toggle-btn .tooltip {
    visibility: hidden;
    width: 120px;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9em;
    pointer-events: none;
}

#enquiry-toggle-btn:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

#floating-form-box {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    padding: 20px;
    transition: all 0.3s ease-in-out;
    transform: scale(1);
    transform-origin: bottom right;
}

#floating-form-box.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

#floating-form-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3em;
}

#floating-form-box form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#floating-form-box input[type="text"],
#floating-form-box input[type="tel"],
#floating-form-box input[type="email"],
#floating-form-box select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9em;
}

#floating-form-box button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#floating-form-box button:hover {
    background-color: var(--primary-dark);
}

.form-message {
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    background-color: #f0f0f5;
    font-weight: 500;
}

/* Modal for HR Request */
.modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding-top: 60px;
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: var(--bg-light);
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
}

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content input[type="text"],
.modal-content input[type="tel"],
.modal-content input[type="email"],
.modal-content textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
}

.modal-content button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: var(--primary-dark);
}

/* Course Detail Page Specific Styles */
.course-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.course-action-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.course-action-buttons .btn {
    padding: 12px 25px;
    font-size: 1.1em;
    flex-grow: 1;
}

.key-takeaways ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.key-takeaways li {
    background: var(--bg-dark);
    padding: 15px;
    border-left: 5px solid var(--secondary-color);
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Footer Styles */
footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 20px 0;
    text-align: center;
    font-size: 0.95em;
}

footer a {
    color: var(--secondary-color);
}

/* Added structure for the enhanced footer */
footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Footer Social Icons Styling (New) */
.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.social-links a {
    color: var(--secondary-color);
    font-size: 2.8em;
    transition: transform 0.2s, color 0.2s;
}

.social-links a:hover {
    color: var(--text-light);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-grid, .courses-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    nav ul {
        margin-top: 10px;
    }
    nav ul li {
        margin: 0 5px;
    }
    .logo {
        margin-bottom: 10px;
    }

    .section-header h2 {
        font-size: 1.8em;
    }

    .course-action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    #floating-form-box {
        width: 250px;
    }
}