/* ============================================
   BASE STYLES
   ============================================ */
:root {
    --primary: #2C394C !important;
    --primaryHover: #253041 !important;
    --secondary: #B89524 !important;
    --secondayHover: #977b22 !important;
    --main-text: #434748 !important;
    --background: #f4f4f4 !important;
    --error: #a10202 !important;
}

html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
}

body {
    font-family: "Montserrat", sans-serif !important;
}

.navbar-bg {
    background-color: var(--primary);
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

main {
    flex: 1 0 auto;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* ============================================
   TEXT / TITLES
   ============================================ */
.text-primary {
    color: var(--primary) !important;
} 

.text-secondary {
    color: var(--secondary) !important;
}

a {
    font-weight: 500;
}

p {
    font-weight: 400;
    font-size: 1rem;
}

h1 {
    font-weight: 500 !important;

}

.title {
    color: var(--primary) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    color: var(--secondary) !important;
}

.nav-a {
    font-size: 1rem !important;
    color: var(--primary);
}

.nav-a:hover {
    color: var(--secondary) !important;
}




/* Headers top of page MOBILE */
.header-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.card-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.icon-section{
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.footer-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

/* Headers top of page TABLET */
@media (min-width: 768px) {
    .header-section{
        padding-top: 5.5rem;
        padding-bottom:5.5rem;
    }

    .card-section {
        padding-top: 5.5rem;
        padding-bottom: 5.5rem;
    }

    .icon-section {
        padding-top: 5.5rem;
        padding-bottom: 5.5rem;
    }

    .footer-section {
        padding-top: 5.5rem;
        padding-bottom: 5.5rem;
    }
}

/* Headers top of page DESKTOP*/
@media(min-width: 1200px){
    .header-section{
        padding-top: 9rem;
        padding-bottom: 9rem;
    }

    .header-section h1 {
        font-size: 3.5rem !important;
    }

    .card-section {
        padding-top: 9rem;
        padding-bottom: 9rem;
    }

    .icon-section {
        padding-top: 9rem;
        padding-bottom: 9rem;
    }

    .footer-section {
        padding-top: 9rem;
        padding-bottom: 9rem;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background-color: var(--primary) !important;
    border: 0;
}

.btn-primary:hover {
    background-color: var(--primaryHover) !important;
}

.btn-danger {
    background-color: red !important;
}

.btn-danger:hover {
    background-color: crimson !important;
}

.btn-border {
    box-shadow: none !important;
}

.btn-secondary {
    background-color: var(--secondary) !important;
    border: 0;
}

.btn-secondary:hover {
    background-color: var(--secondayHover) !important;
}

.btn{
    background-color: var(--primary);
    color: white;
}
.btn:hover {
    background-color: var(--secondary);
    color: white;
}

.btn-register {
    transition: padding 0.25s ease;
    padding-left: 16px;
    padding-right: 16px;
}

.btn-register:hover {
    padding-left: 22px;
}

.btn-login {
    box-shadow: inset 0 0 0 1px var(--primary);
    box-sizing: border-box;
    transition: padding 0.25s ease;
    padding-left: 16px;
    padding-right: 16px;
}

.btn-login:hover {
    padding-left: 22px !important;
    color: var(--primary) !important;
    background-color: #fcf5ea !important;
}

/* ============================================
   CARDS & TILES
   ============================================ */
.tile {
    background-color: white !important;
}

.hover-shadow {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-shadow:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}



.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 100%;
}

.tile-card {
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 10px !important;

}

.tile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.tile-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    color: var(--primary);
    font-weight: 500;
    font-size: 1.25rem;
}

.card-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: auto;
    font-weight: 400;
    line-height: 1.5;
}

.border-top {
    margin-top: auto;
}

.tile-container {
    background-color: var(--background);
}

/*Form top left icon*/
.icon-circle {
    background-color: var(--secondary); 
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.icon-circle i {
    color: #fff; 
    font-size: 24px;
}

 /* Form bottom right icon */
.form-arrow-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 50% !important;
    background-color: white;
    transition: background-color 0.2s ease;
}

.form-arrow-icon svg {
    display: block;
    margin: auto;
}

    .form-arrow-icon svg path {
        stroke: var(--primary) !important;
        fill: var(--primary) !important;
        transition: fill 0.2s ease, stroke 0.2s ease;
    }

/* Hover: blue circle, white arrow */
.tile-card:hover .form-arrow-icon {
    background-color: var(--primary);
    border-radius: 5px;
}

.tile-card:hover .form-arrow-icon svg path {
    stroke: white !important;
    fill: white !important;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    flex-shrink: 0;
    background: linear-gradient(180deg, #2c394c 0, #171e27 100%);
}

footer a {
    color: white !important;
}

footer a:hover {
    color: var(--secondary) !important;
}

footer h6 {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

footer .border-secondary {
    border-color: #333 !important;
}

.footer-logo {
    width: 40px;
    height: 40px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.footer-logo i {
    color: #1a1a1a;
    font-size: 1.5rem;
}

/* ============================================
   FORMS FEATURE SECTION
   ============================================ */
.feature-icon-circle {
    width: 80px;
    height: 80px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-circle i {
    font-size: 2rem;
    color: #6c757d;
}

.home-info-icon {
    width: 50px;
}



/* ============================================
   AUTH SECTION
   ============================================ */
#auth-securedata {
    font-weight: 500;
}

.authenticate-tile {
    background-color: white;
}

