:root {
    --mainColor: #00adbb;
    --mainFont: 'Cairo', sans-serif;
}

* {
    box-sizing: border-box;
    font-family: var(--mainFont);
    margin: 0;
    padding: 0;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--mainColor) #DFE9EB;
}

/* Webkit scrollbar */
*::-webkit-scrollbar {
    width: 15px;
}
*::-webkit-scrollbar-track { background-color: white; }
*::-webkit-scrollbar-thumb { background-color: #31708f; }
*::-webkit-scrollbar-thumb:hover { background-color: #275871; }

/* Page layout */
html, body {
    height: 100%;
}
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* ---------- HEADER ---------- */
.header {
    background-color: var(--mainColor);
    width: 100%;
    position: relative; 
    padding-bottom: 40px;
    color: #132d3a;
    overflow: visible;
    min-height: 600px;
}

.topbar {
    background-color: #01929c;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-item {
    color: inherit;
    text-decoration: none;
    padding: 6px 8px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: border-color .25s ease;
}
.nav-item:hover {
    border-bottom-color: #132d3a;
}

.brand {
    font-family: 'Delicious Handrawn', cursive;
    font-size: 40px;
    color: #132d3a;
    margin: 0 20px;
    cursor: pointer;
}

/* auth buttons */
.auth {
    display: flex;
    gap: 12px;
    align-items: center;
}
.btn-signup {
    cursor: pointer;
    background-color: #12394d;
    color: #08d0e1;
    width: 93px;
    border: none;
    border-radius: 25px;
    padding: 8px 10px;
    transition: background-color .2s ease;
}
.btn-signup:hover { background-color: #275871; }

.btn-login {
    cursor: pointer;
    background-color: #08d0e1;
    color: #275871;
    width: 93px;
    border: none;
    border-radius: 25px;
    padding: 8px 10px;
    transition: background-color .2s ease;
}
.btn-login:hover { background-color: #08cfe193; }

/* ---------- INTRO ---------- */
.intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding-top: 170px;
    position: relative;
}

.intro-text {
    max-width: 620px;
    text-align: right;
    z-index: 2;
}

.intro-h1 {
    font-size: 42px;
    font-weight: 700;
    color: #132d3a;
    margin-bottom: 10px;
}

.intro-h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #132d3a;
}

.intro-p {
    font-size: 15px;
    font-weight: 600;
    color: #132d3a;
    line-height: 1.6;
    margin-bottom: 18px;
}

.intro-btn {
    cursor: pointer;
    color: white;
    background-color: #31708f;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 10px 18px;
    transition: all .25s ease;
}
.intro-btn:hover {
    border: 1px solid rgba(255,255,255,0.58);
}

.intro-img {
    max-width: 220px;
    width: 18%;
    height: auto;
    object-fit: contain;
    display: block;
}

.wave {
    width: 100%;
    height: auto;
    display: block;
    position: relative; 
    z-index: 1;
    margin-top: -4px; 
    pointer-events: none;
}

/* ---------- MAIN / ARTICLES ---------- */
.main {
    flex: 1;
    width: 100%;
    background: transparent;
    direction: rtl;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 18px 80px 18px;
}

.article {
    margin: 28px 0;
    padding: 24px;
    background: #fff;
    border-radius: 6px;
}

.article-2, .article-4 {
    background: #ecf6fd;
}

.article-title,
.article2-title,
.article3-title,
.article4-title {
    text-align: center;
    color: #31708f;
    margin-bottom: 8px;
    font-size: 28px;
}

.decor-hr {
    width: 100%;
    height: 2px;
    background: rgba(49,112,143,0.12);
    border: none;
    margin: 12px 0 18px 0;
}

.article-content {
    text-align: right;
    line-height: 1.8;
    color: #132d3a;
    font-size: 16px;
}

.article-list {
    list-style-position: inside;
    padding-right: 20px;
    margin: 15px 0;
}

.bold-sub {
    color: #696767;
    font-size: 20px;
    font-weight: bold;
}

/* ---------- SIGNUP Section ---------- */
.signup-section {
    margin: auto;
    margin-top: 40px;
    margin-bottom: 180px;
    padding: 80px;
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-around;
    border-radius: 28px;
    border: 2px solid #c5ddef;
    background: #fff;
}

.signup-img {
    max-width: 120px;
    width: 18%;
    height: auto;
    object-fit: contain;
}

.signup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.signup-text {
    color: #01929c;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
}

.signup-btn {
    cursor: pointer;
    color: white;
    background-color: #01929c;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 10px 18px;
}
.signup-btn:hover { background-color: #2d6986; }

.btn-symbol {
    display: inline-block;
    margin-left: 8px;
    margin-right: 6px;
    transform: rotate(270deg);
    font-weight: 700;
}

/* ---------- FOOTER ---------- */
.footer {
    background-color: var(--mainColor);
    width: 100%;
    padding: 18px 10px 36px 10px;
    color: #132d3a;
    text-align: center;
}

.footer-brand {
    font-family: 'Delicious Handrawn', cursive;
    font-size: 55px;
    margin-bottom: 12px;
    cursor: default;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer a {
    text-decoration: none;
    color: inherit;
}
.footer a:hover { text-decoration: underline; color: #132d3a; }

.footer-rights {
    color: #132d3a;
    font-size: 14px;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1160px) {
    .brand { font-size: 35px; margin: 0 12px; }
    .intro-h1 { font-size: 34px; }
    .intro-h2 { font-size: 22px; }
    .intro-p { font-size: 14px; }
    .intro-img { max-width: 200px; width: 28%; }
    .container { padding: 28px 14px 60px; }
    .signup-img { max-width: 120px; }
}

@media (max-width: 1200px) {
    .signup-section { margin-left: 20px; margin-right: 20px; padding: 60px; }
}

@media (max-width: 920px) {
    .nav-links { display: none; }
    .intro-p { font-size: 12px; }
}

@media (max-width: 820px) {
    .topbar { gap: 12px; align-items: stretch; padding: 10px; }
    .nav-links { justify-content: center; flex-wrap: wrap; gap: 10px; }
    .intro { flex-direction: column-reverse; align-items: center; padding: 28px 18px; gap: 16px; min-height: 420px; margin-top: 40px; }
    .intro-img { width: 36%; max-width: 160px; }
    .intro-text { text-align: center; }
    .brand { font-size: 30px; }
    .article-title, .article2-title, .article3-title, .article4-title { font-size: 22px; }
    .footer-brand { font-size: 42px; }
    .signup-text { font-size: 18px; }
}

@media (max-width: 430px) {
    .intro-img { width: 40%; max-width: 140px; }
    .brand { font-size: 24px; margin: 6px 0px 0px 0px; }
    .intro-h1 { font-size: 26px; }
    .signup-text { font-size: 14px; }
    .signup-section { padding: 30px; }
}
