/* General Reset */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #FFFFFF;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M 40 0 L 0 0 0 40' fill='none' stroke='%2309A2DD' stroke-width='0.5' stroke-opacity='0.3'/%3E%3C/svg%3E");
    color: #444;
}

/* Header */
.header {
    padding: 20px 40px;
    background: linear-gradient(135deg, #2196f3, #21cbf3);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.header-text h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.header-text p {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 300;
}

.header-logo img {
    width: 220px;
    height: auto;
    border-radius: 8px;
}
/* Main Section */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Key Resources Section */
.key-resources,
.form-container {
    margin-top: 3rem;
    padding: 4rem;
    text-align: center;
    margin-bottom: 3.5rem;
    border-radius: 20px;
    border: 1px solid #ddd;
    padding-top: 0;
    background-color: #f9f9f9;
}

.spacing {
    height: 40px;
}

h2 {
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: #09a2dd;
    justify-self: center;
    align-self: center;
    text-align: center;
}

/* Cards Container */
.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Card Styling */
.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    width: 220px;
    height: 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    perspective: 1000px;  /* Adds perspective for 3D effect */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hover effect on card */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* Card Front and Back for Flip Effect */
.card .card-front,
.card .card-back {
    position: absolute;
    border-radius: 8px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;  /* Prevents the back from showing when flipped */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box; /* Ensures padding is inside the card */
}

.card .card-front {
    background-color: #ffffff;
}

.card .card-back {
    background-color: #f9f9f9;
    transform: rotateY(180deg);  /* Initially hide the back by rotating it */
    overflow-y: auto; /* Allows scrolling if content overflows */
}

.card.flipped .card-front {
    transform: rotateY(180deg);  /* Rotate front to show back */
}

.card.flipped .card-back {
    transform: rotateY(0deg);  /* Rotate back to show front */
}

/* Card Icon Styling */
.card .icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #4caf50;  /* Green color for icon */
}

/* Card Header (h3) Styling */
.card h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 400;
    color: #333;
}

/* Links in Cards */
.cards .card a {
    text-decoration: none;  /* Removes underline */
    color: inherit;         /* Ensures the text color matches the surrounding text */
    display: block;         /* Makes the link behave like a block element, taking up the full space of the card */
}

/* Hidden Content Styling */
.hidden {
    display: none;
}

/* Button Styling */
button {
    margin-top: 10px;
    padding: 10px 10px;
    background-color: #09a2dd;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 80%;  /* Makes the button take up full width */
}

button:hover {
    background-color: #0d4c87;
}

/* Consistent Link Text */
.link-text {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    word-wrap: break-word;  /* Ensure text is wrapped correctly */
    white-space: normal;  /* Prevents text from overflowing */
    text-align: center;  /* Centers the link text */
}


/* Forms Section */
.forms {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.form-column {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    flex: 1;
    min-width: 280px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.form-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.form-column h2 {
    margin: 10px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #09a2dd;
}

.form-column ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.form-column ul li {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    color: #666;
    font-weight: 400;
}

.form-column ul li:last-child {
    border-bottom: none;
}

.form-column ul li a {
    text-decoration: none;
    color: #0d4c87;
    font-weight: 400;
    transition: color 0.3s;
}

.form-column ul li a:hover {
    color: #09a2dd;
    font-weight: 600;
}

/* Image Section */
.image img {
    max-width: 60%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s, opacity 0.3s;
}

.image.hidden {
    display: none;
}

/* Consistent Link Text */
.link-text {
    font-size: 0.9rem;
    color: #333;
}

/* Card with Hidden Content (for flip effect) */
.card .card-front, .card .card-back {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    height: 100%;
}



/* Media Query for Responsive Design */
@media (max-width: 1024px) {
    .header-content {
        flex-direction: column-reverse; /* Stack the logo and text vertically */
        text-align: center;    /* Center-align content */
    }

    .header-logo {
        margin-bottom: 20px; /* Add spacing between logo and heading */
    }
}