/* ===== SET VARIABLES ===== */
:root {
  --main: #afcbbe;
  --strong: #8fb3a2;
  --second: white;
  --ground: #f7f9fc;
}

/* ===== FONT SETTINGS ===== */
@font-face {
    font-family: 'Satoshi';
    src: url('/Styles/Fonts/Satoshi-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Satoshi';
    src: url('/Styles/Fonts/Satoshi-Medium.woff2') format('woff2');
    font-weight: 500;
}

@font-face {
    font-family: 'Satoshi';
    src: url('/Styles/Fonts/Satoshi-Bold.woff2') format('woff2');
    font-weight: 700;
}

/* ===== GENERAL SETTINGS ===== */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
  	height: 100%;
  	font-family: 'Satoshi', sans-serif;
}

body {
  	display: flex;
    flex-direction: column;
}

main {
    background-color: var(--ground);
    padding: 30px;
    flex: 1;
}

.main-container {
    width: 100%;
    margin: 0 auto;
}

/* ===== GENERAL STYLE ===== */

/* GENERAL */
.clear-title {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
  	color: var(--strong);
}

input {
  width: 100%;
  border-radius : 10px;
  padding : 20px;
  font-size: 18px;
  border: 2px solid var(--ground);
  background-color: var(--ground);
}

input:focus {
  transition-duration: 0.5s;
  outline: none;
  border: 2px solid var(--main);
}

/* CARD STYLE */
.cards-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
    padding: 40px 0;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    background: var(--second);
    padding: 30px;
    border-radius: 12px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.2s ease;
}

.card.full {
  	width: 100%;
  	min-width: 100%;
    padding: 0;
    overflow: hidden;
}

.card-full-content {
    display: flex;
    align-items: center;
}

.card-full-text {
    flex: 1;
}

.card-full-image {
    width: 260px;
    flex-shrink: 0;
}

.card-full-image img {
    width: 100%;
    height: auto;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.card h1 {
  	color: var(--main);
}

.card:hover h1 {
    color: var(--strong);
}

.card a {
  	color: var(--main);
}

.card a:hover {
  	color: var(--strong);
  	font-weight: bold;
}

.card button {
    margin-top: 20px;
    width: 100%;
    padding: 12px;

    border: none;
    border-radius: 10px;

    background: var(--main);
    color: var(--second);
    font-weight: 600;
    font-size: 15px;

    cursor: pointer;

    transition: 
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.card button:hover {
    background: #8fb3a2;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card button:active {
    transform: translateY(0px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

/* ===== SIDEBAR STYLE ===== */
.sidebar-layout {
    display: flex;
    gap: 20px;
  	
  
    align-items: stretch;
    justify-content: center;

    background-color: var(--ground);
    padding: 30px 50px;
    flex: 1;
}

.sidebar {
    width: 200px;
    min-width: 200px;

    background: var(--second);
    border-radius: 16px;
    padding: 20px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  
  	height: auto;
}

.sidebar-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--main);
  
  	text-align: center;
}

.sidebar-nav {
  	display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-nav button {
    text-align: center;
}

.sidebar-link {
    background: transparent;
    border: none;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;

    padding: 12px 14px;
    border-radius: 10px;

    transition: 0.2s ease;
}

.sidebar-link:hover {
    background: rgba(175, 203, 190, 0.15);
}

.sidebar-link.active {
    background: var(--main);
    color: var(--second);
}

.sidebar-content {
    flex: 1;
    max-width: 950px;
}

.sidebar-section {
    display: none;
}

.sidebar-section.active {
    display: block;
}

.sidebar-content .cards-container {
    display: flex;
    gap: 30px;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
}

.sidebar-content .sub-card {
    width: 100%;
    max-width: 420px;
}

@media (max-width: 900px) {
    .sidebar-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .sidebar {
        width: 100%;
        min-width: unset;
    }

    .sidebar-content .cards-container {
        flex-direction: column;
    }

    .sidebar-content .sub-card {
        max-width: 100%;
    }
}

/* ===== SUB CARD STYLE ===== */
.sub-card {
    width: 50%;
}

/* ===== LOGIN CARD STYLE ===== */
.login-card {
  	width: 50%;
  	max-width: 500px;
}

.login-card:hover {
  	transform: none;
}