/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Lato:wght@400;700&display=swap');

/* Define variables for the entire site */
:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --background-color: #f4f7f6;
    --card-bg-color: #ffffff;
    --text-color: #333;
    --heading-color: #183b56;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* --- Navigation Bar --- */
.navbar {
    box-shadow: 0 4px 12px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--heading-color) !important;
}

/* --- Main Content Area --- */
.main-content-area {
    padding-top: 70px; /* Adds space at the top, below the navbar */
}

/* --- Homepage Styles --- */
.bg-container {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("background.jpg.jpg");
    height: 100vh;
    background-size: cover;
    background-position: center;
}

/* --- General Headings & Paragraphs --- */
.page-heading {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}
.page-paragraph {
    font-size: 1.2rem;
    color: #f0f0f0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}
.section-heading {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* --- Program Card Styles --- */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}
.program-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--heading-color);
    display: flex;
    align-items: center;
}
.program-title i {
    margin-right: 12px;
    color: var(--primary-color);
}
.program-description {
    flex-grow: 1;
}

/* --- Button Styles --- */
.btn-primary {
    background-image: linear-gradient(to right, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* --- Code Modal Styles --- */
.modal-content {
    border-radius: 15px;
    border: none;
}
.modal-header {
    background-image: linear-gradient(to right, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}
.modal-header .close {
    color: white;
    text-shadow: none;
    opacity: 1;
}
.modal-body pre {
    background-color: #282c34;
    color: #abb2bf;
    border-radius: 8px;
    padding: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.modal-body code {
    font-family: 'Courier New', Courier, monospace;
}

/* --- Feedback Page --- */
.feedback-form {
    background-color: var(--card-bg-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
}
.feedback-image {
    max-width: 100%;
    height: auto;
}