/* Base styles and reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #808080; /* Changed from blue to gray */
    --secondary-color: #f9c846;
    --accent-color: #f9c846;
    --text-color: #333;
    --light-bg: #f5f7fa;
    --dark-bg: #2c3e50;
    --success-color: #2ecc71;
    --border-radius: 8px;
    --box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(to right, #FF8C00, #FFD700); /* Orange to yellow gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1 span {
    font-size: 0.5em;
    opacity: 0.8;
    color: var(--secondary-color);
     -webkit-text-fill-color: initial;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 1.5rem 0;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 0;
    box-shadow: var(--box-shadow);
}

header div {
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.4rem;
}

.header-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Burger Menu */
.burger-menu {
    display: none;
    cursor: pointer;
}

.burger-icon {
    width: 30px;
    height: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Navigation */
nav {
    width: 100%;
    margin-top: 0.5rem;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
}

nav li {
    margin: 0.3rem 0;
}

nav a {
    background: linear-gradient(to bottom right, #FFA500, #FFFF00); /* Different orange to yellow gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

nav a:hover {
    background: none;
    -webkit-text-fill-color: white;
    text-decoration: none;
    border: 2px solid white;
    border-radius: var(--border-radius);
}

/* Main content */
section {
    flex: 1;
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Internship cards */
.internship-card {
    margin-bottom: 2rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.internship-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.internship-image {
    padding: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.internship-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.internship-details {
    padding: 1.5rem;
}

.image-container {
    padding: 10px;
    border-radius: var(--border-radius);
    display: inline-block;
    margin: 1rem 0;
}

.image-container img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--border-radius) - 5px);
}

.internship-details img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: var(--border-radius);
}

/* Buttons */
.button, .register-btn, button[type="submit"] {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    margin-top: 1rem;
}

.button:hover, .register-btn:hover, button[type="submit"]:hover {
    background-color: var(--accent-color);
    text-decoration: none;
    color: white;
}

.registration-button {
    margin-top: 1rem;
    text-align: right;
}

/* Forms */
form {
    margin: 1.5rem 0;
}

form p {
    margin-bottom: 1.5rem;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.2);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: #4a4a4a; /* Changed to a darker gray, different from header */
    color: white;
    text-align: center;
    padding: 0.8rem;
    margin-top: auto;
}

footer a {
    color: var(--secondary-color);
}

footer a:hover {
    color: white;
}

/* Cookie Consent Popup */
.cookie-consent {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(74, 74, 74, 0.95);
    color: white;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
}

.cookie-content h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.cookie-content p {
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-info {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.cookie-info:hover {
    background-color: var(--secondary-color);
    color: white;
}

.cookie-accept {
    background-color: var(--success-color);
}

.cookie-accept:hover {
    background-color: #27ae60;
}

.img-zoom {
    max-width: 20%;
    max-height: 20%;
    border-radius: 10px;
    z-index: 999;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Responsive design */
/* Mobile devices */
@media (max-width: 768px) {
    header div {
        width: 100%;
    }

    h1 {
        font-size: 1.8rem;
    }

    /* Burger menu for mobile */
    .burger-menu {
        display: block;
    }

    /* Hide navigation by default on mobile */
    #main-nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }

    /* Show navigation when active */
    #main-nav.active {
        display: block;
    }

    /* Burger icon animation for active state */
    .burger-menu.active .burger-icon span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .burger-menu.active .burger-icon span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active .burger-icon span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .internship-name {
        font-size: 1.2rem;
    }

    .registration-button {
        text-align: center;
    }

    /* Footer responsive */
    footer {
        padding: 1.2rem;
        font-size: 1rem;
        line-height: 1.4;
    }

    footer span {
        display: block;
        margin: 0 auto;
        max-width: 90%;
    }

    /* Cookie consent responsive */
    .cookie-content {
        padding: 0.5rem;
    }

    .cookie-content h3 {
        font-size: 1.2rem;
    }

    .cookie-content p {
        font-size: 0.9rem;
    }

    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .button.cookie-info, .button.cookie-accept {
        width: 100%;
        margin-top: 0.5rem;
        padding: 0.6rem 1rem;
    }
}

/* Tablets and small laptops */
@media (min-width: 769px) and (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
        text-align: center;
    }

    /* Burger menu for tablets */
    .burger-menu {
        display: block;
    }

    /* Hide navigation by default on tablets */
    #main-nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }

    /* Show navigation when active */
    #main-nav.active {
        display: block;
    }

    nav ul {
        justify-content: center;
    }

    .internship-card {
        display: flex;
        flex-direction: column;
    }
}

/* Desktops */
@media (min-width: 1025px) {
    header div {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Hide burger menu on desktop */
    .burger-menu {
        display: none;
    }

    /* Always show navigation on desktop */
    #main-nav {
        display: block;
        margin-top: 0;
    }

    nav {
        margin-top: 0;
    }

    .internship-card {
        display: grid;
        grid-template-columns: 0.5fr 3.5fr;
    }

    .internship-image {
        display: flex;
        align-items: center;
        height: 100%;
    }

    .image-container {
        max-width: 300px;
        float: right;
        margin-left: 1.5rem;
    }

    .internship-details img {
        max-width: 300px;
        float: right;
        margin-left: 1.5rem;
    }

    .internship-image img {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
}
